Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 1481 → Rev 1482

/branches/v3/impl/src/web/user/courseunits/courseunitassignement.jsp
19,85 → 19,85
<div id="contentPane">
<html:errors/>
<jomm:messages/>
<div class="seccao">
<h2>
<bean:message key="courseunit.assignement" arg0="${CourseUnitAssignementView.title}"/>
</h2>
 
 
<div class="form blockForm">
<table>
<tr>
<th>
<bean:message key="courseunit.title"/>
</th>
<td>
<bean:write name="CourseUnitAssignementView" property="title"/>
</td>
</tr>
<tr>
<th>
<bean:message key="courseunit.assignement.deliver.date"/>
</th>
<td>
<bean:write name="CourseUnitAssignementView" property="deliverDate"/>
</td>
</tr>
<tr>
<th>
<bean:message key="courseunit.assignement.deliver.type"/>
</th>
<td>
<bean:message key="courseunit.assignement.deliver.type.${CourseUnitAssignementView.deliverType}"/>
</td>
</tr>
<tr>
<th>
<bean:message key="courseunit.assignement.deliver.late.permission"/>
</th>
<td>
<logic:equal value="true" name="CourseUnitAssignementView" property="lateDelivers">
<bean:message key="yes"/>
</logic:equal>
<logic:notEqual value="true" name="CourseUnitAssignementView" property="lateDelivers">
<bean:message key="no"/>
</logic:notEqual>
</td>
</tr>
<tr>
<th>
<bean:message key="courseunit.description"/>
</th>
<td>
${CourseUnitAssignementView.formatedDescription}
</td>
</tr>
<tr>
<th>
<bean:message key="courseunit.status"/>
</th>
<td>
<logic:equal value="true" name="CourseUnitAssignementView" property="status">
<bean:message key="status.active"/>
</logic:equal>
<logic:notEqual value="true" name="CourseUnitAssignementView" property="status">
<bean:message key="status.inactive"/>
</logic:notEqual>
</td>
</tr>
<logic:notEmpty name="CourseUnitAssignementView" property="workFile">
<div class="panel panel-default">
<div class="panel-heading">
<bean:message key="courseunit.assignement" arg0="${CourseUnitAssignementView.title}"/>
</div>
<div class="panel-body">
<table class="tablesorter-blue">
<tr>
<th>
<bean:message key="courseunit.assignement.file"/>
<bean:message key="courseunit.title"/>
</th>
<td>
<a target="_blank" href="<%=request.getContextPath()%>/repositoryStream/${CourseUnitAssignementView.workFile}"><bean:message key="courseunit.assignement.file"/></a>
<bean:write name="CourseUnitAssignementView" property="title"/>
</td>
</tr>
</logic:notEmpty>
</table>
</div>
<tr>
<th>
<bean:message key="courseunit.assignement.deliver.date"/>
</th>
<td>
<bean:write name="CourseUnitAssignementView" property="deliverDate"/>
</td>
</tr>
<tr>
<th>
<bean:message key="courseunit.assignement.deliver.type"/>
</th>
<td>
<bean:message key="courseunit.assignement.deliver.type.${CourseUnitAssignementView.deliverType}"/>
</td>
</tr>
<tr>
<th>
<bean:message key="courseunit.assignement.deliver.late.permission"/>
</th>
<td>
<logic:equal value="true" name="CourseUnitAssignementView" property="lateDelivers">
<bean:message key="yes"/>
</logic:equal>
<logic:notEqual value="true" name="CourseUnitAssignementView" property="lateDelivers">
<bean:message key="no"/>
</logic:notEqual>
</td>
</tr>
<tr>
<th>
<bean:message key="courseunit.description"/>
</th>
<td>
${CourseUnitAssignementView.formatedDescription}
</td>
</tr>
<tr>
<th>
<bean:message key="courseunit.status"/>
</th>
<td>
<logic:equal value="true" name="CourseUnitAssignementView" property="status">
<bean:message key="status.active"/>
</logic:equal>
<logic:notEqual value="true" name="CourseUnitAssignementView" property="status">
<bean:message key="status.inactive"/>
</logic:notEqual>
</td>
</tr>
<logic:notEmpty name="CourseUnitAssignementView" property="workFile">
<tr>
<th>
<bean:message key="courseunit.assignement.file"/>
</th>
<td>
<a target="_blank" href="<%=request.getContextPath()%>/repositoryStream/${CourseUnitAssignementView.workFile}"><bean:message key="courseunit.assignement.file"/></a>
</td>
</tr>
</logic:notEmpty>
</table>
 
 
 
