Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 1310 → Rev 1312

/branches/v3/impl/src/web/admin/profile/profilePersonalData.jsp
31,99 → 31,101
boolean regular = false;
//separator=${separator}
%>
 
<div class="panel panel-default">
<div class="panel-heading">
<bean:message key="configuration.task"/>
</div>
<div class="panel-body">
 
 
<html:form action="/user/profile${fromAction}?${from}">
<input type="hidden" name="dispatch" value="editUser">
<html:hidden property="userView.id"/>
<html:hidden property="role"/>
<html:hidden property="typeClass"/>
<table class="form">
 
 
<!--<table class="form">-->
 
<baco:isAdmin>
<tr>
<th>TIPO DE UTILIZADOR</th>
<td>
<%
<div class="form-group">
<label for="tipoUtilizador">TIPO DE UTILIZADOR:</label>
<span id="tipoUtilizador">
<%
 
pt.estgp.estgweb.web.form.profile.ProfileForm pf = (pt.estgp.estgweb.web.form.profile.ProfileForm) request.getAttribute("ProfileForm");
if(pf.getUserView().getUser() instanceof pt.estgp.estgweb.domain.StudentImpl)
{
%>
CLASSE ESTUDANTE
<%
}
else if(pf.getUserView().getUser() instanceof pt.estgp.estgweb.domain.TeacherImpl)
{
%>
CLASSE PROFESSOR
<%
}
else
{
regular = true;
%>
<label class="warning">CLASSE NORMAL</label>
<%
}
pt.estgp.estgweb.web.form.profile.ProfileForm pf = (pt.estgp.estgweb.web.form.profile.ProfileForm) request.getAttribute("ProfileForm");
if(pf.getUserView().getUser() instanceof pt.estgp.estgweb.domain.StudentImpl)
{
%>
CLASSE ESTUDANTE
<%
}
else if(pf.getUserView().getUser() instanceof pt.estgp.estgweb.domain.TeacherImpl)
{
%>
CLASSE PROFESSOR
<%
}
else
{
regular = true;
%>
<label class="warning">CLASSE NORMAL</label>
<%
}
 
%>
</td>
</tr>
<tr>
<th>
<bean:message key="profile.autoBlockMode"/>
</th>
<td>
<html:select property="userView.autoBlockMode">
<html:option value="true" key="profile.autoBlockMode.true"/>
<html:option value="false" key="profile.autoBlockMode.false"/>
</html:select>
</td>
</tr>
<tr>
<th>
<bean:message key="profile.autoBlock"/>
</th>
<td>
<html:select property="userView.autoBlock">
<html:option value="true" key="profile.autoBlock.true"/>
<html:option value="false" key="profile.autoBlock.false"/>
</html:select>
</td>
</tr>
<tr>
<th>
<bean:message key="profile.manualBlock"/>
</th>
<td>
<html:select property="userView.manualBlock">
<html:option value="true" key="profile.manualBlock.true"/>
<html:option value="false" key="profile.manualBlock.false"/>
</html:select>
</td>
</tr>
<tr>
<td colspan="2"><hr/></td>
</tr>
%>
</span>
</div>
<div class="form-group">
<label for="profileAutoBlockMode"><bean:message key="profile.autoBlockMode"/></label>
<html:select styleId="profileAutoBlockMode" property="userView.autoBlockMode">
<html:option value="true" key="profile.autoBlockMode.true"/>
<html:option value="false" key="profile.autoBlockMode.false"/>
</html:select>
</div>
<div class="form-group">
<label for="profileAutoBlock"><bean:message key="profile.autoBlock"/></label>
<html:select styleId="profileAutoBlock" property="userView.autoBlock">
<html:option value="true" key="profile.autoBlock.true"/>
<html:option value="false" key="profile.autoBlock.false"/>
</html:select>
</div>
<div class="form-group">
<label for="profileManualBlock"><bean:message key="profile.manualBlock"/></label>
<html:select styleId="profileManualBlock" property="userView.manualBlock">
<html:option value="true" key="profile.manualBlock.true"/>
<html:option value="false" key="profile.manualBlock.false"/>
</html:select>
</div>
 
</baco:isAdmin>
<baco:isNotAdmin>
 
<div class="form-group">
<label for="code"><bean:message key="profile.siges.code"/></label>
<html:text styleId="code" styleClass="text" property="userView.code" maxlength="250" readonly="true"/>
</div>
 
<div class="form-group">
<label for="username"> <bean:message key="username"/></label>
<html:text styleId="username" property="userView.username" maxlength="250" readonly="true" styleClass="readOnly text"/>
</div>
 
<div class="form-group">
<label for=""></label>
 
</div>
 
<tr>
<th>
<bean:message key="profile.siges.code"/>
 
</th>
<td>
<html:text styleClass="text" property="userView.code" maxlength="250" readonly="true"/>
 
</td>
</tr>
<tr>
<th>
<bean:message key="username"/>
</th>
<td>
<html:text property="userView.username" maxlength="250" readonly="true" styleClass="readOnly text"/>
</td>
</tr>
 
 
<%
246,7 → 248,7
<logic:iterate id="item" name="ProfileForm" property="targetRoles">
<jomm:option itemName="item" comparableObjectName="ProfileForm"
comparableObjectProperty="targetRolesStr">
<jomm:message patternMessage="user.role.{0}" name0="item"/>
<bean:message key="user.role.${item}"/>
</jomm:option>
</logic:iterate>
<input type="button" value="<bean:message key="add"/>"
260,7 → 262,7
<logic:iterate id="item" name="ProfileForm" property="selectedRoles">
<tr>
<th>
<jomm:message patternMessage="user.role.{0}" name0="item"/>
<bean:message key="user.role.${item}"/>
</th>
<td>
<input type="button" class="removeButton" value=""
397,9 → 399,6
</td>
</tr>
 
<tr class="tableSeparator">
<td colspan="2"></td>
</tr>
 
<tr>
<th>
509,5 → 508,25
</tr>
</table>
</html:form>
 
 
</div> <!--End panel-body-->
</div> <!--End panel-->
<logic:present name="ProfileForm" property="userView.courses">
<ul>
<logic:iterate id="course" name="ProfileForm" property="userView.courses">
<li>
<bean:write name="course" property="name"/>
<ul>
<logic:iterate id="courseUnit" name="course" property="courseUnits">
<li>
(<bean:write name="courseUnit" property="importYear"/>) <html:link action="${user}/startLoadCourseUnit${fromAction}?courseUnitView.id=${courseUnit.id}"><bean:write name="courseUnit" property="name"/> (<bean:write name="courseUnit" property="code"/>)</html:link>
</li>
</logic:iterate>
</ul>
</li>
</logic:iterate>
</ul>
</logic:present>
</div>
</div>