人人商城

founder-group-post.html 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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('user/vicefoundergroup/display')}"><i class="wi wi-back-circle"></i> </a>
  5. <li><a href="{php echo url('user/vicefoundergroup/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. <input type="text" name="maxaccount" class="form-control" ng-model="groupInfo.maxaccount">
  19. <span class="help-block">限制公众号的数量,为0则不允许添加。</span>
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label for="" class="control-label col-sm-2">创建小程序数量</label>
  24. <div class="form-controls col-sm-8">
  25. <input type="text" name="maxwxapp" class="form-control" ng-model="groupInfo.maxwxapp">
  26. <span class="help-block">限制小程序的数量,为0则不允许添加。</span>
  27. </div>
  28. </div>
  29. <div class="form-group">
  30. <label for="" class="control-label col-sm-2">有效期</label>
  31. <div class="form-controls col-sm-8">
  32. <div class="input-group">
  33. <input type="text" name="timelimit" class="form-control" ng-model="groupInfo.timelimit">
  34. <span class="input-group-addon font-default">天</span>
  35. </div>
  36. <span class="help-block">设置副创始人组的有效期限。0为不限制期限。到期后,该副创始人下的所有公众号只能使用 "基础服务"</span>
  37. </div>
  38. </div>
  39. <div class="panel we7-panel">
  40. <div class="panel-heading">
  41. 选择应用权限套餐组
  42. <a href="{php echo url('module/group/post')}" class="color-default pull-right">新建应用权限套餐组</a>
  43. </div>
  44. <div class="panel-body user-permission">
  45. <div ng-repeat="pack in packages">
  46. <div class="permission-heading">
  47. <input id="checkbox-{{pack.id}}" type="checkbox" name='package[]' value="{{pack.id}}" ng-checked="pack.checked">
  48. <label for="checkbox-{{pack.id}}" ng-bind="pack.name"></label>
  49. <div class="pull-right permission-edit">
  50. <a href="javascript:;" class="color-default js-unfold" data-toggle="collapse" data-target="#demo-{{pack.id}}" ng-click="changeText($event)">展开</a>
  51. </div>
  52. </div>
  53. <div class="collapse" id="demo-{{pack.id}}">
  54. <table class="table we7-table table-hover">
  55. <col width="90px" />
  56. <col />
  57. <tr class="permission-apply">
  58. <td class="vertical-middle">公众号应用</td>
  59. <td>
  60. <ul>
  61. <li ng-repeat="module in pack.modules" class="col-sm-2 text-over text-left">
  62. <div ng-if="module.name != 'all'">
  63. <img ng-src="{{ module.logo }}" alt="">
  64. {{ module.title }}
  65. </div>
  66. </li>
  67. </ul>
  68. </td>
  69. </tr>
  70. <tr class="permission-apply">
  71. <td class="vertical-middle">小程序应用</td>
  72. <td>
  73. <ul>
  74. <li ng-repeat="wxapp in pack.wxapp">
  75. <span class="label label-info" ng-bind="wxapp.title"></span>
  76. </li>
  77. </ul>
  78. </td>
  79. </tr>
  80. <tr class="permission-template">
  81. <td class="vertical-middle">模板</td>
  82. <td><ul><li ng-repeat="tpl in pack.templates"><span class="label label-info" ng-bind="tpl.title"></span></li></ul></td>
  83. </tr>
  84. </table>
  85. </div>
  86. </div>
  87. <div>
  88. <div class="permission-heading">
  89. <input id="checkbox-0" type="checkbox" value="-1" name='package[]' ng-checked="groupInfo.check_all">
  90. <label for="checkbox-0">所有服务</label>
  91. <div class="pull-right permission-edit">
  92. <a href="javascript:;" class="color-default js-unfold" data-toggle="collapse" data-target="#demo-0" ng-click="changeText($event)">展开</a>
  93. </div>
  94. </div>
  95. <div class="collapse" id="demo-0">
  96. <table class="table we7-table table-hover">
  97. <col width="90px" />
  98. <col />
  99. <tr class="permission-apply">
  100. <td class="vertical-middle">应用</td>
  101. <td><ul><li><span class="label label-danger">系统所有模块</span></li></ul></td>
  102. </tr>
  103. <tr class="permission-template">
  104. <td class="vertical-middle">模板</td>
  105. <td><ul><li><span class="label label-danger">系统所有模板</span></li></ul></td>
  106. </tr>
  107. </table>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <input type="submit" name="submit" value="保存" class="btn btn-primary" ng-style="{'padding': '6px 50px'}" />
  113. <input type="hidden" name="token" value="{$_W['token']}">
  114. </form>
  115. </div>
  116. <script>
  117. angular.module('userGroup').value('config', {
  118. groupInfo: {php echo !empty($group_info) ? json_encode($group_info) : 'null'},
  119. packages: {php echo !empty($packages) ? json_encode($packages) : 'null'},
  120. });
  121. angular.bootstrap($('#js-vice-group-post'), ['userGroup']);
  122. </script>
  123. {template 'common/footer'}