<bean:define id="orderFirst" type="java.lang.String" scope="request" value=""/>
<bean:define id="orderLast" type="java.lang.String" scope="request" value=""/>
 
157,19 → 157,22
 
<html:hidden property="courseUnitView.id" value="${CourseUnitView.id}"/>
 
<a name="works"/>
<table class="dataTable">
<tr>
<th><bean:message key="courseunit.assignement.delivered.versions"/></th>
<th><html:link action="/user/startLoadCourseUnitAssignementFromHome?courseUnitAssignementView.id=${CourseUnitAssignementView.id}&sort=${orderFirst}#works"><bean:message key="courseunit.assignement.delivered.date.first.version"/></html:link></th>
<th><html:link action="/user/startLoadCourseUnitAssignementFromHome?courseUnitAssignementView.id=${CourseUnitAssignementView.id}&sort=${orderLast}#works"><bean:message key="courseunit.assignement.delivered.date"/></html:link></th>
<th><bean:message key="courseunit.assignement.deliver.time"/></th>
<th><bean:message key="number"/></th>
<th><bean:message key="name"/></th>
<th><bean:message key="courseunit.assignement.deliver.version"/></th>
<th><bean:message key="courseunit.assignement.deliver.grade"/></th>
<th><bean:message key="courseunit.assignement.deliver.obs"/></th>
</tr>
<a name="works"> </a>
<table class="tablesorter-blue">
<thead>
<tr>
<th><bean:message key="courseunit.assignement.delivered.versions"/></th>
<th><bean:message key="courseunit.assignement.delivered.date.first.version"/></th>
<th><bean:message key="courseunit.assignement.delivered.date"/></th>
<th><bean:message key="courseunit.assignement.deliver.time"/></th>
<th><bean:message key="number"/></th>
<th><bean:message key="name"/></th>
<th><bean:message key="courseunit.assignement.deliver.version"/></th>
<th><bean:message key="courseunit.assignement.deliver.grade"/></th>
<th><bean:message key="courseunit.assignement.deliver.obs"/></th>
</tr>
</thead>
<tbody>
<nested:iterate id="deliverable" property="courseUnitAssignementView.deliverables" type="pt.estgp.estgweb.domain.views.CourseUnitDeliverableView">
<tr>
<td align="right">
185,13 → 188,17
<td nowrap="nowrap" align="center">${deliverable.deliverDateMinutesSecondsStrFirstVersion} </td>
<td nowrap="nowrap" align="center">${deliverable.deliverDateStrMinutesSeconds} </td>
<logic:equal name="deliverable" property="lateDeliver" value="true">
<td class="statusERROR">
<bean:message key="courseunit.assignement.deliver.time.late"/>
<td>
<label class="statusERROR">
<bean:message key="courseunit.assignement.deliver.time.late"/>
</label>
</td>
</logic:equal>
<logic:notEqual name="deliverable" property="lateDeliver" value="true">
<td class="statusOK">
<bean:message key="courseunit.assignement.deliver.time.ok"/>
<td >
<label class="statusOK">
<bean:message key="courseunit.assignement.deliver.time.ok"/>
</label>
</td>
</logic:notEqual>
<td align="right">${deliverable.student.code}</td>
209,13 → 216,11
</td>
</tr>
</nested:iterate>
<tr>
<td colspan="7">
<input type="button" onclick="this.form.submit()" value="<bean:message key="confirm"/>"/>
</td>
</tr>
 
</tbody>
</table>
<input type="button" onclick="this.form.submit()" value="<bean:message key="confirm"/>"/>
</nested:form>
</div>
</div>
</div>
</div>