1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <!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-dict-edit" th:object="${homeHotManualRecomm}">
- <input name="recommId" type="hidden" th:field="*{recommId}" />
- <div class="form-group">
- <label class="col-sm-2 control-label">排列序号:</label>
- <div class="col-sm-10">
- <input id="seqNo" name="seqNo" class="form-control" type="text" placeholder="请输入排列序号" required th:field="*{seqNo}"/>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">显示位置:</label>
- <div class="col-sm-10">
- <select name="viewType" id="viewType" class="form-control m-b" th:with="type=${@dict.getType('recomm_view_position')}">
- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{viewType}"></option>
- </select>
- </div>
- </div>
- <div class="form-group select-time" >
- <label class="col-sm-2 control-label">开始时间:</label>
- <div class="col-sm-10">
- <input id="startDate" name="startValidTime" class="form-control time-input" type="text" th:field="*{startValidTime}" placeholder="请输入开始时间"/>
- </div>
- </div>
- <div class="form-group select-time" >
- <label class="col-sm-2 control-label">结束时间:</label>
- <div class="col-sm-10">
- <input id="endDate" name="endValidTime" class="form-control time-input" type="text" th:field="*{endValidTime}" placeholder="请输入结束时间"/>
- </div>
- </div>
- </form>
- </div>
- <th:block th:include="include :: footer" />
- <script type="text/javascript">
- var prefix = ctx + "operation/home/recomm";
-
- $("#form-dict-edit").validate({
- focusCleanup: true
- });
-
- function submitHandler() {
- if ($.validate.form()) {
- $.operate.save(prefix + "/edit", $('#form-dict-edit').serialize());
- }
- }
- $("#startDate").datetimepicker({
- format: 'yyyy-mm-dd hh:ii',
- minView: "month",
- todayBtn: true,
- autoclose: true,
- endDate : new Date(),
- }).on('changeDate', function(event) {
- event.preventDefault();
- event.stopPropagation();
- var startTime = event.date;
- $('#datetimepicker-endDate').datetimepicker('setStartDate', startTime);
- });
- $("#endDate").datetimepicker({
- format: 'yyyy-mm-dd hh:ii',
- minView: "month",
- todayBtn: true,
- autoclose: true,
- endDate : new Date(),
- }).on('changeDate', function(event) {
- event.preventDefault();
- event.stopPropagation();
- var endTime = event.date;
- $("#datetimepicker-startDate").datetimepicker('setEndDate', endTime);
- });
- </script>
- </body>
- </html>
|