<?php $this->display(tpl('head')); ?>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  	<legend>添加用户组</legend>
</fieldset>
<form  class="layui-form"  action="" method="post">
		<table class="layui-table my-tabel">
				<tr>
						<td>用户组名称</td>
						<td>
								<input name="post[name]" placeholder="请输入您要添加的用户组名称" lay-verify="name" class="layui-input my-input" type="text">
						</td>
				</tr>
				<tr>
						<td>用户组类型</td>
						<td>
								<input name="post[type]" value="0" lay-filter="type" title="系统组" type="radio" checked="">
    						<input name="post[type]" value="1" lay-filter="type" title="会员组" type="radio">
						</td>
				</tr>
				<tr>
						<td colspan="2" align="center">
								<input type="hidden" name="post[step]" id="step" value="post" />
								<button class="layui-btn">提交</button>
						</td>
				</tr>
</form>
<script>
	layui.use(['form'], function(){
	  	var form = layui.form;
	  	form.verify({
		    name: function(value){
		      if(value.length < 5){
		        return '标题至少得5个字符啊';
		      }
		    }
		    
		});
	});
</script>

<?php $this->display(tpl('foot')); ?>
