<div class="uk-layui-form">
	<form class="layui-form uk-form" action="/admin/auth/save.html" data-toggle="ajax-form" data-close="true" method="post">
	  <div class="layui-form-item">
	    <label class="layui-form-label">名称：</label>
	    <div class="layui-input-inline">
	      <input type="text" name="name" value="${title!''}" required lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">代码：</label>
	    <div class="layui-input-inline">
	      <input type="text" name="code" required lay-verify="required" placeholder="请输入代码" autocomplete="off" class="layui-input">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">菜单类型：</label>
	    <div class="layui-input-inline">
	    	<select name="mlevel" lay-verify="required">
			  <option value="1">一级菜单</option>
			  <option value="2">二级菜单</option>
			  <option value="3">三级菜单</option>
			  <option value="4">四级菜单</option>
			 
			</select>   
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">菜单位置：</label>
	    <div class="layui-input-inline">
	    	<select name="menutype" lay-verify="required">
			  <option value="left">左侧功能菜单</option>
			  <option value="top">顶部导航菜单</option>
			</select>   
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">上级菜单：</label>
	    <div class="layui-input-inline">
	      <input type="text" name="parentid" required lay-verify="required" placeholder="请输入上级菜单代码或名称" autocomplete="off" class="layui-input">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">样式：</label>
	    <div class="layui-input-inline">
	      <input type="text" name="iconstr" value="${iconstr!''}" placeholder="请输入代码" autocomplete="off" class="layui-input">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">URL：</label>
	    <div class="layui-input-inline">
	      <input type="text" name="url" value="${url!''}" placeholder="请输入代码" autocomplete="off" class="layui-input">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">模块 ：</label>
	    <div class="layui-input-inline">
	      	<select name="module">
			  <option value="webim">WebIM</option>
			  <option value="weixin">微信</option>
			  <option value="workorder">工单</option>
			  <option value="xiaoe">智能机器人</option>
			  <option value="callcenter">呼叫中心</option>
			</select> 
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">角色要求：</label>
	    <div class="layui-input-inline" style="width:500px;">
	      	<input type="checkbox" name="rules" title="用户" lay-skin="primary">
			<input type="checkbox" name="rules" title="多媒体坐席" lay-skin="primary"> 
			<input type="checkbox" name="rules" title="语音坐席" lay-skin="primary">
			<input type="checkbox" name="rules" title="管理员" lay-skin="primary"> 
	    </div>
	  </div>
	  <div class="layui-form-button">
	    <div class="layui-button-block">
	      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
	      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
	    </div>
	  </div>
	</form>
</div>
 
<script>
//Demo
layui.use('form', function(){
  var form = layui.form();
  form.render(); //更新全部
  form.verify({
	  repass: function(value){
	    if(value != $('#password').val()){
	      return '两次输入的密码不一致，请确认';
	    }
	  }
	});      
});
</script>