Rev 1505 | Rev 1516 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
214 | jmachado | 1 | <%@ page import="pt.utl.ist.berserk.logic.serviceManager.ServiceManager" %> |
2 | <%@ page import="pt.utl.ist.berserk.logic.serviceManager.IServiceManager" %> |
||
3 | <%@ page import="pt.estgp.estgweb.web.utils.RequestUtils" %> |
||
4 | <%@ page import="pt.estgp.estgweb.domain.views.CourseView" %> |
||
5 | <%@ page import="java.util.List" %> |
||
6 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
||
7 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
||
8 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
||
9 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
||
10 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
||
11 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
||
12 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
||
13 | <% |
||
14 | IServiceManager sm = ServiceManager.getInstance(); |
||
15 | String[] names = new String[]{}; |
||
16 | Object[] args = new Object[]{}; |
||
17 | List<CourseView> courseViews = (List<CourseView>) sm.execute(RequestUtils.getRequester(request, response), "LoadCourses", args, names); |
||
18 | request.setAttribute("Courses", courseViews); |
||
19 | %> |
||
20 | <jsp:useBean id="Courses" type="java.util.List" scope="request"/> |
||
21 | <div class="seccao"> |
||
22 | <h2><bean:message key="course.select.message"/> </h2> |
||
23 | <div class="form"> |
||
1147 | jmachado | 24 | <table class="tablesorter tablesorterfiltered"> |
25 | <thead> |
||
26 | <tr> |
||
27 | <th class="filter-name filter-select"><bean:message key="status"/></th> |
||
28 | <th><bean:message key="course.code"/>(SIGES)</th> |
||
1506 | jmachado | 29 | <th class="filter-name filter-select responsiveChosenFilter"><bean:message key="course.label"/></th> |
1147 | jmachado | 30 | <th class="filter-name filter-select"><bean:message key="course.degree"/></th> |
31 | <th class="filter-name filter-select"><bean:message key="course.importYear"/></th> |
||
32 | <th><bean:message key="course.validation.role"/></th> |
||
33 | <th><bean:message key="course.studies.plan"/></th> |
||
34 | <th></th> |
||
35 | </tr> |
||
36 | </thead> |
||
37 | <tbody> |
||
214 | jmachado | 38 | <logic:iterate id="course" name="Courses" type="pt.estgp.estgweb.domain.views.CourseView"> |
1147 | jmachado | 39 | <tr> |
40 | <td> |
||
41 | <logic:equal value="true" name="course" property="status"> |
||
42 | <bean:message key="yes"/> |
||
43 | </logic:equal> |
||
44 | <logic:equal value="false" name="course" property="status"> |
||
45 | <bean:message key="no"/> |
||
46 | </logic:equal> |
||
47 | </td> |
||
48 | <td>${course.code}</td> |
||
49 | <td>${course.name}</td> |
||
50 | <td><bean:message key="course.${course.degreeCleanCode}"/></td> |
||
51 | <td>${course.importYear}</td> |
||
52 | <td> |
||
53 | <logic:present name="course" property="validationRole"> |
||
54 | <bean:message key="user.role.${course.validationRole}"/> |
||
55 | </logic:present> |
||
56 | <logic:notPresent name="course" property="validationRole"> |
||
57 | --- |
||
58 | </logic:notPresent> |
||
59 | </td> |
||
60 | <td> |
||
61 | <logic:present name="CourseView" property="studiesPlan"> |
||
62 | <a href="<%=request.getContextPath()%>/repositoryStream/${course.studiesPlanStreamId}"><bean:message key="course.studies.plan"/></a> |
||
63 | </logic:present> |
||
64 | <logic:notPresent name="CourseView" property="studiesPlan"> |
||
65 | --- |
||
66 | </logic:notPresent> |
||
67 | </td> |
||
68 | <td> |
||
1505 | jmachado | 69 | <a class="btn btn-warning" href="<%=request.getContextPath()%>/user/courseControllerFromServiceZone.do?dispatch=editAdmin&courseView.id=${course.id}"> |
1147 | jmachado | 70 | <span class="glyphicon glyphicon-pencil"></span> |
71 | </a> |
||
72 | </td> |
||
73 | </tr> |
||
214 | jmachado | 74 | </logic:iterate> |
1147 | jmachado | 75 | </tbody> |
76 | |||
77 | </table> |
||
78 | |||
214 | jmachado | 79 | </div> |
80 | </div> |