<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<%@ include file="../../../common/head.jsp"%>
</head>

<body>
	<div class="wrapper wrapper-content">
		<div class="row">
			<div class="col-sm-12">
				<cs:form_validate formId="editVersionForm" />
				<form class="form-horizontal" id="editVersionForm" action="edit.cs"
					method="POST" enctype="multipart/form-data">
					<div class="form-group">
						<label class="col-sm-3 control-label">平台：</label>
						<div class="col-sm-6">
							<input id="id" name="id" value="${v.id}" class="form-control"
								type="hidden"> <select class="form-control" name="plat">
								<option value="android"
									<c:if test="${v.plat eq 'android'}">selected</c:if>>Android</option>
								<option value="ios"
									<c:if test="${v.plat eq 'ios'}">selected</c:if>>IOS</option>
							</select>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">版本号：</label>
						<div class="col-sm-6">
							<input id="version" name="version" value="${v.version}"
								class="form-control" validate="{required:true, minlength:3}"
								validateMessage="{required:'请输入版本号',minlength:'至少三个字符以上'}">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">强制更新：</label>
						<div class="col-sm-6">
							<select class="form-control" name="compel">
								<option value="1" <c:if test="${v.compel}">selected</c:if>>启用</option>
								<option value="0" <c:if test="${!v.compel}">selected</c:if>>禁用</option>
							</select>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">上传版本：</label>
						<div class="col-sm-6">
							<input type="file" name="app" class="form-control">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">版本更新内容：</label>
						<div class="col-sm-6">
							<textarea class="form-control" name="remark" rows="4" cols="">${v.remark}</textarea>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-3 pull-left">
							<button class="btn btn-default btn-dlg-close">取消</button>
							<button class="btn btn-primary" type="submit">提交</button>
						</div>
					</div>
				</form>
			</div>
		</div>

	</div>


</body>

</html>

