Role.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!-- header start -->
  2. <include file="Public/Header" />
  3. <!-- header end -->
  4. <!-- right content start -->
  5. <div class="content-right">
  6. <div class="content">
  7. <!-- operation start -->
  8. <div class="am-g">
  9. <a href="{{:U('Admin/Power/RoleSaveInfo')}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> {{:L('common_operation_add')}}</a>
  10. </div>
  11. <!-- operation end -->
  12. <!-- list start -->
  13. <table class="am-table am-table-striped am-table-hover am-text-middle m-t-10 role-list">
  14. <thead>
  15. <tr>
  16. <th>{{:L('common_view_name_title')}}</th>
  17. <th>{{:L('common_view_state_title')}}</th>
  18. <th>{{:L('power_view_have_title')}}</th>
  19. <th class="am-hide-sm-only">{{:L('common_create_time_name')}}</th>
  20. <th>{{:L('common_operation_name')}}</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. <if condition="!empty($list)">
  25. <foreach name="list" item="v">
  26. <tr id="data-list-{{$v.id}}" <if condition="$v['is_enable'] eq 0">class="am-active"</if>>
  27. <td>{{$v.name}}</td>
  28. <td>
  29. <span <if condition="$v['is_enable'] eq 0">class="cr-ccc"</if>>{{:L('common_is_enable_tips')[$v['is_enable']]['name']}}</span>
  30. </td>
  31. <td class="power-text">
  32. <if condition="!empty($v['item'])">
  33. <foreach name="v.item" item="vs">
  34. <span class="am-badge {{:L('common_color_list')[rand(0, 5)]}} am-round m-r-5">{{$vs.name}}</span>
  35. </foreach>
  36. </if>
  37. </td>
  38. <td class="am-hide-sm-only">{{:date('Y-m-d H:i:s', $v['add_time'])}}</td>
  39. <td>
  40. <if condition="$v['id'] eq 1">
  41. <span class="cr-ccc">{{:L('common_do_not_operate')}}</span>
  42. <else />
  43. <a href="{{:U('Admin/Power/RoleSaveInfo', array('id'=>$v['id']))}}">
  44. <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-edit" data-am-popover="{content: '{{:L('common_operation_edit')}}', trigger: 'hover focus'}"></button>
  45. </a>
  46. <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:U('Admin/Power/RoleDelete')}}" data-am-popover="{content: '{{:L('common_operation_delete')}}', trigger: 'hover focus'}" data-id="{{$v.id}}"></button>
  47. </if>
  48. </td>
  49. </tr>
  50. </foreach>
  51. <else />
  52. <tr><td colspan="5" class="table-no">{{:L('common_not_data_tips')}}</td></tr>
  53. </if>
  54. </tbody>
  55. </table>
  56. <!-- list end -->
  57. </div>
  58. </div>
  59. <!-- right content end -->
  60. <!-- footer start -->
  61. <include file="Public/Footer" />
  62. <!-- footer end -->