Rev 138 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %>
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/tlds/estgweb.tld" prefix="estgweb" %>
<jomm:messages/>
<%--<jsp:useBean id="ProfileForm" class="pt.estgp.estgweb.web.form.profile.ProfileForm"/>--%>
<html:form action="/profile">
<input type="hidden" name="dispatch" value="editUser">
<html:hidden property="userView.id"/>
<bean:message key="profile.edit"/>
<table class="form">
<estgweb:isNotAdmin>
<tr>
<th>
<bean:message key="login.first.time.username"/>
</th>
<td>
<html:text property="userView.username" maxlength="250" readonly="true" styleClass="readOnly"/>
</td>
</tr>
</estgweb:isNotAdmin>
<estgweb:isAdmin>
<tr>
<th>
<bean:message key="login.first.time.username"/>
</th>
<td>
<html:text property="userView.username" maxlength="250"/>
</td>
</tr>
<tr>
<th>
<bean:message key="login.first.time.targets"/>
</th>
<td>
<html:select property="targetRolesStr">
<logic:present name="ProfileForm" property="targetRoles">
<logic:iterate id="item" name="ProfileForm" property="targetRoles">
<jomm:option itemName="item" comparableObjectName="ProfileForm"
comparableObjectProperty="targetRolesStr">
<jomm:message patternMessage="user.role.{0}" name0="item"/>
</jomm:option>
</logic:iterate>
<input type="button" value="<bean:message key="add"/>"
onclick="set(this.form,'addRole');this.form.submit();">
</logic:present>
</html:select>
<logic:present name="ProfileForm" property="selectedRoles">
<logic:notEmpty name="ProfileForm" property="selectedRoles">
<ul>
<logic:iterate id="item" name="ProfileForm" property="selectedRoles">
<li>
<jomm:message patternMessage="user.role.{0}" name0="item"/>
<input type="button" value="<bean:message key="remove"/>"
onclick="AnnouncementsForm.role.value='${item}';set(this.form,'removeRole');this.form.submit();">
</li>
</logic:iterate>
</ul>
</logic:notEmpty>
</logic:present>
</td>
</tr>
</estgweb:isAdmin>
<tr>
<th>
<bean:message key="login.first.time.bi"/>
</th>
<td>
<html:text property="userView.bi" maxlength="250" readonly="true" styleClass="readOnly"/>
</td>
</tr>
<tr>
<th>
<bean:message key="login.first.time.birthday.date"/>
</th>
<td>
<html:text property="birthDayDate" maxlength="100" readonly="true" styleClass="readOnly"/>
</td>
</tr>
<tr>
<th>
<bean:message key="login.first.time.name"/>
</th>
<td>
<html:text property="userView.name" maxlength="250" readonly="true" styleClass="readOnly"/>
</td>
</tr>
<tr>
<th>
<bean:message key="login.first.time.address"/>
</th>
<td>
<html:text property="userView.address" maxlength="250" readonly="true" styleClass="readOnly"/>
</td>
</tr>
<tr>
<th>
<bean:message key="login.first.time.zip"/>
</th>
<td>
<html:text property="userView.zip" maxlength="8" readonly="true" styleClass="readOnly"/>
</td>
</tr>
<tr>
<th>
<bean:message key="login.first.time.country"/>
</th>
<td>
<html:text property="userView.country" maxlength="100" readonly="true" styleClass="readOnly"/>
</td>
</tr>
<tr>
<th>
<bean:message key="login.first.time.phone.number"/>
</th>
<td>
<html:text property="userView.phonenumber" maxlength="250" styleClass="readOnly"/>
</td>
</tr>
<estgweb:isNotAdmin>
<tr>
<th>
<bean:message key="login.first.time.email.institucion"/>
</th>
<td>
<html:text property="userView.email" maxlength="250" readonly="true" styleClass="readOnly"/>
</td>
</tr>
</estgweb:isNotAdmin>
<estgweb:isAdmin>
<tr>
<th>
<bean:message key="login.first.time.email.institucion2"/>
</th>
<td>
<html:text property="userView.email" maxlength="250"/>
</td>
</tr>
</estgweb:isAdmin>
<tr>
<th>
<bean:message key="login.first.time.email.secundary"/>
</th>
<td>
<html:text property="userView.outEmail" maxlength="250"/>
</td>
</tr>
<estgweb:isNotAdmin>
<tr>
<th>
<bean:message key="profile.email.change"/>
</th>
</tr>
</estgweb:isNotAdmin>
<tr class="buttons">
<td colspan="2">
<input type="button" onclick="set(this.form,'editUser');this.form.submit()"
value="<bean:message key="confirm"/>"/>
</td>
</tr>
</table>
</html:form>
Generated by GNU Enscript 1.6.5.2.