group-post.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {template 'common/header'}
  2. <div class="new-keyword" id="js-vice-group-post" ng-controller="ViceGroupPost" ng-cloak>
  3. <ol class="breadcrumb we7-breadcrumb">
  4. <a href="{php echo url('founder/group/display')}"><i class="wi wi-back-circle"></i> </a>
  5. <li><a href="{php echo url('founder/group/display')}">副创始人组管理</a></li>
  6. <li>添加副创始人组</li>
  7. </ol>
  8. <form class="we7-form user-group-edit" method="post" action="">
  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="name" class="form-control" ng-model="groupInfo.name">
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label for="" class="control-label col-sm-2">创建账号个数</label>
  17. <div class="form-controls col-sm-8">
  18. <div class="we7-account-num-box">
  19. <div class="item" ng-repeat="(type, item) in we7TypeDefault" ng-if="type != 'welcome'">
  20. <div class="name"><i ng-class="item.icon"></i>{{item.name}}</div>
  21. <input type="text" name="{{'max' + type}}" class="form-control" ng-model="groupInfo['max' + type]">
  22. </div>
  23. </div>
  24. <span class="help-block">限制各平台账号的创建数量,为0则不允许添加。</span>
  25. </div>
  26. </div>
  27. <div class="form-group">
  28. <label for="" class="control-label col-sm-2">有效期</label>
  29. <div class="form-controls col-sm-8">
  30. <div class="input-group">
  31. <input type="text" name="timelimit" class="form-control" ng-model="groupInfo.timelimit">
  32. <span class="input-group-addon font-default">天</span>
  33. </div>
  34. <span class="help-block">设置副创始人组的有效期限。0为不限制期限。到期后,该副创始人下的所有公众号只能使用 "基础服务"</span>
  35. </div>
  36. </div>
  37. <div class="form-group">
  38. <label for="" class="control-label col-sm-2">添加应用权限组</label>
  39. <div class="form-controls col-sm-8 user-create">
  40. <div class="we7-group-show " ng-repeat="(index, extend) in user_modules.groups" ng-if="extend.checked">
  41. <input type="hidden" name="package[]" value="{{extend.id}}"/>
  42. <div class="name">
  43. {{extend.name}}
  44. </div>
  45. <div class="group-app-list">
  46. <div class="group-app-item" ng-repeat="module in extend.modules_all">
  47. <img ng-src="{{module.logo}}" class="module-img" alt="">
  48. <div class="info">
  49. <div class="title text-over">
  50. {{module.title}}
  51. </div>
  52. <div class="type-list">
  53. <i ng-class="itme.icon" ng-repeat="itme in module.group_support | moduleInfo" ></i>
  54. </div>
  55. </div>
  56. </div>
  57. <div class="group-app-item" ng-repeat="module in extend.templates">
  58. <img ng-src="{{module.logo}}" class="template-img" alt="">
  59. <div class="info">
  60. <div class="title">
  61. {{module.title}}
  62. </div>
  63. <div class="type-list">
  64. <i class="wi wi-template"></i>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <a class="action"></a>
  70. <a href="" class="remove" ng-click="extend.checked = 0"><i class="wi wi-error"></i></a>
  71. </div>
  72. <we7-modal-app module-list="user_modules" multiple="true" on-confirm="loadChange()">
  73. <div class="add-new-block" >
  74. <i class="wi wi-plus"></i> 添加应用权限组
  75. </div>
  76. </we7-modal-app>
  77. </div>
  78. </div>
  79. <div class="col-sm-offset-2 clearfix">
  80. <input type="submit" name="submit" value="保存" class="btn btn-primary" ng-style="{'padding': '6px 50px'}" />
  81. <input type="hidden" name="token" value="{$_W['token']}">
  82. </div>
  83. </form>
  84. </div>
  85. <script>
  86. angular.module('userGroup').value('config', {
  87. groupInfo: {php echo !empty($group_info) ? json_encode($group_info) : 'null'},
  88. packages: {php echo !empty($packages) ? json_encode($packages) : 'null'},
  89. });
  90. angular.bootstrap($('#js-vice-group-post'), ['userGroup']);
  91. </script>
  92. {template 'common/footer'}