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/add.html | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 53 insertions(+), 0 deletions(-) diff --git a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/add.html b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/add.html new file mode 100644 index 0000000..7f34c23 --- /dev/null +++ b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/add.html @@ -0,0 +1,53 @@ +<!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-add"> + <div class="form-group"> + <label class="col-sm-3 control-label">璧勬枡鍚嶇О锛�</label> + <div class="col-sm-8"> + <input name="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}"></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}"></option> + </select> + </div> + </div> + <div class="form-group"> + <label class="col-sm-3 control-label">鏍囩锛�</label> + <div class="col-sm-8"> + <input name="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-add").validate({ + focusCleanup: true + }); + + function submitHandler() { + if ($.validate.form()) { + $.operate.save(prefix + "/add", $('#form-projectData-add').serialize()); + } + } + </script> +</body> +</html> \ No newline at end of file -- Gitblit v1.9.1