edit-modules-tpl.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {template 'common/header'}
  2. <ol class="breadcrumb we7-breadcrumb">
  3. <a href="{url 'founder/display'}"><i class="wi wi-back-circle"></i> </a>
  4. <li><a href="{url 'founder/display'}">副创始人管理</a></li>
  5. <li>编辑用户详情</li>
  6. </ol>
  7. <div id="js-user-edit-modulestpl" ng-controller="UserEditModulesTpl" ng-cloak>
  8. <div class="user-head-info we7-padding-bottom" >
  9. <img ng-src="{{profile.avatar}}" class="img-circle user-avatar ">
  10. <div class="info">
  11. <h3 class="title" ng-bind="user.username"></h3>
  12. </div>
  13. </div>
  14. <div class="btn-group we7-btn-group we7-padding-bottom">
  15. <a href="{php echo url('user/edit/edit_base', array('uid' => $_GPC['uid']))}" class="btn btn-default">基础信息</a>
  16. {if empty($user['founder_groupid'])}
  17. <a href="{php echo url('user/edit/edit_modules_tpl', array('uid' => $_GPC['uid']))}" class="btn btn-default">应用模板权限</a>
  18. {else}
  19. <a href="{php echo url('founder/edit/edit_modules_tpl', array('uid' => $_GPC['uid']))}" class="btn btn-default active">应用模板权限</a>
  20. {/if}
  21. <a href="{php echo url('user/edit/edit_create_account_list', array('uid' => $_GPC['uid']))}" class="btn btn-default ">账号创建权限</a>
  22. <a href="{php echo url('user/edit/edit_account_dateline', array('uid' => $_GPC['uid']))}" class="btn btn-default ">账号使用期限</a>
  23. {if empty($user['founder_groupid'])}
  24. <a href="{php echo url('user/edit/edit_account', array('uid' => $_GPC['uid']))}" class="btn btn-default">使用账号列表</a>
  25. {else}
  26. <a href="{php echo url('founder/edit/edit_account', array('uid' => $_GPC['uid']))}" class="btn btn-default">使用账号列表</a>
  27. {/if}
  28. </div>
  29. <div class="panel we7-panel user-permission">
  30. <div class="panel-heading">
  31. <span>所属用户组:<span ng-bind="group_info.name"></span></span>
  32. <a href="javascript:;" class="color-default pull-right" data-toggle="modal" data-target="#group" ng-click="editGroup()">修改</a>
  33. </div>
  34. <div class="modal fade" id="group" role="dialog">
  35. <div class="we7-modal-dialog modal-dialog">
  36. <div class="modal-content">
  37. <div class="modal-header">
  38. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  39. <div class="modal-title">修改用户组</div>
  40. </div>
  41. <div class="modal-body">
  42. <div class="form-group">
  43. <select class="we7-select" ng-model="changeGroup">
  44. <option value="">请选择所属用户组</option>
  45. <option ng-value="group.id" ng-repeat="group in groups" ng-selected="group.id == group_info.id" ng-bind="group.name"></option>
  46. </select>
  47. <span class="help-block"></span>
  48. </div>
  49. </div>
  50. <div class="modal-footer">
  51. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('groupid')">确定</button>
  52. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. <div class="panel-body" ng-repeat="(packid, pack) in group_info.package_detail">
  58. <div class="permission-heading">
  59. <span ng-bind="pack.name"></span>
  60. <span ng-if="packid == '-1'">所有服务</span>
  61. <div class="pull-right permission-edit" ng-style="{'width': 'auto'}">
  62. <a href="javascript:;" class="color-default js-unfold" data-toggle="collapse" data-target="#demo-{{packid}}" ng-click="changeText($event)">展开</a>
  63. </div>
  64. </div>
  65. <table id="demo-{{pack.id}}" class="table we7-table table-hover collapse" ng-if="packid != '-1'">
  66. <col width="90px" />
  67. <col width="835px" />
  68. <tr class="permission-apply">
  69. <td class="vertical-middle">应用</td>
  70. <td>
  71. <ul>
  72. <li ng-repeat="module in pack.modules_all" class="col-sm-2 text-over text-left">
  73. <img ng-src="{{ module.logo }}" alt="">
  74. {{ module.title }}
  75. </li>
  76. </ul>
  77. </td>
  78. </tr>
  79. <tr class="permission-template">
  80. <td class="vertical-middle">模板</td>
  81. <td><ul><li ng-repeat="tpl in pack.templates"><span class="label label-info" ng-bind="tpl.title"></span></li></ul></td>
  82. </tr>
  83. </table>
  84. <table id="demo-{{packid}}" class="table we7-table table-hover collapse" ng-if="packid == -1">
  85. <col width="90px" />
  86. <col width="835px" />
  87. <tr class="permission-apply">
  88. <td class="vertical-middle">应用</td>
  89. <td><ul><li><span class="label label-danger">系统所有模块</span></li></ul></td>
  90. </tr>
  91. <tr class="permission-template">
  92. <td class="vertical-middle">模板</td>
  93. <td><ul><li><span class="label label-danger">系统所有模板</span></li></ul></td>
  94. </tr>
  95. </table>
  96. </div>
  97. </div>
  98. </div>
  99. <script type="text/javascript">
  100. angular.module('userManageApp').value('config', {
  101. user: {php echo !empty($user) ? json_encode($user) : 'null'},
  102. profile: {php echo !empty($profile) ? json_encode($profile) : 'null'},
  103. group_info: {php echo !empty($group_info) ? json_encode($group_info) : 'null'},
  104. groups: {php echo !empty($groups) ? json_encode($groups) : 'null'},
  105. links: {
  106. editGroup: "{php echo url('user/edit/edit_modules_tpl')}",
  107. },
  108. });
  109. angular.bootstrap($('#js-user-edit-modulestpl'), ['userManageApp']);
  110. </script>
  111. {template 'common/footer'}