2 ~ Copyright 2006 The Apache Software Foundation.
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
8 ~ http://www.apache.org/licenses/LICENSE-2.0
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.
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" %>
21 <c:when test="${user.edit}">
22 <s:label label="%{getText('username')}" name="user.username" />
23 <s:hidden name="user.username" />
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>
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>
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>
51 <redback:isNotReadOnlyUserManager>
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"/>
58 <s:password label="%{getText('password')}" name="user.password" size="20" required="true"/>
61 <s:password label="%{getText('confirm.password')}" name="user.confirmPassword" size="20" required="true"/>
62 </redback:isNotReadOnlyUserManager>
64 <s:if test="%{user.timestampAccountCreation != null}">
65 <s:label label="%{getText('account.creation')}" name="user.timestampAccountCreation" />
68 <s:if test="%{user.timestampLastLogin != null}">
69 <s:label label="%{getText('last.login')}" name="user.timestampLastLogin" />
72 <s:if test="%{user.timestampLastPasswordChange != null}">
73 <s:label label="%{getText('last.password.change')}" name="user.timestampLastPasswordChange" />