group.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {template 'common/header'}
  2. <div class="search-box we7-margin-bottom">
  3. <form action="" method="get" class="search-form">
  4. <div class="input-group ">
  5. <input type="hidden" name="c" value="founder">
  6. <input type="hidden" name="a" value="group">
  7. <input type="text" name="name" id="" value="{$_GPC['name']}" class="form-control" placeholder="搜索副创始人权限组"/>
  8. <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
  9. </div>
  10. </form>
  11. <a href="{php echo url('founder/group/post')}" class="btn btn-primary">+添加副创始人组</a>
  12. </div>
  13. <table class="table we7-table table-hover user-group-display-page" id="js-vice-group-display" ng-controller="ViceGroupDisplay" ng-cloak>
  14. <col width="200px"/>
  15. <col width="120px"/>
  16. <col width="200px">
  17. <tr>
  18. <th class="text-left">名称</th>
  19. <th>有限期</th>
  20. <th>应用权限组个数</th>
  21. <th>可创建账号类型/个数</th>
  22. <th class="text-right">操作</th>
  23. </tr>
  24. <tr ng-repeat="list in lists">
  25. <td class="text-left" ng-bind="list.name"></td>
  26. <td><span ng-if="list.timelimit != 0" ng-bind="list.timelimit+'天'"></span><span ng-if="list.timelimit == 0">永久有效</span></td>
  27. <td>
  28. {{list.package.length || 0}}
  29. </td>
  30. <td >
  31. <span ng-repeat="(key, item) in we7TypeDefault" class="group-type" ng-if="list['max' + key] > 0">
  32. <i ng-class="item.icon" ></i> {{list['max' + key]}}
  33. </span>
  34. </td>
  35. <td>
  36. <div class="link-group">
  37. <a href="javascript:;" ng-click="editGroup(list.id)">编辑</a>
  38. <a href="javascript:;" ng-click="delGroup(list.id)" class="del">删除</a>
  39. </div>
  40. </td>
  41. </tr>
  42. <tr ng-if="lists | we7IsEmpty">
  43. <td colspan="100">
  44. 暂无副创始
  45. </td>
  46. </tr>
  47. </table>
  48. <div class="pull-right">
  49. {$pager}
  50. </div>
  51. <script>
  52. angular.module('userGroup').value('config', {
  53. lists: {php echo !empty($lists) ? json_encode($lists) : 'null'},
  54. links: {
  55. groupPost: "{php echo url('founder/group/post')}",
  56. groupDel: "{php echo url('founder/group/del')}",
  57. }
  58. });
  59. angular.bootstrap($('#js-vice-group-display'), ['userGroup']);
  60. </script>
  61. {template 'common/footer'}