3 ~ Licensed under the Apache License, Version 2.0 (the "License");
4 ~ you may not use this file except in compliance with the License.
5 ~ You may obtain a copy of the License at
7 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~ Unless required by applicable law or agreed to in writing, software
10 ~ distributed under the License is distributed on an "AS IS" BASIS,
11 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 ~ See the License for the specific language governing permissions and
13 ~ limitations under the License.
16 <%@ taglib prefix="s" uri="/struts-tags"%>
17 <%@ taglib prefix="redback" uri="/redback/taglib-1.0"%>
18 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
21 <s:i18n name="org.apache.archiva.redback.struts2.default">
23 <title><s:text name="user.edit.page.title"/></title>
28 <%@ include file="/WEB-INF/jsp/redback/include/formValidationResults.jsp" %>
30 <h2><s:text name="user.edit.section.title"/></h2>
32 <redback:ifAuthorized permission="user-management-user-edit" resource="${user.username}">
33 <s:form action="useredit" namespace="/security" theme="xhtml"
34 id="userEditForm" method="post" name="useredit" cssClass="security userEdit">
35 <%@ include file="/WEB-INF/jsp/redback/include/userCredentials.jsp" %>
36 <redback:isNotReadOnlyUserManager>
37 <s:checkbox label="%{getText('user.edit.locked.user')}" name="user.locked" />
38 <s:checkbox label="%{getText('user.edit.force.user.change.password')}" name="user.passwordChangeRequired" />
39 <s:hidden label="Username" name="username" />
40 <s:submit value="%{getText('update')}" method="submit" />
41 <s:submit value="%{getText('cancel')}" method="cancel" />
42 </redback:isNotReadOnlyUserManager>
45 <c:if test="${ emailValidationRequired}">
47 <s:form action="register!resendRegistrationEmail" namespace="/security" theme="xhtml"
48 id="resendRegistationForm" method="post" name="resendRegistration" cssClass="security userEdit">
49 <s:hidden label="Username" name="username" />
50 <s:submit value="Resend Validation" method="submit" />
54 </redback:ifAuthorized>
56 <redback:ifAuthorized permission="user-management-user-role" resource="${user.username}">
57 <c:if test="${!empty effectivelyAssignedRoles}">
58 <h3><s:text name="effective.roles"/></h3>
61 <s:iterator id="role" value="effectivelyAssignedRoles">
68 <s:url id="assignmentUrl" action="assignments" includeParams="none">
69 <s:param name="username">${user.username}</s:param>
71 <s:a href="%{assignmentUrl}"><s:text name="user.edit.roles"/></s:a>
72 </redback:ifAuthorized>