RoleSaveInfo.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. <!-- form start -->
  8. <form class="am-form form-validation view-save" action="{{:U('Admin/Power/RoleSave')}}" method="POST" request-type="ajax-url" request-value="{{:U('Admin/Power/Role')}}">
  9. <legend>
  10. <span class="fs-16">
  11. <if condition="empty($data['id'])">
  12. {{:L('role_add_name')}}
  13. <else />
  14. {{:L('role_edit_name')}}
  15. </if>
  16. </span>
  17. <a href="{{:U('Admin/Power/Role')}}" class="fr fs-14 m-t-5 am-icon-mail-reply"> {{:L('common_operation_back')}}</a>
  18. </legend>
  19. <div class="am-form-group">
  20. <label>{{:L('role_view_role_text')}}</label>
  21. <input type="text" placeholder="{{:L('role_view_role_text')}}" name="name" minlength="2" maxlength="16" data-validation-message="{{:L('role_name_format')}}" class="am-radius" <present name="data"> value="{{$data.name}}"</present> required />
  22. </div>
  23. <include file="Lib/Enable" />
  24. <div class="am-form-group">
  25. <label>{{:L('power_view_have_title')}}</label>
  26. <ul class="tree-list p-0">
  27. <foreach name="power" item="v">
  28. <li <if condition="$v['is_show'] eq 0">class="bk-cr-ffd"</if>>
  29. <if condition="!empty($v['item'])">
  30. <i class="am-icon-minus-square c-p m-r-5"></i>
  31. <label class="c-p">
  32. <else />
  33. <label class="c-p m-l-20">
  34. </if>
  35. <input type="checkbox" name="power_id" value="{{$v.id}}" class="node-choice" <if condition="$v['is_power'] eq 'ok'">checked</if> />
  36. <span>{{$v.name}}</span>
  37. </label>
  38. </li>
  39. <if condition="!empty($v['item'])">
  40. <ul class="list-find p-0 m-t-5">
  41. <foreach name="v.item" item="vs">
  42. <li <if condition="$vs['is_show'] eq 0">class="bk-cr-ffd"</if>>
  43. <label class="c-p">
  44. <input type="checkbox" name="power_id" value="{{$vs.id}}" <if condition="$vs['is_power'] eq 'ok'">checked</if> />
  45. <span>{{$vs.name}}</span>
  46. </label>
  47. </li>
  48. </foreach>
  49. </ul>
  50. </if>
  51. </foreach>
  52. </ul>
  53. </div>
  54. <div class="am-form-group">
  55. <input type="hidden" name="id" <present name="data"> value="{{$data.id}}"</present>" />
  56. <button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'{{:L('common_form_loading_tips')}}'}">{{:L('common_operation_save')}}</button>
  57. </div>
  58. </form>
  59. <!-- right form end -->
  60. </div>
  61. </div>
  62. <!-- right content end -->
  63. <!-- footer start -->
  64. <include file="Public/Footer" />
  65. <!-- footer end -->