<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"      prefix="c" %>
<%@ taglib uri="http://struts.apache.org/tags-html"     prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean"     prefix="bean" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"       prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<h2>Benutzerrechte bearbeiten (<html:link action="admin">Admin</html:link>)</h2>
<h3>Rollen von "${requestScope.User.username}" (${requestScope.User.firstname} ${requestScope.User.lastname}):</h3>

<div class="FORMULAR">

	<html:errors/>

	<html:form action="changeuser">
		<c:forEach items="${applicationScope.ConsensusFoundation.userManager.roles}" var="r">
			<p> <html:multibox property="selectedRoles" value="${r.rolename}" />
			${r.rolename} <c:if test="${not empty r.description}">(${r.description})</c:if>
		</c:forEach>

		<html:hidden property="username" />

		<hr>

		<p><html:submit>&Auml;ndern</html:submit>
	</html:form>

</div>

<c:if test="${not empty requestScope.User.comment}">
	<p>&nbsp;</p>
	<hr>
	
	<h3>"${requestScope.User.username}" &uuml;ber sich selbst:</h3>
	<p>${requestScope.User.comment}
</c:if>
