From e8406a4dc63dee04b2ecd8e75d60acd4594d5150 Mon Sep 17 00:00:00 2001 From: suerwei <18810552194@163.com> Date: 星期四, 16 五月 2024 15:39:38 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/edit.html | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 54 insertions(+), 0 deletions(-) diff --git a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/edit.html b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/edit.html new file mode 100644 index 0000000..804b13c --- /dev/null +++ b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/edit.html @@ -0,0 +1,54 @@ +<!DOCTYPE html> +<html lang="zh" xmlns:th="http://www.thymeleaf.org" > +<head> + <th:block th:include="include :: header('淇敼椤圭洰璧勬枡')" /> +</head> +<body class="white-bg"> + <div class="wrapper wrapper-content animated fadeInRight ibox-content"> + <form class="form-horizontal m" id="form-projectData-edit" th:object="${projectData}"> + <input name="id" th:field="*{id}" type="hidden"> + <div class="form-group"> + <label class="col-sm-3 control-label">璧勬枡鍚嶇О锛�</label> + <div class="col-sm-8"> + <input name="name" th:field="*{name}" class="form-control" type="text"> + </div> + </div> + <div class="form-group"> + <label class="col-sm-3 control-label">璧勬枡绫诲瀷锛�</label> + <div class="col-sm-8"> + <select name="dataType" class="form-control m-b" th:with="type=${@dict.getType('project_data_type')}" required> + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{dataType}"></option> + </select> + </div> + </div> + <div class="form-group"> + <label class="col-sm-3 control-label">鏂囦欢绫诲瀷锛�</label> + <div class="col-sm-8"> + <select name="fileType" class="form-control m-b" th:with="type=${@dict.getType('project_data_file_type')}"> + <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{fileType}"></option> + </select> + </div> + </div> + <div class="form-group"> + <label class="col-sm-3 control-label">鏍囩锛�</label> + <div class="col-sm-8"> + <input name="labels" th:field="*{labels}" class="form-control" type="text"> + </div> + </div> + </form> + </div> + <th:block th:include="include :: footer" /> + <script type="text/javascript"> + var prefix = ctx + "geo/projectData"; + $("#form-projectData-edit").validate({ + focusCleanup: true + }); + + function submitHandler() { + if ($.validate.form()) { + $.operate.save(prefix + "/edit", $('#form-projectData-edit').serialize()); + } + } + </script> +</body> +</html> \ No newline at end of file -- Gitblit v1.9.1