pass.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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">Username</span>
  7. <!--{if isset($vo) and isset($vo.username)}-->
  8. <input disabled value='{$vo.username|default=""}' class="layui-input layui-bg-gray">
  9. <!--{else}-->
  10. <input name="username" value='{$vo.username|default=""}' required pattern="^.{4,}$" placeholder="请输入4位及以上字符登录用户账号" class="layui-input">
  11. <!--{/if}-->
  12. </label>
  13. <p class="help-block">登录用户账号创建后,不允许再次修改。</p>
  14. </div>
  15. <!--{if $verify}-->
  16. <div class="layui-form-item">
  17. <label class="relative block">
  18. <span class="color-green font-w7">旧的登录密码</span>
  19. <span class="color-desc margin-left-5">Old Password</span>
  20. <input type="password" autofocus name="oldpassword" value='' pattern="^\S{1,}$" required placeholder="请输入旧的登录密码" class="layui-input">
  21. </label>
  22. <p class="color-desc">请输入旧密码来验证修改权限,旧密码不限制格式。</p>
  23. </div>
  24. <!--{/if}-->
  25. <div class="layui-form-item">
  26. <label class="relative block">
  27. <span class="color-green font-w7">新的登录密码</span>
  28. <span class="color-desc margin-left-5">New Password</span>
  29. <input type="password" name="password" maxlength="32" pattern="^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,32}$" required placeholder="请输入新的登录密码" class="layui-input">
  30. </label>
  31. <p class="color-desc">密码必需包含大小写字母、数字、符号的任意两者组合。</p>
  32. </div>
  33. <div class="layui-form-item">
  34. <label class="relative block">
  35. <span class="color-green font-w7">重复登录密码</span>
  36. <span class="color-desc margin-left-5">Retype Password</span>
  37. <input type="password" name="repassword" maxlength="32" pattern="^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,32}$" required placeholder="请输入重复登录密码" class="layui-input">
  38. </label>
  39. <p class="color-desc">密码必需包含大小写字母、数字、符号的任意两者组合。</p>
  40. </div>
  41. </div>
  42. <div class="hr-line-dashed"></div>
  43. {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
  44. <div class="layui-form-item text-center">
  45. <button class="layui-btn" type='submit'>保存数据</button>
  46. <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>
  47. </div>
  48. </form>