<!--# layout("/common/layout.html",{"jsBase":"/js/directed/festival/"}){ -->
<style type="text/css">

.right-content{
    width: 260px;
    background: #fff;
    float: left;
    margin-left: 10px;
    overflow: hidden;}
.layui-input-inline{
	width: 500px;
}

</style>
<style type="text/css">
.layui-input{
	width: 500px;
}

</style>
<style type="text/css">
.layui-input-inline{
	width: 500px;
}
.xm-select-parent{
	width: 500px;
}
.xm-form-select{
	width: 500px;
}
.xm-hide-input{
	width: 500px;
}
</style>

<form class="layui-form layui-form-pane " id="addForm">

	<div class="layui-row">
		<input type="hidden" name="id" value="${entity.id}">
		<input type="hidden" name="icon" value="${entity.icon}">
		<input type="hidden" name="fescod" value="${entity.fescod}">

		<div class="layui-col-xs6">
			<div class="layui-form-item">
				<label class="layui-form-label">活动名称</label>
				<div class="layui-input-block">
					<input type="text" name="fesname" lay-verify="required"
						   placeholder="请输入" autocomplete="off" class="layui-input"
						   value="${entity.fesname}">
				</div>
			</div>
		</div>

		<div class="layui-col-xs6">
			<div class="layui-form-item">
				<label class="layui-form-label">页面标题</label>
				<div class="layui-input-inline">
					<input type="text" name="title" lay-verify="required"
						   placeholder="请输入" autocomplete="off" class="layui-input"
						   value="${entity.title}">
				</div>
			</div>
		</div>
	</div>

	<div class="layui-row">
		<div class="layui-col-xs6">
			<div class="layui-form-item">
				<label class="layui-form-label">开始时间</label>
				<div class="layui-input-block">
					<input type="text" id="stime" name="stime"  lay-verify="required|date|etime"
						   placeholder="请选择" autocomplete="off" class="layui-input input-date"
						   value="${entity.stime}">
				</div>
			</div>
		</div>

		<div class="layui-col-xs6">
			<div class="layui-form-item">
				<label class="layui-form-label">结束时间</label>
				<div class="layui-input-inline">
					<input type="text" id="etime" name="etime" lay-verify="required|date|etime"
						   placeholder="请选择" autocomplete="off" class="layui-input input-date"
						   value="${entity.etime}">
				</div>
			</div>
		</div>
	</div>

	<div class="layui-row">
		<div class="layui-col-xs6">
			<div class="layui-form-item">
				<label class="layui-form-label">链接地址</label>
				<div class="layui-input-block">
					<input type="text" id="url" name="url"  lay-verify="required"
						   placeholder="请输入" autocomplete="off" class="layui-input" value="${entity.url}">
				</div>
			</div>
		</div>

		<div class="layui-col-xs6">
			<div class="layui-form-item">
				<label class="layui-form-label">平价活动</label>
				<div class="layui-input-block">
					<select name="paritycode" id="paritycode" lay-filter="paritycode"></select>
				</div>
			</div>
		</div>
	</div>

	<div class="layui-row">
		<div class="layui-col-xs6">
			<div class="layui-form-item">
				<label class="layui-form-label">全渠道链接</label>
				<div class="layui-input-block">
					<select name="allchannel" id="allchannel" lay-filter="allchannel">
						<option value="0">否</option>
						<option value="1" ${entity.allchannel=="1"?"selected":""}>是</option>
					</select>
				</div>
			</div>
		</div>

	</div>
	<p>如果是全渠道链接，表示促销活动继承平价活动的所有渠道</p>

	<hr class="layui-bg-blue">

	<div class="layui-row">
		<div class="layui-col-xs6 layui-col-sm6 layui-col-md4">
			<div class="grid-demo grid-demo-bg1">&nbsp;</div>
		</div>
		<div class="layui-col-xs6 layui-col-sm6 layui-col-md4">
			<div class="layui-input-block">
				<button class="layui-btn" type="button" lay-submit="" lay-filter="submitButton">立即提交</button>
				<button class="layui-btn layui-btn-danger" type="button" id="closeButton">关闭</button>
			</div>
		</div>
		<div class="layui-col-xs4 layui-col-sm12 layui-col-md4">
			<div class="grid-demo layui-bg-blue"></div>
		</div>
	</div>
</form>
<!--#} -->

<script>

layui.use(['edit'], function() {
    var festivalEdit = layui.edit;
    festivalEdit.init("${entity.paritycode}");

});


</script>


