add.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
  3. <meta charset="utf-8">
  4. <head th:include="include :: header"></head>
  5. <body class="white-bg">
  6. <div class="wrapper wrapper-content animated fadeInRight ibox-content">
  7. <form class="form-horizontal m" id="form-dict-add">
  8. <div class="form-group">
  9. <label class="col-sm-3 control-label ">字典标签:</label>
  10. <div class="col-sm-8">
  11. <input class="form-control" type="text" name="dictLabel" id="dictLabel"/>
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="col-sm-3 control-label ">字典键值:</label>
  16. <div class="col-sm-8">
  17. <input class="form-control" type="text" name="dictValue" id="dictValue"/>
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="col-sm-3 control-label">字典类型:</label>
  22. <div class="col-sm-8">
  23. <input class="form-control" type="text" id="dictType" name="dictType" readonly="true" th:value="${dictType}">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="col-sm-3 control-label">样式属性:</label>
  28. <div class="col-sm-8">
  29. <input class="form-control" type="text" id="cssClass" name="cssClass">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="col-sm-3 control-label">系统默认:</label>
  34. <div class="col-sm-8" th:with="type=${@dictService.selectDictData('sys_yes_no')}">
  35. <div th:each="dict : ${type}" th:class="${dict['cssClass']}">
  36. <input type="radio" th:id="${dict['dictCode']}" name="isDefault" th:value="${dict['dictValue']}" th:checked="${dict['isDefault'] == 'Y' ? true : false}">
  37. <label th:for="${dict['dictCode']}" th:text="${dict['dictLabel']}"></label>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="form-group">
  42. <label class="col-sm-3 control-label">字典排序:</label>
  43. <div class="col-sm-8">
  44. <input class="form-control" type="text" name="dictSort">
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label class="col-sm-3 control-label">状态:</label>
  49. <div class="col-sm-8" th:with="type=${@dictService.selectDictData('sys_post_status')}">
  50. <div th:each="dict : ${type}" th:class="${dict['cssClass']}">
  51. <input type="radio" th:id="${dict['dictCode']}" name="status" th:value="${dict['dictValue']}" th:checked="${dict['isDefault'] == 'Y' ? true : false}">
  52. <label th:for="${dict['dictCode']}" th:text="${dict['dictLabel']}"></label>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="form-group">
  57. <label class="col-sm-3 control-label">备注:</label>
  58. <div class="col-sm-8">
  59. <input id="remark" name="remark" class="form-control" type="text">
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <div class="form-control-static col-sm-offset-9">
  64. <button type="submit" class="btn btn-primary">提交</button>
  65. <button th:onclick="'javascript:layer_close()'" class="btn btn-danger" type="button">关闭</button>
  66. </div>
  67. </div>
  68. </form>
  69. </div>
  70. <div th:include="include::footer"></div>
  71. <script src="/ruoyi/system/dict/data/add.js" th:src="@{/ruoyi/system/dict/data/add.js}"></script>
  72. </body>
  73. </html>