create-group-display.html 2.0 KB

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