dictionary_item_edit.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!DOCTYPE HTML>
  2. <html xmlns:th="http://www.thymeleaf.org"
  3. xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  4. layout:decorate="~{admin/common/common}">
  5. <head>
  6. <title>编辑数据类型条目</title>
  7. </head>
  8. <body layout:fragment="content">
  9. <article class="page-container">
  10. <form class="form form-horizontal" id="form-dictionaryitem-edit">
  11. <input type="hidden" class="input-text" required th:value="${dictionaryItem.id}" th:id="id" th:name="id"/>
  12. <input type="hidden" class="input-text" th:value="${dictionaryItem.tid}" th:id="typeId" th:name="tid"/>
  13. <div class="row cl">
  14. <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>名称:</label>
  15. <div class="formControls col-xs-8 col-sm-9">
  16. <input type="text" class="input-text" required th:value="${dictionaryItem.name}" th:id="name" th:name="name"/>
  17. </div>
  18. </div>
  19. <div class="row cl">
  20. <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>值:</label>
  21. <div class="formControls col-xs-8 col-sm-9">
  22. <input type="text" class="input-text" required th:value="${dictionaryItem.value}" th:id="value" th:name="value"/>
  23. </div>
  24. </div>
  25. <div class="row cl">
  26. <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span><span>有效标记:</span></label>
  27. <div class="formControls col-xs-8 col-sm-9">
  28. <input type="radio" name="is_active" th:checked="${dictionaryItem.is_active==true}" value="1">是</input>
  29. <input type="radio" name="is_active" th:checked="${dictionaryItem.is_active==false}" value="0">否</input>
  30. </div>
  31. </div>
  32. <div class="row cl">
  33. <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
  34. <button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i>保存</button>
  35. <button onClick="removeIframe();" class="btn btn-default radius" type="button">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>
  36. </div>
  37. </div>
  38. </form>
  39. </article>
  40. <script type="text/javascript" th:src="@{/js/super/dictionary/dictionary_item_edit.js}"></script>
  41. <script th:inline="javascript">
  42. /**
  43. * 取消
  44. */
  45. function removeIframe() {
  46. var index = parent.layer.getFrameIndex(window.name);
  47. parent.layer.close(index);
  48. }
  49. </script>
  50. </body>
  51. </html>