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