form.html 5.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
  2. <div class="layui-card-body">
  3. <div class="layui-form-item">
  4. <label class="layui-form-label label-required">员工姓名</label>
  5. <div class="layui-input-block">
  6. <input name="nickname" value='{$vo.nickname|default=""}' required placeholder="请输入公司员工姓名" class="layui-input">
  7. </div>
  8. </div>
  9. <div class="layui-form-item">
  10. <label class="layui-form-label label-required">员工身份</label>
  11. <div class="layui-input-block">
  12. <input name="user_type" value='{$vo.user_type|default=""}' required placeholder="请输入公司员工身份" class="layui-input">
  13. </div>
  14. </div>
  15. <div class="layui-form-item">
  16. <label class="layui-form-label label-required">仓库账号</label>
  17. <div class="layui-input-block">
  18. <input name="svn_username" value='{$vo.svn_username|default=""}' required placeholder="请输入SVN授权账号" class="layui-input">
  19. </div>
  20. </div>
  21. <div class="layui-form-item">
  22. <label class="layui-form-label label-required">仓库密码</label>
  23. <div class="layui-input-block">
  24. <input name="svn_password" value='{$vo.svn_password|default=""}' required placeholder="请输入SVN授权密码" class="layui-input">
  25. </div>
  26. </div>
  27. <div class="layui-form-item">
  28. <label class="layui-form-label label-required">仓库权限</label>
  29. <div class="layui-input-block">
  30. <div class="layui-textarea padding-bottom-10" style="min-height:auto">
  31. {foreach $auths as $auth}
  32. <label class="think-checkbox layui-unselect">
  33. {if isset($vo.svn_authorize) and in_array($auth.id, $vo.svn_authorize)}
  34. <input type="checkbox" name="svn_authorize[]" value="{$auth.id}" checked lay-ignore> {$auth.title}
  35. {else}
  36. <input type="checkbox" name="svn_authorize[]" value="{$auth.id}" lay-ignore> {$auth.title}
  37. {/if}
  38. </label>
  39. {/foreach}
  40. </div>
  41. </div>
  42. </div>
  43. <div class="layui-form-item nowrap">
  44. <label class="layui-form-label">入职日期</label>
  45. <div class="layui-input-inline margin-right-0" style="width:164px">
  46. <input type="text" data-date-input="date" name="entry_date" value='{$vo.entry_date|default=""}' placeholder="请输入入职日期" class="layui-input">
  47. </div>
  48. <label class="layui-form-label" style="width:auto">转正日期</label>
  49. <div class="layui-input-inline margin-right-0" style="width:164px">
  50. <input type="text" data-date-input="date" name="become_date" value='{$vo.become_date|default=""}' placeholder="请输入转正日期" class="layui-input">
  51. </div>
  52. <label class="layui-form-label" style="width:auto">离职日期</label>
  53. <div class="layui-input-inline margin-right-0" style="width:164px">
  54. <input type="text" data-date-input="date" name="leave_date" value='{$vo.leave_date|default=""}' placeholder="请输入离职日期" class="layui-input">
  55. </div>
  56. </div>
  57. <div class="layui-form-item">
  58. <label class="layui-form-label">联系QQ</label>
  59. <div class="layui-input-inline margin-right-0" style="width:164px">
  60. <input type="tel" autocomplete="off" name="contact_qq" value='{$vo.contact_qq|default=""}' pattern="^\d{6,}$" placeholder="请输入联系QQ号码" class="layui-input">
  61. </div>
  62. <label class="layui-form-label" style="width:auto">联系手机</label>
  63. <div class="layui-input-inline margin-right-0" style="width:164px">
  64. <input type="tel" maxlength="11" autocomplete="off" name="contact_phone" value='{$vo.contact_phone|default=""}' pattern="^1[3-9][0-9]{9}$" placeholder="请输入联系手机" class="layui-input">
  65. </div>
  66. <label class="layui-form-label" style="width:auto">联系邮箱</label>
  67. <div class="layui-input-inline margin-right-0" style="width:164px">
  68. <input name="contact_mail" autocomplete="off" pattern="^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$" value='{$vo.contact_mail|default=""}' placeholder="请输入联系邮箱" class="layui-input">
  69. </div>
  70. </div>
  71. <div class="layui-form-item">
  72. <label class="layui-form-label">打卡绑定</label>
  73. <div class="layui-input-block">
  74. <textarea placeholder="请输入绑定手机" class="layui-textarea" name="mobile_macs">{$vo.mobile_macs|default=""}</textarea>
  75. </div>
  76. </div>
  77. </div>
  78. <div class="hr-line-dashed"></div>
  79. {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
  80. <div class="layui-form-item text-center">
  81. <button class="layui-btn" type='submit'>保存数据</button>
  82. <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>
  83. </div>
  84. <script>window.form.render();</script>
  85. </form>