changeUserinfoStatus.ftl 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE HTML>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <#include "../layout/header.ftl"/>
  5. <#include "../layout/common.cssjs.ftl"/>
  6. <style type="text/css">
  7. .table th, .table td {
  8. padding: .2rem;
  9. vertical-align: middle;
  10. }
  11. </style>
  12. <script type="text/javascript">
  13. <!--
  14. $(function(){
  15. });
  16. //-->
  17. </script>
  18. </head>
  19. <body>
  20. <form id="actionForm" method="post" type="label" autoclose="true" action="<@base/>/userinfo/changeUserinfoStatus" class="needs-validation" novalidate>
  21. <table class="table table-bordered" >
  22. <tbody>
  23. <tr>
  24. <th><@locale code="userinfo.displayName" /> :</th>
  25. <td>
  26. <input readonly type="hidden" id="id" name="id" class="required" title="" value="${model.id}"/>
  27. <input readonly type="text" id="displayName" name="displayName" class="form-control" title="" value="${model.displayName}"/>
  28. </td>
  29. </tr>
  30. <tr>
  31. <th><@locale code="userinfo.username" /> :</th>
  32. <td>
  33. <input readonly type="text" id="username" name="username" class="form-control" title="" value="${model.username}"/>
  34. </td>
  35. </tr>
  36. <tr>
  37. <th><@locale code="userinfo.status" />:</th>
  38. <td>
  39. <select name="status" id="status" class="form-control" >
  40. <option value="1" <#if 1==model.status>selected</#if>><@locale code="userinfo.status.active" /></option>
  41. <option value="2" <#if 2==model.status>selected</#if>><@locale code="userinfo.status.withdrawn" /></option>
  42. <option value="3" <#if 3==model.status>selected</#if>><@locale code="userinfo.status.inactive" /></option>
  43. <option value="4" <#if 4==model.status>selected</#if>><@locale code="userinfo.status.retiree" /></option>
  44. </select>
  45. </td>
  46. </tr>
  47. <tr>
  48. <td colspan="2" class="center">
  49. <input id="_method" type="hidden" name="_method" value="post"/>
  50. <input class="button btn btn-primary mr-3" style="width:100px" type="submit" id="submitBtn" value="<@locale code="button.text.save" />"/>
  51. </td>
  52. </tr>
  53. </tbody>
  54. </table>
  55. </form>
  56. </body>
  57. </html>