]> source.dussan.org Git - archiva.git/blob
70954ecc0013f68e52cb708247d6f94d92343e34
[archiva.git] /
1 <%--
2   ~
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
6   ~
7   ~      http://www.apache.org/licenses/LICENSE-2.0
8   ~
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.
14   --%>
15
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" %>
19
20 <html>
21 <s:i18n name="org.apache.archiva.redback.struts2.default">
22 <head>
23   <title><s:text name="user.edit.page.title"/></title>
24 </head>
25
26 <body>
27
28 <%@ include file="/WEB-INF/jsp/redback/include/formValidationResults.jsp" %>
29
30 <h2><s:text name="user.edit.section.title"/></h2>
31
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>
43     </s:form>
44
45     <c:if test="${ emailValidationRequired}">
46     <p>
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" />
51       </s:form>
52     </p>
53     </c:if>
54   </redback:ifAuthorized>
55
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>
59
60       <ul>
61         <s:iterator id="role" value="effectivelyAssignedRoles">
62           <li>${role.name}</li>
63         </s:iterator>
64       </ul>
65
66     </c:if>
67
68     <s:url id="assignmentUrl" action="assignments" includeParams="none">
69       <s:param name="username">${user.username}</s:param>
70     </s:url>
71     <s:a href="%{assignmentUrl}"><s:text name="user.edit.roles"/></s:a>
72   </redback:ifAuthorized>
73 </body>
74 </s:i18n>
75 </html>