create-group-post.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {template 'common/header'}
  2. <div id="js-user-account-group-post" ng-controller="userCreateGroupPost">
  3. <ol class="breadcrumb we7-breadcrumb">
  4. <a href="{php echo url('user/create-group/display')}"><i class="wi wi-back-circle"></i></a>
  5. <li><a href="{php echo url('user/create-group/display')}">帐号权限组列表</a></li>
  6. <li>添加帐号权限组</li>
  7. </ol>
  8. <form method="post" action="" class="we7-form" name="createGroup">
  9. <div class="form-group" >
  10. <label for="" class="control-label col-sm-2">账号权限组</label>
  11. <div class="form-controls col-sm-8">
  12. <input type="text" name="group_name" required class="form-control" placeholder="请输入账号权限组名称" ng-model="groupInfo.group_name" autocomplete="off" />
  13. <span class="help-block">请输入账号权限组名称</span>
  14. <span ng-bind=""></span>
  15. </div>
  16. </div>
  17. <div class="form-group">
  18. <label for="" class="control-label col-sm-2">创建账号个数</label>
  19. <div class="form-controls col-sm-8">
  20. <div class="we7-account-num-box">
  21. <div class="item" ng-repeat="(type, item) in we7TypeDefault" ng-if="type != 'welcome'">
  22. <div class="name"><i ng-class="item.icon"></i>{{item.name}}</div>
  23. <input type="text" name="{{'max' + type}}" required class="form-control" ng-model="groupInfo['max' + type]">
  24. </div>
  25. </div>
  26. <span class="help-block">限制各平台账号的创建数量,为0则不允许添加。</span>
  27. </div>
  28. </div>
  29. <div class="col-sm-offset-2">
  30. <input type="submit" name="submit" class="btn btn-primary btn-submit" value="提交"/>
  31. <input type="hidden" name="token" value="{$_W['token']}">
  32. </div>
  33. </form>
  34. </div>
  35. <script>
  36. angular.module('userCreateGroup').value('config', {
  37. groupInfo : {php echo !empty($account_group_info) ? json_encode($account_group_info) : 'null'},
  38. });
  39. angular.bootstrap($('#js-user-account-group-post'), ['userCreateGroup']);
  40. </script>
  41. {template 'common/footer'}