edits.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
  2. <div class="layui-card-body padding-left-40">
  3. <div class="layui-form-item">
  4. <label class="relative block">
  5. <span class="color-green font-w7">头像</span>
  6. <span class="color-desc margin-left-5"></span>
  7. <input name="avatar" type="hidden" value="{$vo.avatar|default=''}">
  8. <script>$('[name="avatar"]').uploadOneImage()</script>
  9. </label>
  10. <p class="help-block">登录用户账号创建</p>
  11. </div>
  12. <div class="layui-form-item">
  13. <label class="relative block">
  14. <span class="color-green font-w7">登录用户账号</span>
  15. <span class="color-desc margin-left-5">Username</span>
  16. <input name="username" value='{$vo.username|default=""}' required placeholder="请输入4位及以上字符登录用户账号" class="layui-input">
  17. </label>
  18. <p class="help-block">登录用户账号创建</p>
  19. </div>
  20. <div class="layui-form-item">
  21. <label class="relative block">
  22. <span class="color-green font-w7">用户联系手机</span>
  23. <span class="color-desc margin-left-5">Phone</span>
  24. <input type="tel" maxlength="11" autocomplete="off" autofocus name="mobile" value='{$vo.mobile|default=""}' pattern="^1[3-9][0-9]{9}$" placeholder="请输入用户联系手机" class="layui-input">
  25. </label>
  26. <p class="color-desc">可选,用户联系手机号码,需要填写正确的格式</p>
  27. </div>
  28. {if $vo.level == 0}
  29. <div class="layui-form-item">
  30. <label class="relative block">
  31. <span class="color-green font-w7">地址</span>
  32. <span class="color-desc margin-left-5">Address</span>
  33. <input type="text" name="address" value='{$vo.address|default=""}' placeholder="地址" class="layui-input">
  34. </label>
  35. <p class="color-desc">可选,用户联系手机号码,需要填写正确的格式</p>
  36. </div>
  37. {/if}
  38. <div class="layui-form-item">
  39. <label class="relative block">
  40. <span class="color-green font-w7">新的登录密码</span>
  41. <span class="color-desc margin-left-5">New Password</span>
  42. <input type="password" name="pwd" maxlength="32" pattern="^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,32}$" placeholder="请输入新的登录密码(不修改不输入)" class="layui-input">
  43. </label>
  44. <p class="color-desc">密码必需包含大小写字母、数字、符号的任意两者组合。</p>
  45. </div>
  46. <div class="layui-form-item">
  47. <label class="relative block">
  48. <span class="color-green font-w7">重复登录密码</span>
  49. <span class="color-desc margin-left-5">Retype Password</span>
  50. <input type="password" name="repassword" maxlength="32" pattern="^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,32}$" placeholder="请输入重复登录密码(不修改不输入)" class="layui-input">
  51. </label>
  52. <p class="color-desc">密码必需包含大小写字母、数字、符号的任意两者组合。</p>
  53. </div>
  54. </div>
  55. <div class="hr-line-dashed"></div>
  56. {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
  57. <div class="layui-form-item text-center">
  58. <button class="layui-btn" type='submit'>保存数据</button>
  59. <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>
  60. </div>
  61. </form>