]> source.dussan.org Git - archiva.git/blob
4b18f96120f7182fd5944191ffba72cfeca87fbb
[archiva.git] /
1 <%--
2   ~ Copyright 2006 The Apache Software Foundation.
3   ~
4   ~ Licensed under the Apache License, Version 2.0 (the "License");
5   ~ you may not use this file except in compliance with the License.
6   ~ You may obtain a copy of the License at
7   ~
8   ~      http://www.apache.org/licenses/LICENSE-2.0
9   ~
10   ~ Unless required by applicable law or agreed to in writing, software
11   ~ distributed under the License is distributed on an "AS IS" BASIS,
12   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   ~ See the License for the specific language governing permissions and
14   ~ limitations under the License.
15   --%>
16 <%@ taglib prefix="s" uri="/struts-tags" %>
17 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
18 <%@ taglib uri="/redback/taglib-1.0" prefix="redback" %>
19
20 <c:choose>
21   <c:when test="${user.edit}">
22     <s:label label="%{getText('username')}"         name="user.username" />
23     <s:hidden name="user.username" />
24   </c:when>
25   <c:otherwise> 
26         <redback:isReadOnlyUserManager>
27           <s:label label="%{getText('username')}"         name="user.username" />
28         </redback:isReadOnlyUserManager>
29         <redback:isNotReadOnlyUserManager>
30       <s:textfield label="%{getText('username')}"         name="user.username" size="30" required="true"/>
31         </redback:isNotReadOnlyUserManager>
32   </c:otherwise>
33 </c:choose>
34
35  
36   
37   <redback:isReadOnlyUserManager>
38     <s:label label="%{getText('full.name')}"         name="user.fullName" />
39   </redback:isReadOnlyUserManager>
40   <redback:isNotReadOnlyUserManager>
41     <s:textfield label="%{getText('full.name')}"        name="user.fullName" size="30" required="true"/>
42   </redback:isNotReadOnlyUserManager>
43   
44   <redback:isReadOnlyUserManager>
45     <s:label label="%{getText('email.address')}"         name="user.email" />
46   </redback:isReadOnlyUserManager>
47   <redback:isNotReadOnlyUserManager>
48     <s:textfield label="%{getText('email.address')}"    name="user.email" size="50"    required="true"/>
49   </redback:isNotReadOnlyUserManager>
50   
51   <redback:isNotReadOnlyUserManager>
52   <c:choose>
53     <c:when test="${self}">
54       <s:password  label="%{getText('current.password')}" name="oldPassword" size="20" required="true"/>
55       <s:password  label="%{getText('new.password')}" name="user.password" size="20" required="true"/>
56     </c:when>
57     <c:otherwise>
58       <s:password  label="%{getText('password')}"         name="user.password" size="20" required="true"/>
59     </c:otherwise>
60   </c:choose>
61   <s:password  label="%{getText('confirm.password')}" name="user.confirmPassword" size="20" required="true"/>
62   </redback:isNotReadOnlyUserManager>
63
64 <s:if test="%{user.timestampAccountCreation != null}">
65   <s:label     label="%{getText('account.creation')}"     name="user.timestampAccountCreation" />
66 </s:if>
67
68 <s:if test="%{user.timestampLastLogin != null}">
69   <s:label     label="%{getText('last.login')}"           name="user.timestampLastLogin" />
70 </s:if>
71
72 <s:if test="%{user.timestampLastPasswordChange != null}">
73   <s:label     label="%{getText('last.password.change')}" name="user.timestampLastPasswordChange" />
74 </s:if>
75 <s:token/>