| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <!DOCTYPE HTML>
- <html xmlns:th="http://www.thymeleaf.org"
- xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
- layout:decorate="~{admin/common/common}">
- <head>
- <title>编辑数据类型条目</title>
- </head>
- <body layout:fragment="content">
- <article class="page-container">
- <form class="form form-horizontal" id="form-dictionaryitem-edit">
- <input type="hidden" class="input-text" required th:value="${dictionaryItem.id}" th:id="id" th:name="id"/>
- <input type="hidden" class="input-text" th:value="${dictionaryItem.tid}" th:id="typeId" th:name="tid"/>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>名称:</label>
- <div class="formControls col-xs-8 col-sm-9">
- <input type="text" class="input-text" required th:value="${dictionaryItem.name}" th:id="name" th:name="name"/>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>值:</label>
- <div class="formControls col-xs-8 col-sm-9">
- <input type="text" class="input-text" required th:value="${dictionaryItem.value}" th:id="value" th:name="value"/>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span><span>有效标记:</span></label>
- <div class="formControls col-xs-8 col-sm-9">
- <input type="radio" name="is_active" th:checked="${dictionaryItem.is_active==true}" value="1">是</input>
- <input type="radio" name="is_active" th:checked="${dictionaryItem.is_active==false}" value="0">否</input>
- </div>
- </div>
-
- <div class="row cl">
- <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
- <button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont"></i>保存</button>
- <button onClick="removeIframe();" class="btn btn-default radius" type="button"> 返回 </button>
- </div>
- </div>
- </form>
- </article>
- <script type="text/javascript" th:src="@{/js/super/dictionary/dictionary_item_edit.js}"></script>
- <script th:inline="javascript">
- /**
- * 取消
- */
- function removeIframe() {
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- }
-
- </script>
- </body>
- </html>
|