人人商城

edit-modules-tpl.html 4.5KB

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