| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <!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-slides-add">
- <input type="hidden" th:name="id" th:id="id" />
- <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">
- <span class="select-box">
- <input type="hidden" name="street_name"/>
- <select th:id="street_id" class="select" required th:name="street_id" onchange="getName(this);">
- <option value="">--请选择--</option>
- <option value="" th:if="${item.is_start}" th:each="item : ${streeList}" th:value="${item.id}" th:text="${item.name}">
- <option value="" th:unless="${item.is_start}" disabled th:each="item : ${streeList}" th:value="${item.id}" th:text="${item.name}">
- </option>
- </select>
- </span>
- </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 value="" 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 value="" th:id="location" th:name="location"/>
- </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">
- <span class="select-box">
- <select th:id="type" class="select" th:name="type" required>
- <option value="">--请选择--</option>
- <option value="" th:each="item : ${buildTypeList}" th:value="${item.id}" th:text="${item.type}">
- </option>
- </select>
- </span>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span>状态:</span></label>
- <div class="formControls col-xs-8 col-sm-9">
- <input type="radio" name="is_start" checked value="true">启用</input>
- <input type="radio" name="is_start" value="false">禁用</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="article_save();" class="btn btn-secondary radius" type="button"><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/build_add.js}"></script>
- <script th:inline="javascript">
- /**
- * 取消
- */
- function removeIframe() {
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- }
-
- function getName(obj) {
- $("input[name='street_name']").val($(obj).find("option:selected").text());
- }
-
- </script>
- </body>
- </html>
|