<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
<th:block th:include="include :: header('修改城市信息')" />
<th:block th:include="include :: select2-css" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-cityinfo-edit"
			th:object="${cityInfo}">
			<input name="cityCode" th:field="*{cityCode}" type="hidden">
			<div class="form-group">
				<label class="col-sm-3 control-label"><span
					style="color: red;">*</span>城市编码：</label>
				<div class="col-sm-8">
					<input th:field="*{cityCode}" class="form-control" type="text"
						required disabled="disabled">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label"><span
					style="color: red;">*</span>城市名称：</label>
				<div class="col-sm-8">
					<input name="cityName" th:field="*{cityName}" class="form-control"
						type="text" required maxlength="10">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label"><span
					style="color: red;">*</span>所属省份：</label>
				<div class="col-sm-8">
					<select id="provinceId" class="form-control" name="provinceId"
						required="required">
						<option value="">------全部------</option>
						<option th:each="post:${province}" th:value="${post.provinceId}"
							th:field="*{provinceId}" th:text="${post.provinceName}"></option>
					</select>
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="include :: footer" />
	<th:block th:include="include :: select2-js" />
	<script type="text/javascript">
		var prefix = ctx + "bussiness/cityinfo";
		$("#form-cityinfo-edit").validate({
			focusCleanup : true
		});

		function submitHandler() {
			if ($.validate.form()) {
				$.operate.save(prefix + "/edit", $('#form-cityinfo-edit')
						.serialize());
			}
		}

		$("input[name='updateTime']").datetimepicker({
			format : "yyyy-mm-dd",
			minView : "month",
			autoclose : true
		});
	</script>
</body>
</html>