<div class="layui-form" lay-filter="layuiadmin-form-useradmin" 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="username" value="{{ d.params.username || '' }}" 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>
				{{# if(d.params.passwd == undefined){ }}
				<input type="text" name="passwd" lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
				{{# }else{ }}
				<input type="text" name="passwd"  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.group_type == undefined){ }}
				<input type="radio" name="group_type" value="2" title="管理员">
				<input type="radio" name="group_type" value="3" title="普通" checked="checked">
				{{# }else{ }}
				<input type="radio" name="group_type" value="2" title="管理员" {{ d.params.group_type === '管理员' ? 'checked' : '' }}>
				<input type="radio" name="group_type" value="3" title="普通" {{ d.params.group_type === '普通' ? '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>
				{{# 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 === '启用' ? 'checked' : '' }}>
				<input type="radio" name="status" value="0" title="停用" {{ d.params.status === '停用' ? 'checked' : '' }}>
				{{# } }}
			</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-user-front-submit" value="确认" class="layui-btn">
		</div>
	</div>
</div>

<script>
	layui.use(function() {
		var form = layui.form;
	})
</script>
