Rev 1312 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1040 | jmachado | 1 | <%@ page import="pt.estgp.estgweb.domain.views.CourseUnitView" %> |
2 | <%@ page import="pt.estgp.estgweb.domain.views.CourseView" %> |
||
3 | <%@ page import="pt.estgp.estgweb.web.utils.RequestUtils" %> |
||
4 | <%@ page import="pt.utl.ist.berserk.logic.serviceManager.IServiceManager" %> |
||
5 | <%@ page import="pt.utl.ist.berserk.logic.serviceManager.ServiceManager" %> |
||
6 | <%@ page import="java.util.List" %> |
||
7 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
||
8 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
||
9 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
||
10 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
||
11 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
||
12 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
||
13 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
||
14 | |||
15 | |||
16 | <jsp:useBean id="CourseForm" type="pt.estgp.estgweb.web.form.courses.CourseForm" scope="request"/> |
||
17 | <jsp:useBean id="UserSession" type="pt.estgp.estgweb.domain.UserSession" scope="request"/> |
||
18 | <jsp:useBean id="SEMESTRE" type="java.lang.String" scope="request"/> |
||
19 | <jsp:useBean id="courseView" type="pt.estgp.estgweb.domain.views.CourseView" scope="request"/> |
||
20 | |||
21 | <% |
||
22 | boolean canChange = false; |
||
1312 | jmachado | 23 | |
1040 | jmachado | 24 | %> |
25 | <!-- ++++++++++++++++++++++++++++++++++++++++++++ --> |
||
26 | <!-- CADEIRAS DO SEMESTRE 1 - SEM PROGRAMA --> |
||
27 | <!-- ++++++++++++++++++++++++++++++++++++++++++++ --> |
||
28 | <div class="panel-body"> |
||
29 | |||
1312 | jmachado | 30 | <% |
31 | if(courseView.isSeparatedUnits(CourseForm.getImportYear())) |
||
32 | { |
||
33 | %> |
||
34 | <div class="alert alert-info"> |
||
35 | Este curso está configurado para <strong>separar</strong> as turmas em diferentes unidades |
||
36 | </div> |
||
37 | <% |
||
38 | } |
||
39 | %> |
||
1040 | jmachado | 40 | |
41 | |||
42 | <logic:equal value="true" name="courseView" property="hasCourseUnitsWithNoProgram${SEMESTRE}"> |
||
43 | <logic:notEmpty name="courseView" property="courseUnitsWithNoProgram${SEMESTRE}"> |
||
44 | <div class="panel panel-danger"> |
||
45 | <div class="panel-heading"><bean:message key="course.units.no.program"/></div> |
||
46 | <div class="panel-body"> |
||
47 | <script type="text/javascript" language="JavaScript"> |
||
48 | //TABLE SORTER |
||
49 | $(document).ready(function() |
||
50 | { |
||
51 | $("#myTable${SEMESTRE}NP${courseView.id}").tablesorter(); |
||
52 | |||
53 | } |
||
54 | ); |
||
55 | </script> |
||
1312 | jmachado | 56 | <table id="myTable${SEMESTRE}NP${courseView.id}" class="tablesorter tablesorterfiltered"> |
1040 | jmachado | 57 | <thead> |
58 | <tr> |
||
59 | <th>Código</th> |
||
60 | <th>Unidade</th> |
||
1312 | jmachado | 61 | <% |
62 | if(courseView.isSeparatedUnits(CourseForm.getImportYear())) |
||
63 | { |
||
64 | %> |
||
1114 | jmachado | 65 | <th>Turma</th> |
1312 | jmachado | 66 | <% |
67 | } |
||
68 | %> |
||
1040 | jmachado | 69 | <th>Docente</th> |
1312 | jmachado | 70 | <th class="filter-false" data-sorter="false">Ficha</th> |
1350 | jmachado | 71 | <th class="filter-false" data-sorter="false">Abrir Avaliação Extraordináriamente</th> |
1312 | jmachado | 72 | <th class="filter-false" data-sorter="false">Relatório</th> |
1040 | jmachado | 73 | </tr> |
74 | </thead> |
||
75 | <tbody> |
||
1312 | jmachado | 76 | |
1040 | jmachado | 77 | <nested:iterate id="courseUnitView" property="courseUnitsWithNoProgram${SEMESTRE}" type="pt.estgp.estgweb.domain.views.CourseUnitView"> |
78 | <tr> |
||
1312 | jmachado | 79 | <td style="text-align: right">${courseUnitView.code}</td> |
80 | <td><a href="<%=request.getContextPath()%>/user/startLoadCourseUnitFromHome.do?id=${courseUnitView.id}">${courseUnitView.name}</a></td> |
||
81 | <% |
||
82 | if(courseView.isSeparatedUnits(CourseForm.getImportYear())) |
||
83 | { |
||
84 | %> |
||
1114 | jmachado | 85 | <td>${courseUnitView.cdTurma}</td> |
1312 | jmachado | 86 | <% |
87 | } |
||
88 | %> |
||
1040 | jmachado | 89 | <td>${courseUnitView.teachersSnipet}</td> |
90 | <td class="icons"> |
||
1312 | jmachado | 91 | <a class="btn btn-small" href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.programStreamId}"><span class="glyphicon glyphicon-file"></span></a> |
1040 | jmachado | 92 | <baco:isNotAdmin> |
93 | <logic:equal value="false" name="courseUnitView" property="validProgram"> |
||
94 | <logic:equal value="${courseView.coordinator.id}" name="UserSession" property="user.id"> |
||
1312 | jmachado | 95 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1040 | jmachado | 96 | </logic:equal> |
97 | <logic:notEqual value="${courseView.coordinator.id}" name="UserSession" property="user.id"> |
||
1094 | jmachado | 98 | <baco:hasRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms"> |
1312 | jmachado | 99 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1093 | jmachado | 100 | </baco:hasRole> |
101 | </logic:notEqual> |
||
102 | <logic:notEqual value="${courseView.coordinator.id}" name="UserSession" property="user.id"> |
||
1040 | jmachado | 103 | <baco:isTeacherOfCourseUnit courseUnitId="${courseUnitView.id}"> |
1094 | jmachado | 104 | <baco:hasNotRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms"> |
1312 | jmachado | 105 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1093 | jmachado | 106 | </baco:hasNotRole> |
1040 | jmachado | 107 | </baco:isTeacherOfCourseUnit> |
108 | </logic:notEqual> |
||
109 | </logic:equal> |
||
1312 | jmachado | 110 | </baco:isNotAdmin> |
111 | <baco:isAdmin> |
||
112 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
||
113 | </baco:isAdmin> |
||
114 | </td> |
||
1350 | jmachado | 115 | <td class="icons" style="text-align: center; vertical-align: middle"> |
116 | <baco:hasRole role="${courseView.validationRole},courseValidatePrograms" > |
||
117 | <nested:checkbox styleClass="btn" property="evaluationOpenByAdmin"/> |
||
118 | </baco:hasRole> |
||
119 | </td> |
||
1312 | jmachado | 120 | <td class="icons"> |
121 | <baco:isNotAdmin> |
||
1094 | jmachado | 122 | <baco:hasRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms"> |
1046 | jmachado | 123 | <logic:equal value="true" name="courseUnitView" property="validEvaluation"> |
1312 | jmachado | 124 | <a class="btn btn-small" href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.evaluationStreamId}"><span class="glyphicon glyphicon-check"></span></a> |
1046 | jmachado | 125 | </logic:equal> |
1312 | jmachado | 126 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitEvaluation.do?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1046 | jmachado | 127 | </baco:hasRole> |
1094 | jmachado | 128 | <baco:hasNotRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms"> |
1046 | jmachado | 129 | <baco:isTeacherOfCourseUnit courseUnitId="${courseUnitView.id}"> |
130 | <logic:equal value="true" name="courseUnitView" property="validEvaluation"> |
||
1312 | jmachado | 131 | <a class="btn btn-small" href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.evaluationStreamId}"><span class="glyphicon glyphicon-check"></span></a> |
1046 | jmachado | 132 | </logic:equal> |
1312 | jmachado | 133 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitEvaluation.do?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1046 | jmachado | 134 | </baco:isTeacherOfCourseUnit> |
135 | </baco:hasNotRole> |
||
1040 | jmachado | 136 | </baco:isNotAdmin> |
137 | <baco:isAdmin> |
||
1046 | jmachado | 138 | <logic:equal value="true" name="courseUnitView" property="validEvaluation"> |
1312 | jmachado | 139 | <a class="btn btn-small" href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.evaluationStreamId}"><span class="glyphicon glyphicon-check"></span></a> |
1046 | jmachado | 140 | </logic:equal> |
1312 | jmachado | 141 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitEvaluation.do?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1040 | jmachado | 142 | </baco:isAdmin> |
143 | </td> |
||
144 | </tr> |
||
145 | </nested:iterate> |
||
146 | </tbody> |
||
147 | </table> |
||
148 | |||
149 | </div><!--panel body--> |
||
150 | </div><!--panel--> |
||
151 | </logic:notEmpty> |
||
152 | </logic:equal> |
||
153 | |||
154 | |||
155 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++ --> |
||
156 | <!-- CADEIRAS DO SEMESTRE 1 - COM PROGRAMA INVALIDO --> |
||
157 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++ --> |
||
158 | <logic:equal value="true" name="courseView" property="hasCourseUnitsWithProgramNotChecked${SEMESTRE}"> |
||
159 | <logic:notEmpty name="courseView" property="courseUnitsWithProgramNotChecked${SEMESTRE}"> |
||
160 | <%--<html:hidden property="courseUnitsWithProgramNotCheckedS1size"/>--%> |
||
161 | |||
162 | <div class="panel panel-warning"> |
||
163 | <div class="panel-heading"><bean:message key="course.units.with.program.not.checked"/></div> |
||
164 | <div class="panel-body"> |
||
165 | |||
166 | |||
167 | <script type="text/javascript" language="JavaScript"> |
||
168 | //TABLE SORTER |
||
169 | $(document).ready(function() |
||
170 | { |
||
171 | $("#myTable${SEMESTRE}PI${courseView.id}").tablesorter(); |
||
172 | |||
173 | } |
||
174 | ); |
||
175 | </script> |
||
1114 | jmachado | 176 | <table id="myTable${SEMESTRE}PI${courseView.id}" class="dataTable tablesorter tablesorterfiltered"> |
1040 | jmachado | 177 | <thead> |
178 | <tr> |
||
179 | <th>Código</th> |
||
180 | <th>Unidade</th> |
||
1312 | jmachado | 181 | <% |
182 | if(courseView.isSeparatedUnits(CourseForm.getImportYear())) |
||
183 | { |
||
184 | %> |
||
1114 | jmachado | 185 | <th>Turma</th> |
1312 | jmachado | 186 | <% |
187 | } |
||
188 | %> |
||
1040 | jmachado | 189 | <th>Docente</th> |
1312 | jmachado | 190 | <th class="filter-false" data-sorter="false">Validar Ficha</th> |
191 | <th class="filter-false" data-sorter="false">Ficha</th> |
||
1350 | jmachado | 192 | <th class="filter-false" data-sorter="false">Abrir Avaliação Extraordináriamente</th> |
1312 | jmachado | 193 | <th class="filter-false" data-sorter="false">Relatório</th> |
1040 | jmachado | 194 | </tr> |
195 | </thead> |
||
196 | <tbody> |
||
197 | <nested:iterate id="courseUnitView" property="courseUnitsWithProgramNotChecked${SEMESTRE}" type="pt.estgp.estgweb.domain.views.CourseUnitView"> |
||
198 | <tr> |
||
199 | |||
200 | <%--<logic:notEqual value="${courseView.coordinator.id}" name="UserSession" property="user.id">--%> |
||
201 | <!--<td></td>--> |
||
202 | <%--</logic:notEqual>--%> |
||
203 | <%--<logic:equal value="${courseView.coordinator.id}" name="UserSession" property="user.id">--%> |
||
204 | <%--<%--%> |
||
205 | <!--// canChange=true;--> |
||
206 | <%--%>--%> |
||
207 | <!--<td><nested:hidden property="programStreamId"/>--> |
||
208 | <%--<nested:hidden property="id"/>--%> |
||
209 | <%--<nested:checkbox property="validProgram"/></td>--%> |
||
210 | <%--</logic:equal>--%> |
||
211 | |||
212 | <%--NOVO VALIDATION ROLE--%> |
||
1312 | jmachado | 213 | <%-- <baco:hasNotRole role="${courseView.validationRole},courseValidatePrograms" > |
1040 | jmachado | 214 | <td></td> |
215 | </baco:hasNotRole> |
||
216 | <baco:hasRole role="${courseView.validationRole},courseValidatePrograms" > |
||
217 | <% |
||
218 | canChange=true; |
||
219 | %> |
||
220 | <td><nested:hidden property="programStreamId"/> |
||
221 | <nested:hidden property="id"/> |
||
222 | <nested:checkbox property="validProgram"/></td> |
||
1312 | jmachado | 223 | </baco:hasRole>--%> |
224 | <td style="text-align: right">${courseUnitView.code}</td> |
||
225 | <td><a href="<%=request.getContextPath()%>/user/startLoadCourseUnitFromHome.do?id=${courseUnitView.id}">${courseUnitView.name}</a></td> |
||
226 | <%--<td>${courseUnitView.cdTurma}</td>--%> |
||
227 | <% |
||
228 | if(courseView.isSeparatedUnits(CourseForm.getImportYear())) |
||
229 | { |
||
230 | %> |
||
1133 | jmachado | 231 | <td>${courseUnitView.cdTurma}</td> |
1312 | jmachado | 232 | <% |
233 | } |
||
234 | %> |
||
1040 | jmachado | 235 | <td>${courseUnitView.teachersSnipet}</td> |
1312 | jmachado | 236 | <td class="icons" style="text-align: center; vertical-align: middle"> |
237 | <baco:hasRole role="${courseView.validationRole},courseValidatePrograms" > |
||
238 | <% |
||
239 | canChange=true; |
||
240 | %> |
||
241 | <nested:hidden property="programStreamId"/> |
||
242 | <nested:hidden property="id"/> |
||
243 | <nested:checkbox styleClass="btn" property="validProgram"/> |
||
244 | </baco:hasRole> |
||
245 | </td> |
||
1040 | jmachado | 246 | <td class="icons"> |
1312 | jmachado | 247 | <a class="btn btn-small" href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.programStreamId}"><span class="glyphicon glyphicon-file"></span></a> |
1040 | jmachado | 248 | <baco:isNotAdmin> |
249 | <logic:equal value="false" name="courseUnitView" property="validProgram"> |
||
250 | <logic:equal value="${courseView.coordinator.id}" name="UserSession" property="user.id"> |
||
1312 | jmachado | 251 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1040 | jmachado | 252 | </logic:equal> |
253 | <logic:notEqual value="${courseView.coordinator.id}" name="UserSession" property="user.id"> |
||
1094 | jmachado | 254 | <baco:hasRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms"> |
1312 | jmachado | 255 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1093 | jmachado | 256 | </baco:hasRole> |
257 | </logic:notEqual> |
||
258 | <logic:notEqual value="${courseView.coordinator.id}" name="UserSession" property="user.id"> |
||
1040 | jmachado | 259 | <baco:isTeacherOfCourseUnit courseUnitId="${courseUnitView.id}"> |
1094 | jmachado | 260 | <baco:hasNotRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms"> |
1312 | jmachado | 261 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1093 | jmachado | 262 | </baco:hasNotRole> |
1040 | jmachado | 263 | </baco:isTeacherOfCourseUnit> |
264 | </logic:notEqual> |
||
265 | </logic:equal> |
||
1312 | jmachado | 266 | </baco:isNotAdmin> |
267 | <baco:isAdmin> |
||
268 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
||
269 | </baco:isAdmin> |
||
270 | </td> |
||
1350 | jmachado | 271 | <td class="icons" style="text-align: center; vertical-align: middle"> |
272 | <baco:hasRole role="${courseView.validationRole},courseValidatePrograms" > |
||
273 | <nested:checkbox styleClass="btn" property="evaluationOpenByAdmin"/> |
||
274 | </baco:hasRole> |
||
275 | </td> |
||
1312 | jmachado | 276 | <td class="icons"> |
277 | <baco:isNotAdmin> |
||
1094 | jmachado | 278 | <baco:hasRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms"> |
1046 | jmachado | 279 | <logic:equal value="true" name="courseUnitView" property="validEvaluation"> |
1312 | jmachado | 280 | <a class="btn btn-small" href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.evaluationStreamId}"><span class="glyphicon glyphicon-check"></span></a> |
1046 | jmachado | 281 | </logic:equal> |
1312 | jmachado | 282 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitEvaluation.do?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1046 | jmachado | 283 | </baco:hasRole> |
1094 | jmachado | 284 | <baco:hasNotRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms"> |
1046 | jmachado | 285 | <baco:isTeacherOfCourseUnit courseUnitId="${courseUnitView.id}"> |
286 | <logic:equal value="true" name="courseUnitView" property="validEvaluation"> |
||
1312 | jmachado | 287 | <a class="btn btn-small" href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.evaluationStreamId}"><span class="glyphicon glyphicon-check"></span></a> |
1046 | jmachado | 288 | </logic:equal> |
1312 | jmachado | 289 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitEvaluation.do?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1046 | jmachado | 290 | </baco:isTeacherOfCourseUnit> |
291 | </baco:hasNotRole> |
||
1040 | jmachado | 292 | </baco:isNotAdmin> |
293 | <baco:isAdmin> |
||
1046 | jmachado | 294 | <logic:equal value="true" name="courseUnitView" property="validEvaluation"> |
1312 | jmachado | 295 | <a class="btn btn-small" href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.evaluationStreamId}"><span class="glyphicon glyphicon-check"></span></a> |
1046 | jmachado | 296 | </logic:equal> |
1312 | jmachado | 297 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitEvaluation.do?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1040 | jmachado | 298 | </baco:isAdmin> |
299 | </td> |
||
300 | </tr> |
||
301 | </nested:iterate> |
||
302 | </tbody> |
||
303 | </table> |
||
304 | </div><!--panel body--> |
||
305 | </div><!--panel--> |
||
306 | </logic:notEmpty> |
||
307 | </logic:equal> |
||
308 | <!-- ++++++++++++++++++++++++++++++++++++++++++++ --> |
||
309 | <!-- CADEIRAS DO SEMESTRE 1 - COM PROGRAMA VALIDO --> |
||
310 | <!-- ++++++++++++++++++++++++++++++++++++++++++++ --> |
||
311 | <logic:equal value="true" name="courseView" property="hasCourseUnitsWithProgramChecked${SEMESTRE}"> |
||
312 | <logic:notEmpty name="courseView" property="courseUnitsWithProgramChecked${SEMESTRE}"> |
||
313 | <%--<html:hidden property="courseUnitsWithProgramCheckedS1size"/>--%> |
||
314 | <div class="panel panel-success"> |
||
315 | <div class="panel-heading"><bean:message key="course.units.with.program.checked"/></div> |
||
316 | <div class="panel-body"> |
||
317 | |||
318 | <script type="text/javascript" language="JavaScript"> |
||
319 | //TABLE SORTER |
||
320 | $(document).ready(function() |
||
321 | { |
||
322 | $("#myTable${SEMESTRE}PV${courseView.id}").tablesorter(); |
||
323 | |||
324 | } |
||
325 | ); |
||
326 | </script> |
||
1114 | jmachado | 327 | <table id="myTable${SEMESTRE}PV${courseView.id}" class="dataTable tablesorter tablesorterfiltered"> |
1040 | jmachado | 328 | <thead> |
329 | <tr> |
||
1312 | jmachado | 330 | <%--<td></td>--%> |
1040 | jmachado | 331 | <th>Código</th> |
332 | <th>Unidade</th> |
||
1312 | jmachado | 333 | <% |
334 | if(courseView.isSeparatedUnits(CourseForm.getImportYear())) |
||
335 | { |
||
336 | %> |
||
1114 | jmachado | 337 | <th>Turma</th> |
1312 | jmachado | 338 | <% |
339 | } |
||
340 | %> |
||
1040 | jmachado | 341 | <th>Docente</th> |
1312 | jmachado | 342 | <th class="filter-false" data-sorter="false">Validar Ficha</th> |
343 | <th class="filter-false" data-sorter="false">Ficha</th> |
||
1350 | jmachado | 344 | <th class="filter-false" data-sorter="false">Abrir Avaliação Extraordináriamente</th> |
1312 | jmachado | 345 | <th class="filter-false" data-sorter="false">Relatório</th> |
1040 | jmachado | 346 | </tr> |
347 | </thead> |
||
348 | <tbody> |
||
349 | <nested:iterate id="courseUnitView" property="courseUnitsWithProgramChecked${SEMESTRE}" type="pt.estgp.estgweb.domain.views.CourseUnitView"> |
||
350 | <tr> |
||
351 | <%--<logic:notEqual value="${courseView.coordinator.id}" name="UserSession" property="user.id">--%> |
||
352 | <!--<td></td>--> |
||
353 | <%--</logic:notEqual>--%> |
||
354 | <%--<logic:equal value="${courseView.coordinator.id}" name="UserSession" property="user.id">--%> |
||
355 | <%--<%--%> |
||
356 | <!--// canChange=true;--> |
||
357 | <%--%>--%> |
||
358 | <!--<td><nested:hidden property="programStreamId"/>--> |
||
359 | <%--<nested:hidden property="id"/>--%> |
||
360 | <%--<nested:checkbox property="validProgram"/></td>--%> |
||
361 | <%--</logic:equal>--%> |
||
362 | <%--NOVO ROLE VALIDACAOO--%> |
||
363 | |||
1312 | jmachado | 364 | <%-- <baco:hasNotRole role="${courseView.validationRole},courseValidatePrograms" > |
1040 | jmachado | 365 | <td></td> |
366 | </baco:hasNotRole> |
||
367 | <baco:hasRole role="${courseView.validationRole},courseValidatePrograms" > |
||
368 | <% |
||
369 | canChange=true; |
||
370 | %> |
||
371 | <td><nested:hidden property="programStreamId"/> |
||
372 | <nested:hidden property="id"/> |
||
373 | <nested:checkbox property="validProgram"/></td> |
||
1312 | jmachado | 374 | </baco:hasRole>--%> |
375 | |||
376 | <td style="text-align: right">${courseUnitView.code}</td> |
||
377 | <td><a href="<%=request.getContextPath()%>/user/startLoadCourseUnitFromHome.do?id=${courseUnitView.id}">${courseUnitView.name}</a></td> |
||
378 | <%--<td>${courseUnitView.cdTurma}</td>--%> |
||
379 | <% |
||
380 | if(courseView.isSeparatedUnits(CourseForm.getImportYear())) |
||
381 | { |
||
382 | %> |
||
1114 | jmachado | 383 | <td>${courseUnitView.cdTurma}</td> |
1312 | jmachado | 384 | <% |
385 | } |
||
386 | %> |
||
1040 | jmachado | 387 | <td>${courseUnitView.teachersSnipet}</td> |
1312 | jmachado | 388 | <td class="icons" style="text-align: center; vertical-align: middle"> |
389 | <baco:hasRole role="${courseView.validationRole},courseValidatePrograms" > |
||
390 | <% |
||
391 | canChange=true; |
||
392 | %> |
||
393 | <nested:hidden property="programStreamId"/> |
||
394 | <nested:hidden property="id"/> |
||
395 | <nested:checkbox styleClass="btn" property="validProgram"/> |
||
396 | </baco:hasRole> |
||
397 | </td> |
||
1040 | jmachado | 398 | <td class="icons"> |
1312 | jmachado | 399 | <a class="btn btn-small" href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.programStreamId}"><span class="glyphicon glyphicon-file"></span></a> |
1040 | jmachado | 400 | <baco:isNotAdmin> |
401 | <logic:equal value="false" name="courseUnitView" property="validProgram"> |
||
402 | <logic:equal value="${courseView.coordinator.id}" name="UserSession" property="user.id"> |
||
1312 | jmachado | 403 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1040 | jmachado | 404 | </logic:equal> |
405 | <logic:notEqual value="${courseView.coordinator.id}" name="UserSession" property="user.id"> |
||
1094 | jmachado | 406 | <baco:hasRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms"> |
1312 | jmachado | 407 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1093 | jmachado | 408 | </baco:hasRole> |
409 | </logic:notEqual> |
||
410 | <logic:notEqual value="${courseView.coordinator.id}" name="UserSession" property="user.id"> |
||
1040 | jmachado | 411 | <baco:isTeacherOfCourseUnit courseUnitId="${courseUnitView.id}"> |
1094 | jmachado | 412 | <baco:hasNotRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms"> |
1312 | jmachado | 413 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1093 | jmachado | 414 | </baco:hasNotRole> |
1040 | jmachado | 415 | </baco:isTeacherOfCourseUnit> |
416 | </logic:notEqual> |
||
1093 | jmachado | 417 | </logic:equal> |
1312 | jmachado | 418 | </baco:isNotAdmin> |
419 | <baco:isAdmin> |
||
420 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
||
421 | </baco:isAdmin> |
||
422 | </td> |
||
1350 | jmachado | 423 | <td class="icons" style="text-align: center; vertical-align: middle"> |
424 | <baco:hasRole role="${courseView.validationRole},courseValidatePrograms" > |
||
425 | <nested:checkbox styleClass="btn" property="evaluationOpenByAdmin"/> |
||
426 | </baco:hasRole> |
||
427 | </td> |
||
1312 | jmachado | 428 | <td class="icons"> |
429 | <baco:isNotAdmin> |
||
1094 | jmachado | 430 | <baco:hasRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms"> |
1093 | jmachado | 431 | <logic:equal value="true" name="courseUnitView" property="validEvaluation"> |
1312 | jmachado | 432 | <a class="btn btn-small" href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.evaluationStreamId}"><span class="glyphicon glyphicon-check"></span></a> |
1093 | jmachado | 433 | </logic:equal> |
1312 | jmachado | 434 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitEvaluation.do?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1093 | jmachado | 435 | </baco:hasRole> |
1094 | jmachado | 436 | <baco:hasNotRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms"> |
1093 | jmachado | 437 | <baco:isTeacherOfCourseUnit courseUnitId="${courseUnitView.id}"> |
1046 | jmachado | 438 | <logic:equal value="true" name="courseUnitView" property="validEvaluation"> |
1312 | jmachado | 439 | <a class="btn btn-small" href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.evaluationStreamId}"><span class="glyphicon glyphicon-check"></span></a> |
1046 | jmachado | 440 | </logic:equal> |
1312 | jmachado | 441 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitEvaluation.do?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1093 | jmachado | 442 | </baco:isTeacherOfCourseUnit> |
443 | </baco:hasNotRole> |
||
1040 | jmachado | 444 | </baco:isNotAdmin> |
445 | <baco:isAdmin> |
||
1046 | jmachado | 446 | <logic:equal value="true" name="courseUnitView" property="validEvaluation"> |
1312 | jmachado | 447 | <a class="btn btn-small" href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.evaluationStreamId}"><span class="glyphicon glyphicon-check"></span></a> |
1046 | jmachado | 448 | </logic:equal> |
1312 | jmachado | 449 | <html:link styleClass="btn btn-small" action="/user/startLoadCourseUnitEvaluation.do?courseUnitId=${courseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link> |
1040 | jmachado | 450 | </baco:isAdmin> |
451 | </td> |
||
452 | </tr> |
||
453 | </nested:iterate> |
||
454 | </tbody> |
||
455 | </table> |
||
456 | </div><!--panel body--> |
||
457 | </div><!--panel--> |
||
458 | |||
459 | </logic:notEmpty> |
||
460 | </logic:equal> |
||
461 | |||
462 | </div> |
||
463 | <% |
||
464 | if(canChange) |
||
465 | { |
||
466 | %> |
||
467 | <div class="panel-footer"> |
||
468 | <input type="submit" value="<bean:message key="confirm"/>"> |
||
469 | </div> |
||
470 | <% |
||
471 | } |
||
472 | %> |