<div class="layui-form" lay-filter="layuiadmin-form-classify" style="padding: 15px 0 0 0;">
	<div class="layui-form-item">
		<label class="layui-form-label">分类名称</label>
		<div class="layui-input-inline">
			<script type="text/html" template>
				<input type="text" name="cname" value="{{ d.params.cname || '' }}" lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input">
			</script>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">价格</label>
		<div class="layui-input-inline">
			<script type="text/html" template>
				<input type="number" name="price" value="{{ d.params.price || 1 }}" placeholder="请输入价格" autocomplete="off" class="layui-input">
			</script>
		</div>
	</div>	
	<div class="layui-form-item">
		<label class="layui-form-label">状态</label>
		<div class="layui-input-inline">
			<script type="text/html" template>				
				{{# if(d.params.status == undefined){ }}
				<input type="radio" name="status" value="1" title="启用" checked="checked">
				<input type="radio" name="status" value="0" title="停用">
				{{# }else{ }}
				<input type="radio" name="status" value="1" title="启用" {{ d.params.status === 1 ? 'checked' : '' }}>
				<input type="radio" name="status" value="0" title="停用" {{ d.params.status === 0 ? 'checked' : '' }}>				
				{{# } }}
			</script>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">备注</label>
		<div class="layui-input-inline">
			<script type="text/html" template>
				<input type="text" name="note" value="{{ d.params.note || '' }}" placeholder="备注" autocomplete="off" class="layui-input">
			</script>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label"></label>
		<div class="layui-input-inline">
			<input type="button" lay-submit lay-filter="LAY-classify-front-submit" value="确认" class="layui-btn">
		</div>
	</div>
</div>

<script>
	layui.use(['admin', 'form'], function() {
		var $ = layui.$,
			form = layui.form;
	})
</script>
