<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>编辑数据</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../css/public.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form layui-row layui-col-space10">
	<input id="id" type="hidden" name="id" value="">
	<input id="pid" type="hidden" name="pid" value="">
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">分类类型</label>
		<div class="layui-input-block">
			<select name="type" id="type">
				<option value="page">单页</option>
				<option value="article">文章</option>
				<option value="product">商品</option>
				<option value="other">其它</option>
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">选择父级</label>
		<div class="layui-input-block">
			<div id="LAY-auth-tree-index"></div>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">分类名称</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input name" lay-verify="required" placeholder="请输入分类名称">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">分类别名</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input nickname" lay-verify="required" placeholder="请输入别名">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">自定义路径</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input diyname" lay-verify="required" placeholder="请输入路径">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">关键词</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input keywords">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">描述</label>
		<div class="layui-input-block">
			<textarea placeholder="备注" class="layui-textarea description"></textarea>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">排序</label>
		<div class="layui-input-inline">
			<input type="number" class="layui-input weigh">
		</div>
		<div class="layui-form-mid layui-word-aux">数字越大，排序越靠前</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">状态</label>
		<div class="layui-input-block">
			<select name="status" class="status" id="status">
				<option value="default">等待审核</option>
				<option value="normal">审核通过</option>
				<option value="draft">已存草稿</option>
			</select>
		</div>
	</div>

	<div class="layui-form-item layui-row layui-col-xs12">
		<div class="layui-input-block">
			<button class="layui-btn" lay-submit="" lay-filter="editInfo">立即提交</button>
		</div>
	</div>
</form>
<script type="text/javascript" src="../../layui/layui.js"></script>
<script type="text/javascript" src="edit.js"></script>
<script type="text/html" id="LAY-auth-tree-convert-select">
	<select name="pidselect" id="pidselect" class="layui-input" lay-filter="{{d.layFilter}}">
		<option value="">请选择父级</option>
		{{# layui.each(d.list, function(index, item) { }}
		<option value="{{item.value}}" {{item.checked?'selected':''}} {{item.disabled?'disabled':''}}>{{item.name}}</option>
		{{# });}}
	</select>
</script>
</body>
</html>