截流自动化的商城平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

edit.html 2.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {layout name="layout2" /}
  2. <div class="layui-form" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
  3. <input type="hidden" value="{$detail.id}" name="id">
  4. <div class="layui-form-item">
  5. <label class="layui-form-label">账号</label>
  6. <div class="layui-input-inline">
  7. <input type="text" name="account" value="{$detail.account}" lay-verify="required" placeholder="请输入账号" lay-vertype="tips" autocomplete="off" class="layui-input" >
  8. </div>
  9. </div>
  10. <div class="layui-form-item">
  11. <label class="layui-form-label">密码</label>
  12. <div class="layui-input-inline">
  13. <input type="password" name="password" placeholder="如需更改,请输入密码" autocomplete="off" class="layui-input">
  14. </div>
  15. </div>
  16. <div class="layui-form-item">
  17. <label class="layui-form-label">确定密码</label>
  18. <div class="layui-input-inline">
  19. <input type="password" name="re_password" placeholder="确定请输入密码" autocomplete="off" class="layui-input">
  20. </div>
  21. </div>
  22. <div class="layui-form-item">
  23. <label class="layui-form-label">名称</label>
  24. <div class="layui-input-inline">
  25. <input type="text" name="name" value="{$detail.name}" lay-verify="required" lay-vertype="tips" placeholder="请输入名称" autocomplete="off" class="layui-input">
  26. </div>
  27. </div>
  28. <div class="layui-form-item">
  29. <label class="layui-form-label">角色</label>
  30. <div class="layui-input-inline">
  31. {if condition="$detail.root eq 0"}
  32. <select name="role_id" lay-verify="required" lay-vertype="tips" placeholder="请选择角色" >
  33. <option value="">选择</option>
  34. {volist name="role_lists" id="vo"}
  35. <option value="{$vo.id}" {eq name="detail['role_id']" value="$vo.id"}selected{/eq} >{$vo.name}</option>
  36. {/volist}
  37. </select>
  38. {else}
  39. <select name="role_id" lay-verify="required" lay-vertype="tips" placeholder="请选择角色" disabled>
  40. <option value="0" selected>超级管理员</option>
  41. </select>
  42. {/if}
  43. </div>
  44. </div>
  45. <div class="layui-form-item">
  46. <label class="layui-form-label">状态</label>
  47. <div class="layui-input-inline">
  48. {if condition="$detail.root eq 0"}
  49. <input type="checkbox" lay-filter="disable" name="disable" lay-skin="switch" lay-text="启用|禁用" {if condition="$detail.disable eq 0" }checked{/if}>
  50. {else/}
  51. <input type="checkbox" lay-filter="disable" name="disable" lay-skin="switch" lay-text="启用|禁用" disabled checked>
  52. {/if}
  53. </div>
  54. </div>
  55. <div class="layui-form-item layui-hide">
  56. <input type="button" lay-submit lay-filter="admin-submit-edit" id="admin-submit-edit" value="确认">
  57. </div>
  58. </div>