Rev 1507 | Rev 1513 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1507 | Rev 1509 | ||
---|---|---|---|
1 | <%@ page import="jomm.dao.impl.AbstractDao" %> |
1 | <%@ page import="jomm.dao.impl.AbstractDao" %> |
2 | <%@ page import="pt.estgp.estgweb.domain.CourseDepartment" %> |
2 | <%@ page import="pt.estgp.estgweb.domain.CourseDepartment" %> |
3 | <%@ page import="pt.estgp.estgweb.domain.Teacher" %> |
3 | <%@ page import="pt.estgp.estgweb.domain.Teacher" %> |
4 | <%@ page import="pt.estgp.estgweb.domain.User" %> |
4 | <%@ page import="pt.estgp.estgweb.domain.User" %> |
5 | <%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %> |
5 | <%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %> |
6 | <%@ page import="pt.estgp.estgweb.domain.views.UserView" %> |
6 | <%@ page import="pt.estgp.estgweb.domain.views.UserView" %> |
7 | <%@ page import="pt.estgp.estgweb.utils.ConfigProperties" %> |
7 | <%@ page import="pt.estgp.estgweb.utils.ConfigProperties" %> |
8 | <%@ page import="pt.estgp.estgweb.web.filters.UserRoleProxy" %> |
8 | <%@ page import="pt.estgp.estgweb.web.filters.UserRoleProxy" %> |
9 | <%@ page import="java.util.ArrayList" %> |
9 | <%@ page import="java.util.ArrayList" %> |
10 | <%@ page import="java.util.Collection" %> |
10 | <%@ page import="java.util.Collection" %> |
11 | <%@ page import="java.util.List" %> |
11 | <%@ page import="java.util.List" %> |
12 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
12 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
13 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
13 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
14 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
14 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
15 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
15 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
16 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
16 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
17 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
17 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
18 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
18 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
19 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
19 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
20 | <jsp:useBean id="CourseView" type="pt.estgp.estgweb.domain.views.CourseView" scope="request"/> |
20 | <jsp:useBean id="CourseView" type="pt.estgp.estgweb.domain.views.CourseView" scope="request"/> |
21 | <script> |
21 | <script> |
22 | function alertPermissions() |
22 | function alertPermissions() |
23 | { |
23 | { |
24 | alert("Aviso a transmitir ao Centro Informático. Este procedimento afecta as permissões atuais no sistema de ficheiros da intranet. Após salvar estas alterações, por favor gere o BAT de geração de pastas e corra-o novamente na raiz do servidor IONLINE") |
24 | alert("Aviso a transmitir ao Centro Informático. Este procedimento afecta as permissões atuais no sistema de ficheiros da intranet. Após salvar estas alterações, por favor gere o BAT de geração de pastas e corra-o novamente na raiz do servidor IONLINE") |
25 | } |
25 | } |
26 | function alertFolders(place) |
26 | function alertFolders(place) |
27 | { |
27 | { |
28 | alert("Aviso a transmitir ao Centro Informático. Caro administrador, lembramos-lhe que alterar o " + place + " de uma unidade curricular implica trocar a pasta de ficheiros da intranet do " + place + " onde esta se encontrava para o " + place + " onde actualmente se encontra. O BACO irá actualizar a nova LOCALIZAÇÃO da pasta de ficheiros na sua base de dados. Mas a pasta terá de ser fisicamente alterada pela administração de sistemas."); |
28 | alert("Aviso a transmitir ao Centro Informático. Caro administrador, lembramos-lhe que alterar o " + place + " de uma unidade curricular implica trocar a pasta de ficheiros da intranet do " + place + " onde esta se encontrava para o " + place + " onde actualmente se encontra. O BACO irá actualizar a nova LOCALIZAÇÃO da pasta de ficheiros na sua base de dados. Mas a pasta terá de ser fisicamente alterada pela administração de sistemas."); |
29 | } |
29 | } |
30 | 30 | ||
31 | </script> |
31 | </script> |
32 | <html:errors/> |
32 | <html:errors/> |
33 | <jomm:messages/> |
33 | <jomm:messages/> |
34 | <html:form styleClass="form-horizontal" action="/user/courseControllerFromServiceZone" enctype="multipart/form-data"> |
34 | <html:form styleClass="form-horizontal" action="/user/courseControllerFromServiceZone" enctype="multipart/form-data"> |
35 | <input type="hidden" name="dispatch" value="submit"/> |
35 | <input type="hidden" name="dispatch" value="submit"/> |
36 | <html:hidden property="courseView.id"/> |
36 | <html:hidden property="courseView.id"/> |
37 | <jsp:useBean id="CourseForm" type="pt.estgp.estgweb.web.form.courses.CourseForm" scope="request"/> |
37 | <jsp:useBean id="CourseForm" type="pt.estgp.estgweb.web.form.courses.CourseForm" scope="request"/> |
38 | <logic:present name="CourseView" property="htmlResult"> |
38 | <logic:present name="CourseView" property="htmlResult"> |
39 | <pre class="log"> |
39 | <pre class="log"> |
40 | <bean:write name="CourseView" property="htmlResult"/> |
40 | <bean:write name="CourseView" property="htmlResult"/> |
41 | </pre> |
41 | </pre> |
42 | </logic:present> |
42 | </logic:present> |
43 | 43 | ||
44 | <div class="panel panel-default"> |
44 | <div class="panel panel-default"> |
45 | <div class="panel-body"> |
45 | <div class="panel-body"> |
46 | 46 | ||
47 | <div class="form-group"> |
47 | <div class="form-group"> |
48 | <label class="control-label col-sm-2"><bean:message key="course.code"/></label> |
48 | <label class="control-label col-sm-2"><bean:message key="course.code"/></label> |
49 | <div class="col-sm-10"> |
49 | <div class="col-sm-10"> |
50 | <html:text styleClass="form-control" property="courseView.code" size="20"/> |
50 | <html:text styleClass="form-control" property="courseView.code" size="20"/> |
51 | </div> |
51 | </div> |
52 | </div> |
52 | </div> |
53 | <div class="form-group"> |
53 | <div class="form-group"> |
54 | <label class="control-label col-sm-2"><bean:message key="course.area"/></label> |
54 | <label class="control-label col-sm-2"><bean:message key="course.area"/></label> |
55 | <div class="col-sm-10"> |
55 | <div class="col-sm-10"> |
56 | <% |
56 | <% |
57 | AbstractDao.getCurrentSession().beginTransaction(); |
57 | AbstractDao.getCurrentSession().beginTransaction(); |
58 | List<CourseDepartment> departments = DaoFactory.getCourseDepartmentDaoImpl().findActives(); |
58 | List<CourseDepartment> departments = DaoFactory.getCourseDepartmentDaoImpl().findActives(); |
59 | request.setAttribute("departaments",departments); |
59 | request.setAttribute("departaments",departments); |
60 | %> |
60 | %> |
61 | <html:select styleClass="form-control" property="courseView.area"> |
61 | <html:select styleClass="form-control" property="courseView.area"> |
62 | <html:option value="">Nenhum</html:option> |
62 | <html:option value="">Nenhum</html:option> |
63 | <logic:iterate id="area" name="departaments" type="pt.estgp.estgweb.domain.CourseDepartmentImpl"> |
63 | <logic:iterate id="area" name="departaments" type="pt.estgp.estgweb.domain.CourseDepartmentImpl"> |
64 | <html:option value="${area.sigla}">${area.schoolFromInstitutionalCode} - ${area.name}</html:option> |
64 | <html:option value="${area.sigla}">${area.schoolFromInstitutionalCode} - ${area.name}</html:option> |
65 | </logic:iterate> |
65 | </logic:iterate> |
66 | </html:select> |
66 | </html:select> |
67 | <% |
67 | <% |
68 | AbstractDao.getCurrentSession().getTransaction().commit(); |
68 | AbstractDao.getCurrentSession().getTransaction().commit(); |
69 | %> |
69 | %> |
70 | </div> |
70 | </div> |
71 | </div> |
71 | </div> |
72 | <div class="form-group"> |
72 | <div class="form-group"> |
73 | <label class="control-label col-sm-2"><bean:message key="name"/> PT</label> |
73 | <label class="control-label col-sm-2"><bean:message key="name"/> PT</label> |
74 | <div class="col-sm-10"> |
74 | <div class="col-sm-10"> |
75 | <html:text styleClass="form-control" property="courseView.name" size="20"/> |
75 | <html:text styleClass="form-control" property="courseView.name" size="20"/> |
76 | </div> |
76 | </div> |
77 | </div> |
77 | </div> |
78 | <div class="form-group"> |
78 | <div class="form-group"> |
79 | <label class="control-label col-sm-2"><bean:message key="name"/> EN</label> |
79 | <label class="control-label col-sm-2"><bean:message key="name"/> EN</label> |
80 | <div class="col-sm-10"> |
80 | <div class="col-sm-10"> |
81 | <html:text styleClass="form-control" property="courseView.nameEn" size="20"/> |
81 | <html:text styleClass="form-control" property="courseView.nameEn" size="20"/> |
82 | </div> |
82 | </div> |
83 | </div> |
83 | </div> |
84 | <div class="form-group"> |
84 | <div class="form-group"> |
85 | <label class="control-label col-sm-2"><bean:message key="name"/> ES</label> |
85 | <label class="control-label col-sm-2"><bean:message key="name"/> ES</label> |
86 | <div class="col-sm-10"> |
86 | <div class="col-sm-10"> |
87 | <html:text styleClass="form-control" property="courseView.nameEs" size="20"/> |
87 | <html:text styleClass="form-control" property="courseView.nameEs" size="20"/> |
88 | </div> |
88 | </div> |
89 | </div> |
89 | </div> |
90 | <div class="form-group"> |
90 | <div class="form-group"> |
91 | <label class="control-label col-sm-2"><bean:message key="name"/> FR</label> |
91 | <label class="control-label col-sm-2"><bean:message key="name"/> FR</label> |
92 | <div class="col-sm-10"> |
92 | <div class="col-sm-10"> |
93 | <html:text styleClass="form-control" property="courseView.nameFr" size="20"/> |
93 | <html:text styleClass="form-control" property="courseView.nameFr" size="20"/> |
94 | </div> |
94 | </div> |
95 | </div> |
95 | </div> |
96 | <div class="form-group"> |
96 | <div class="form-group"> |
97 | <label class="control-label col-sm-2"><bean:message key="course.description"/></label> |
97 | <label class="control-label col-sm-2"><bean:message key="course.description"/></label> |
98 | <div class="col-sm-10"> |
98 | <div class="col-sm-10"> |
99 | <html:textarea styleClass="form-control" property="courseView.description"/> |
99 | <html:textarea styleClass="form-control" property="courseView.description"/> |
100 | </div> |
100 | </div> |
101 | </div> |
101 | </div> |
102 | <div class="form-group"> |
102 | <div class="form-group"> |
103 | <label class="control-label col-sm-2"><bean:message key="status"/></label> |
103 | <label class="control-label col-sm-2"><bean:message key="status"/></label> |
104 | <div class="col-sm-10"> |
104 | <div class="col-sm-10"> |
105 | <html:select styleClass="form-control" property="courseView.status"> |
105 | <html:select styleClass="form-control" property="courseView.status"> |
106 | <html:option value="true"><bean:message key="yes"/></html:option> |
106 | <html:option value="true"><bean:message key="yes"/></html:option> |
107 | <html:option value="false"><bean:message key="no"/></html:option> |
107 | <html:option value="false"><bean:message key="no"/></html:option> |
108 | </html:select> |
108 | </html:select> |
109 | </div> |
109 | </div> |
110 | </div> |
110 | </div> |
111 | <div class="form-group"> |
111 | <div class="form-group"> |
112 | <label class="control-label col-sm-2"><bean:message key="course.degree"/></label> |
112 | <label class="control-label col-sm-2"><bean:message key="course.degree"/></label> |
113 | <div class="col-sm-10"> |
113 | <div class="col-sm-10"> |
114 | <html:select styleClass="form-control" property="courseView.degree"> |
114 | <html:select styleClass="form-control" property="courseView.degree"> |
115 | <html:option value="B"><bean:message key="course.B"/></html:option> |
115 | <html:option value="B"><bean:message key="course.B"/></html:option> |
116 | <html:option value="L"><bean:message key="course.L"/></html:option> |
116 | <html:option value="L"><bean:message key="course.L"/></html:option> |
117 | <html:option value="M"><bean:message key="course.M"/></html:option> |
117 | <html:option value="M"><bean:message key="course.M"/></html:option> |
118 | <html:option value="P"><bean:message key="course.P"/></html:option> |
118 | <html:option value="P"><bean:message key="course.P"/></html:option> |
119 | <html:option value="E"><bean:message key="course.E"/></html:option> |
119 | <html:option value="E"><bean:message key="course.E"/></html:option> |
120 | <html:option value="A"><bean:message key="course.A"/></html:option> |
120 | <html:option value="A"><bean:message key="course.A"/></html:option> |
121 | <html:option value="C"><bean:message key="course.C"/></html:option> |
121 | <html:option value="C"><bean:message key="course.C"/></html:option> |
122 | <html:option value="O"><bean:message key="course.O"/></html:option> |
122 | <html:option value="O"><bean:message key="course.O"/></html:option> |
123 | <html:option value="T"><bean:message key="course.T"/></html:option> |
123 | <html:option value="T"><bean:message key="course.T"/></html:option> |
124 | </html:select> |
124 | </html:select> |
125 | ** SIGES: <bean:write name="CourseForm" property="courseView.degree"/> - Qualquer erro de atrbuição informar imediatamente a equipa de desenvolvimento |
125 | ** SIGES: <bean:write name="CourseForm" property="courseView.degree"/> - Qualquer erro de atrbuição informar imediatamente a equipa de desenvolvimento |
126 | </div> |
126 | </div> |
127 | </div> |
127 | </div> |
128 | <logic:notEmpty name="CourseForm" property="courseView.courseYearViews"> |
128 | <logic:notEmpty name="CourseForm" property="courseView.courseYearViews"> |
129 | <div class="form-group"> |
129 | <div class="form-group"> |
130 | <label class="control-label col-sm-2">Politica de Separação de Turmas</label> |
130 | <label class="control-label col-sm-2">Politica de Separação de Turmas</label> |
131 | <div class="col-sm-10"> |
131 | <div class="col-sm-10"> |
132 | <table class="tablesorterfiltered"> |
132 | <table class="tablesorterfiltered"> |
133 | <thead> |
133 | <thead> |
134 | <tr> |
134 | <tr> |
135 | <th>Ano Lectivo</th> |
135 | <th>Ano Lectivo</th> |
136 | <th>Usar Turmas Separadas</th> |
136 | <th>Usar Turmas Separadas</th> |
137 | <th>Ultima alteração</th> |
137 | <th>Ultima alteração</th> |
138 | </tr> |
138 | </tr> |
139 | </thead> |
139 | </thead> |
140 | <tbody> |
140 | <tbody> |
141 | <nested:iterate id="cyv" property="courseView.courseYearViews" type="pt.estgp.estgweb.domain.views.CourseView.CourseYearView"> |
141 | <nested:iterate id="cyv" property="courseView.courseYearViews" type="pt.estgp.estgweb.domain.views.CourseView.CourseYearView"> |
142 | <tr> |
142 | <tr> |
143 | <td>${cyv.importYear}</td> |
143 | <td>${cyv.importYear}</td> |
144 | <td><nested:hidden property="id"/> |
144 | <td><nested:hidden property="id"/> |
145 | <nested:checkbox property="separatedTurmas"/></td> |
145 | <nested:checkbox property="separatedTurmas"/></td> |
146 | <td>${cyv.updateDate}</td> |
146 | <td>${cyv.updateDate}</td> |
147 | </tr> |
147 | </tr> |
148 | </nested:iterate> |
148 | </nested:iterate> |
149 | </tbody> |
149 | </tbody> |
150 | </table> |
150 | </table> |
151 | </div> |
151 | </div> |
152 | </div> |
152 | </div> |
153 | </logic:notEmpty> |
153 | </logic:notEmpty> |
154 | <div class="form-group"> |
154 | <div class="form-group"> |
155 | <label class="control-label col-sm-2"><bean:message key="course.importYear"/></label> |
155 | <label class="control-label col-sm-2"><bean:message key="course.importYear"/></label> |
156 | <div class="col-sm-10"> |
156 | <div class="col-sm-10"> |
157 | <html:select styleClass="form-control" property="courseView.importYear"> |
157 | <html:select styleClass="form-control" property="courseView.importYear"> |
158 | <logic:iterate id="item" name="CourseForm" property="importYears"> |
158 | <logic:iterate id="item" name="CourseForm" property="importYears"> |
159 | <html:option value="${item}">${item}</html:option> |
159 | <html:option value="${item}">${item}</html:option> |
160 | </logic:iterate> |
160 | </logic:iterate> |
161 | </html:select> |
161 | </html:select> |
162 | </div> |
162 | </div> |
163 | </div> |
163 | </div> |
164 | 164 | ||
165 | <div class="form-group"> |
165 | <div class="form-group"> |
166 | <label class="control-label col-sm-2"><bean:message key="course.institutionalCode"/></label> |
166 | <label class="control-label col-sm-2"><bean:message key="course.institutionalCode"/></label> |
167 | <div class="col-sm-10"> |
167 | <div class="col-sm-10"> |
168 | <!--Dependente do app.properties--> |
168 | <!--Dependente do app.properties--> |
169 | <html:select styleClass="form-control" property="courseView.institutionalCode"> |
169 | <html:select styleClass="form-control" property="courseView.institutionalCode"> |
170 | <html:option value="1"><%=ConfigProperties.getProperty("institution.code.prefix.1")%></html:option> |
170 | <html:option value="1"><%=ConfigProperties.getProperty("institution.code.prefix.1")%></html:option> |
171 | <html:option value="2"><%=ConfigProperties.getProperty("institution.code.prefix.2")%></html:option> |
171 | <html:option value="2"><%=ConfigProperties.getProperty("institution.code.prefix.2")%></html:option> |
172 | <html:option value="3"><%=ConfigProperties.getProperty("institution.code.prefix.3")%></html:option> |
172 | <html:option value="3"><%=ConfigProperties.getProperty("institution.code.prefix.3")%></html:option> |
173 | <html:option value="4"><%=ConfigProperties.getProperty("institution.code.prefix.4")%></html:option> |
173 | <html:option value="4"><%=ConfigProperties.getProperty("institution.code.prefix.4")%></html:option> |
174 | </html:select> |
174 | </html:select> |
175 | </div> |
175 | </div> |
176 | </div> |
176 | </div> |
177 | 177 | ||
178 | <div class="form-group"> |
178 | <div class="form-group"> |
179 | <label class="control-label col-sm-2"><bean:message key="course.userGroupStudents"/></label> |
179 | <label class="control-label col-sm-2"><bean:message key="course.userGroupStudents"/></label> |
180 | <div class="col-sm-10"> |
180 | <div class="col-sm-10"> |
181 | <html:text styleClass="form-control" onchange="alertPermissions()" property="courseView.userGroupStudents"/> |
181 | <html:text styleClass="form-control" onchange="alertPermissions()" property="courseView.userGroupStudents"/> |
182 | </div> |
182 | </div> |
183 | </div> |
183 | </div> |
184 | 184 | ||
185 | 185 | ||
186 | <div class="form-group"> |
186 | <div class="form-group"> |
187 | <label class="control-label col-sm-2"><bean:message key="course.coordinator"/></label> |
187 | <label class="control-label col-sm-2"><bean:message key="course.coordinator"/></label> |
188 | <div class="col-sm-10"> |
188 | <div class="col-sm-10"> |
189 | <html:select styleClass="form-control" onchange="alertPermissions()" property="courseView.coordinator.id"> |
189 | <html:select styleClass="form-control" onchange="alertPermissions()" property="courseView.coordinator.id"> |
190 | <html:option value="0"> |
190 | <html:option value="0"> |
191 | <bean:message key="none"/> |
191 | <bean:message key="none"/> |
192 | </html:option> |
192 | </html:option> |
193 | <logic:present name="CourseForm" property="teachers"> |
193 | <logic:present name="CourseForm" property="teachers"> |
194 | <logic:iterate id="teacher" name="CourseForm" property="teachers" type="pt.estgp.estgweb.domain.views.UserView"> |
194 | <logic:iterate id="teacher" name="CourseForm" property="teachers" type="pt.estgp.estgweb.domain.views.UserView"> |
195 | <html:option value="${teacher.id}"> |
195 | <html:option value="${teacher.id}"> |
196 | (${teacher.code}) ${teacher.name} |
196 | (${teacher.code}) ${teacher.name} |
197 | </html:option> |
197 | </html:option> |
198 | </logic:iterate> |
198 | </logic:iterate> |
199 | </logic:present> |
199 | </logic:present> |
200 | </html:select> |
200 | </html:select> |
201 | </div> |
201 | </div> |
202 | </div> |
202 | </div> |
203 | 203 | ||
204 | <div class="form-group"> |
204 | <div class="form-group"> |
205 | <label class="control-label col-sm-2"><bean:message key="course.validation.role"/></label> |
205 | <label class="control-label col-sm-2"><bean:message key="course.validation.role"/></label> |
206 | <div class="col-sm-10"> |
206 | <div class="col-sm-10"> |
207 | <% |
207 | <% |
208 | List<String> targetRoles = new ArrayList<String>(); |
208 | List<String> targetRoles = new ArrayList<String>(); |
209 | for(String role: UserRoleProxy.getUserRoles()) |
209 | for(String role: UserRoleProxy.getUserRoles()) |
210 | { |
210 | { |
211 | if(role.startsWith("courseValidateProgram")) |
211 | if(role.startsWith("courseValidateProgram")) |
212 | targetRoles.add(role); |
212 | targetRoles.add(role); |
213 | } |
213 | } |
214 | request.setAttribute("targetRoles",targetRoles); |
214 | request.setAttribute("targetRoles",targetRoles); |
215 | %> |
215 | %> |
216 | <html:select styleClass="form-control" onchange="alertPermissions()" property="courseView.validationRole"> |
216 | <html:select styleClass="form-control" onchange="alertPermissions()" property="courseView.validationRole"> |
217 | <logic:iterate id="role" name="targetRoles"> |
217 | <logic:iterate id="role" name="targetRoles"> |
218 | <html:option value="${role}" key="user.role.${role}"/> |
218 | <html:option value="${role}" key="user.role.${role}"/> |
219 | </logic:iterate> |
219 | </logic:iterate> |
220 | </html:select> |
220 | </html:select> |
221 | </div> |
221 | </div> |
222 | </div> |
222 | </div> |
223 | 223 | ||
224 | <div class="form-group"> |
224 | <div class="form-group"> |
225 | <label class="control-label col-sm-2">Membros da Comissão</label> |
225 | <label class="control-label col-sm-2">Membros da Comissão</label> |
226 | <div class="col-sm-10"> |
226 | <div class="col-sm-10"> |
227 | 227 | ||
228 | 228 | ||
229 | 229 | ||
230 | <% |
230 | <% |
231 | request.setAttribute("teachersForComissions", CourseForm.getTeachers()); |
231 | request.setAttribute("teachersForComissions", CourseForm.getTeachers()); |
232 | request.setAttribute("courseIdForComissions", CourseView.getId()); |
232 | request.setAttribute("courseIdForComissions", CourseView.getId()); |
233 | //CourseView needed ja la esta neste caso |
233 | //CourseView needed ja la esta neste caso |
234 | %> |
234 | %> |
235 | 235 | ||
236 | <jsp:include page="courseComissionEditPanel.jsp"/> |
236 | <jsp:include page="courseComissionEditPanel.jsp"/> |
237 | <%-- // PAINEL INDEPENDENTE PARA GERIR COMISSAO DE CURSO --%> |
237 | <%-- // PAINEL INDEPENDENTE PARA GERIR COMISSAO DE CURSO --%> |
238 | </div> |
238 | </div> |
239 | </div> |
239 | </div> |
240 | 240 | ||
241 | 241 | ||
242 | <div class="form-group"> |
242 | <div class="form-group"> |
243 | <label class="control-label col-sm-2"><bean:message key="course.externalSite"/></label> |
243 | <label class="control-label col-sm-2"><bean:message key="course.externalSite"/></label> |
244 | <div class="col-sm-10"> |
244 | <div class="col-sm-10"> |
245 | <html:select styleClass="form-control" property="courseView.externalSiteServer"> |
245 | <html:select styleClass="form-control" property="courseView.externalSiteServer"> |
246 | <html:option value="estgp">ESTG</html:option> |
246 | <html:option value="estgp">ESTG</html:option> |
247 | </html:select> |
247 | </html:select> |
248 | <html:text styleClass="form-control" property="courseView.externalSitePath"/> |
248 | <html:text styleClass="form-control" property="courseView.externalSitePath"/> |
249 | </div> |
249 | </div> |
250 | </div> |
250 | </div> |
251 | 251 | ||
252 | <div class="form-group"> |
252 | <div class="form-group"> |
253 | <label class="control-label col-sm-2"><bean:message key="course.studies.plan"/>(VERSAO ANTIGA)</label> |
253 | <label class="control-label col-sm-2"><bean:message key="course.studies.plan"/>(VERSAO ANTIGA)</label> |
254 | <div class="col-sm-10"> |
254 | <div class="col-sm-10"> |
255 | <baco:isAdmin> |
255 | <baco:isAdmin> |
256 | <html:file styleClass="form-control" property="studiesPlan"/> |
256 | <html:file styleClass="form-control" property="studiesPlan"/> |
257 | </baco:isAdmin> |
257 | </baco:isAdmin> |
258 | <baco:isNotAdmin> |
258 | <baco:isNotAdmin> |
259 | <html:file disabled="true" styleClass="form-control" property="studiesPlan"/> |
259 | <html:file disabled="true" styleClass="form-control" property="studiesPlan"/> |
260 | </baco:isNotAdmin> |
260 | </baco:isNotAdmin> |
261 | 261 | ||
262 | <logic:present name="CourseView" property="studiesPlan"> |
262 | <logic:present name="CourseView" property="studiesPlan"> |
263 | <a href="<%=request.getContextPath()%>/repositoryStream/${CourseView.studiesPlanStreamId}"><bean:message key="course.studies.plan"/> XML antigo</a> (${CourseView.studiesPlanSizeKb} Kb - ${CourseView.studiesPlanDate}) |
263 | <a href="<%=request.getContextPath()%>/repositoryStream/${CourseView.studiesPlanStreamId}"><bean:message key="course.studies.plan"/> XML antigo</a> (${CourseView.studiesPlanSizeKb} Kb - ${CourseView.studiesPlanDate}) |
264 | </logic:present> |
264 | </logic:present> |
265 | <logic:notPresent name="CourseView" property="studiesPlan"> |
265 | <logic:notPresent name="CourseView" property="studiesPlan"> |
266 | <bean:message key="course.studies.plan.not.available"/> |
266 | <bean:message key="course.studies.plan.not.available"/> |
267 | </logic:notPresent> |
267 | </logic:notPresent> |
268 | 268 | ||
269 | </div> |
269 | </div> |
270 | </div> |
270 | </div> |
271 | 271 | ||
272 | 272 | ||
273 | 273 | ||
274 | <div class="form-group"> |
274 | <div class="form-group"> |
275 | <label class="control-label col-sm-2"> |
275 | <label class="control-label col-sm-2"> |
276 | <bean:message key="course.studies.plan"/>(Versão nova PAE) |
276 | <bean:message key="course.studies.plan"/>(Versão nova PAE) |
- | 277 | <%-- |
|
277 | <baco:hasRole role="admin,all,servicesStudiesPlans"> |
278 | <baco:hasRole role="admin,all,servicesStudiesPlans"> |
278 | <a class="btn btn-default" href="<%=request.getContextPath()%>/user/adminStudyPlans.do?courseId=<%=CourseView.getId()%>">Gerir Planos</a> |
279 | <a class="btn btn-default" href="<%=request.getContextPath()%>/user/adminStudyPlans.do?courseId=<%=CourseView.getId()%>">Gerir Planos</a> |
279 | </baco:hasRole> |
280 | </baco:hasRole> |
280 | <baco:hasNotRole role="admin,all,servicesStudiesPlans"> |
281 | <baco:hasNotRole role="admin,all,servicesStudiesPlans"> |
281 | <label class="text-info"> Necessita do papel de Gestão de Planos de Estudos para editar os planos</label> |
282 | <label class="text-info"> Necessita do papel de Gestão de Planos de Estudos para editar os planos</label> |
282 | </baco:hasNotRole> |
283 | </baco:hasNotRole>--%> |
283 | </label> |
284 | </label> |
284 | <div class="col-sm-10"> |
285 | <div class="col-sm-10"> |
285 | <logic:present name="CourseView" property="courseStudiesPlans"> |
286 | <logic:present name="CourseView" property="courseStudiesPlans"> |
286 | <table class="tablesorterfiltered"> |
287 | <table class="tablesorterfiltered"> |
287 | <thead> |
288 | <thead> |
288 | <tr> |
289 | <tr> |
289 | <th>Versão</th> |
290 | <th>Versão</th> |
290 | <th>Data Produção</th> |
291 | <th>Data Produção</th> |
291 | <th>Ultima alteração</th> |
292 | <th>Ultima alteração</th> |
292 | <th>Descrição</th> |
293 | <th>Descrição</th> |
293 | </tr> |
294 | </tr> |
294 | </thead> |
295 | </thead> |
295 | <tbody> |
296 | <tbody> |
296 | <logic:iterate id="studyPlan" name="CourseView" property="courseStudiesPlans" type="pt.estgp.estgweb.domain.CourseStudiesPlan"> |
297 | <logic:iterate id="studyPlan" name="CourseView" property="courseStudiesPlans" type="pt.estgp.estgweb.domain.CourseStudiesPlan"> |
297 | <tr> |
298 | <tr> |
298 | <td>${studyPlan.version}</td> |
299 | <td>${studyPlan.version}</td> |
299 | <td>${studyPlan.saveDate}</td> |
300 | <td>${studyPlan.saveDate}</td> |
300 | <td>${studyPlan.updateDate}</td> |
301 | <td>${studyPlan.updateDate}</td> |
301 | <td>${studyPlan.versionDescription}</td> |
302 | <td>${studyPlan.versionDescription}</td> |
302 | </tr> |
303 | </tr> |
303 | </logic:iterate> |
304 | </logic:iterate> |
304 | </tbody> |
305 | </tbody> |
305 | </table> |
306 | </table> |
306 | </logic:present> |
307 | </logic:present> |
307 | </div> |
308 | </div> |
308 | </div> |
309 | </div> |
309 | 310 | ||
310 | 311 | ||
311 | 312 | ||
312 | 313 | ||
313 | <%-- |
314 | <%-- |
314 | 315 | ||
315 | <tr> |
316 | <tr> |
316 | <th> |
317 | <th> |
317 | <bean:message key="course.director"/> |
318 | <bean:message key="course.director"/> |
318 | </th> |
319 | </th> |
319 | <td> |
320 | <td> |
320 | <html:select onchange="alertPermissions()" property="courseView.director.id"> |
321 | <html:select onchange="alertPermissions()" property="courseView.director.id"> |
321 | <html:option value="0"> |
322 | <html:option value="0"> |
322 | <bean:message key="none"/> |
323 | <bean:message key="none"/> |
323 | </html:option> |
324 | </html:option> |
324 | <logic:present name="CourseForm" property="teachers"> |
325 | <logic:present name="CourseForm" property="teachers"> |
325 | <logic:iterate id="teacher" name="CourseForm" property="teachers" type="pt.estgp.estgweb.domain.views.UserView"> |
326 | <logic:iterate id="teacher" name="CourseForm" property="teachers" type="pt.estgp.estgweb.domain.views.UserView"> |
326 | <html:option value="${teacher.id}"> |
327 | <html:option value="${teacher.id}"> |
327 | (${teacher.code}) ${teacher.name} |
328 | (${teacher.code}) ${teacher.name} |
328 | </html:option> |
329 | </html:option> |
329 | </logic:iterate> |
330 | </logic:iterate> |
330 | </logic:present> |
331 | </logic:present> |
331 | </html:select> |
332 | </html:select> |
332 | </td> |
333 | </td> |
333 | </tr> |
334 | </tr> |
334 | --%> |
335 | --%> |
335 | 336 | ||
336 | 337 | ||
337 | 338 | ||
338 | 339 | ||
339 | 340 | ||
340 | 341 | ||
341 | <button class="btn btn-success" type="button" onclick="set(this.form,'submit');this.form.submit()"> |
342 | <button class="btn btn-success" type="button" onclick="set(this.form,'submit');this.form.submit()"> |
342 | <bean:message key="confirm"/> |
343 | <bean:message key="confirm"/> |
343 | </button> |
344 | </button> |
344 | 345 | ||
345 | 346 | ||
346 | </div><!-- //panel-body--> |
347 | </div><!-- //panel-body--> |
347 | </div><!-- //panel panel-default--> |
348 | </div><!-- //panel panel-default--> |
348 | 349 | ||
349 | </html:form> |
350 | </html:form> |