<div class="uk-layui-form">
	<form class="layui-form uk-form" action="/admin/role/saveuser.html">
		<input type="hidden" name="role" value="${role.id!''}">
		<div class="layui-form-item">
			<div class="layui-input-inline">
				<select multiple = "multiple" name="users" class="ukefu-form-multiple">
					<#if userList??>
					<#list userList as curruser>
						<#assign has = false >
						<#if userRoleList??>
						<#list userRoleList as userRole>
						<#if userRole.user?? && userRole.user.id == curruser.id>
						<#assign has = true><#break/>
						</#if>
						</#list>
						</#if>
						<option value="${curruser.id}" <#if has == true>selected="selected"</#if>>${curruser.username!''}（${curruser.uname!''}）</option>
					</#list>
					</#if>
				</select>
			</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>
