123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- {template 'common/header'}
- <div class="new-keyword" id="js-vice-group-post" ng-controller="ViceGroupPost" ng-cloak>
- <ol class="breadcrumb we7-breadcrumb">
- <a href="{php echo url('founder/group/display')}"><i class="wi wi-back-circle"></i> </a>
- <li><a href="{php echo url('founder/group/display')}">副创始人组管理</a></li>
- <li>添加副创始人组</li>
- </ol>
- <form class="we7-form user-group-edit" method="post" action="">
- <div class="form-group">
- <label for="" class="control-label col-sm-2">用户权限组名</label>
- <div class="form-controls col-sm-8">
- <input type="text" name="name" class="form-control" ng-model="groupInfo.name">
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">创建账号个数</label>
- <div class="form-controls col-sm-8">
- <div class="we7-account-num-box">
- <div class="item" ng-repeat="(type, item) in we7TypeDefault" ng-if="type != 'welcome'">
- <div class="name"><i ng-class="item.icon"></i>{{item.name}}</div>
- <input type="text" name="{{'max' + type}}" class="form-control" ng-model="groupInfo['max' + type]">
- </div>
- </div>
- <span class="help-block">限制各平台账号的创建数量,为0则不允许添加。</span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">有效期</label>
- <div class="form-controls col-sm-8">
- <div class="input-group">
- <input type="text" name="timelimit" class="form-control" ng-model="groupInfo.timelimit">
- <span class="input-group-addon font-default">天</span>
- </div>
- <span class="help-block">设置副创始人组的有效期限。0为不限制期限。到期后,该副创始人下的所有公众号只能使用 "基础服务"</span>
- </div>
- </div>
- <div class="form-group">
- <label for="" class="control-label col-sm-2">添加应用权限组</label>
- <div class="form-controls col-sm-8 user-create">
- <div class="we7-group-show " ng-repeat="(index, extend) in user_modules.groups" ng-if="extend.checked">
- <input type="hidden" name="package[]" value="{{extend.id}}"/>
- <div class="name">
- {{extend.name}}
- </div>
- <div class="group-app-list">
- <div class="group-app-item" ng-repeat="module in extend.modules_all">
- <img ng-src="{{module.logo}}" class="module-img" alt="">
- <div class="info">
- <div class="title text-over">
- {{module.title}}
- </div>
- <div class="type-list">
- <i ng-class="itme.icon" ng-repeat="itme in module.group_support | moduleInfo" ></i>
- </div>
- </div>
- </div>
- <div class="group-app-item" ng-repeat="module in extend.templates">
- <img ng-src="{{module.logo}}" class="template-img" alt="">
- <div class="info">
- <div class="title">
- {{module.title}}
- </div>
- <div class="type-list">
- <i class="wi wi-template"></i>
- </div>
- </div>
- </div>
- </div>
- <a class="action"></a>
- <a href="" class="remove" ng-click="extend.checked = 0"><i class="wi wi-error"></i></a>
- </div>
- <we7-modal-app module-list="user_modules" multiple="true" on-confirm="loadChange()">
- <div class="add-new-block" >
- <i class="wi wi-plus"></i> 添加应用权限组
- </div>
- </we7-modal-app>
- </div>
- </div>
- <div class="col-sm-offset-2 clearfix">
- <input type="submit" name="submit" value="保存" class="btn btn-primary" ng-style="{'padding': '6px 50px'}" />
- <input type="hidden" name="token" value="{$_W['token']}">
- </div>
- </form>
- </div>
- <script>
- angular.module('userGroup').value('config', {
- groupInfo: {php echo !empty($group_info) ? json_encode($group_info) : 'null'},
- packages: {php echo !empty($packages) ? json_encode($packages) : 'null'},
- });
- angular.bootstrap($('#js-vice-group-post'), ['userGroup']);
- </script>
- {template 'common/footer'}
|