Rev 248 | Rev 376 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
214 | jmachado | 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
2 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
||
3 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
||
4 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
||
5 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
||
6 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
||
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-tiles.tld" prefix="tiles" %> |
||
10 | <jsp:useBean id="CourseView" type="pt.estgp.estgweb.domain.views.CourseView" scope="request"/> |
||
11 | <html:form action="/user/courseControllerFromServiceZone" enctype="multipart/form-data"> |
||
12 | <input type="hidden" name="dispatch" value="submit"/> |
||
13 | <html:hidden property="courseView.id"/> |
||
248 | jmachado | 14 | <logic:present name="CourseView" property="htmlResult"> |
15 | <pre class="log"> |
||
16 | <bean:write name="CourseView" property="htmlResult"/> |
||
17 | </pre> |
||
18 | </logic:present> |
||
214 | jmachado | 19 | <table class="form"> |
20 | <tr> |
||
21 | <th> |
||
22 | <bean:message key="course.code"/> |
||
23 | </th> |
||
24 | <td> |
||
25 | <html:text property="courseView.code"/> |
||
26 | </td> |
||
27 | </tr> |
||
28 | <tr> |
||
29 | <th> |
||
30 | <bean:message key="name"/> |
||
31 | </th> |
||
32 | <td> |
||
33 | <html:text property="courseView.name"/> |
||
34 | </td> |
||
35 | </tr> |
||
36 | <tr> |
||
37 | <th> |
||
38 | <bean:message key="course.degree"/> |
||
39 | </th> |
||
40 | <td> |
||
41 | <html:select property="courseView.degree"> |
||
249 | jmachado | 42 | <html:option value="B"><bean:message key="course.B"/></html:option> |
43 | <html:option value="L"><bean:message key="course.L"/></html:option> |
||
44 | <html:option value="M"><bean:message key="course.M"/></html:option> |
||
45 | <html:option value="P"><bean:message key="course.P"/></html:option> |
||
46 | <html:option value="E"><bean:message key="course.E"/></html:option> |
||
214 | jmachado | 47 | </html:select> |
48 | * SIGES: <bean:write name="CourseForm" property="courseView.degree"/> - Confirmar Mestrados e Pos graduacoes e informar equipa de desenvolvimento |
||
49 | </td> |
||
50 | </tr> |
||
51 | <tr> |
||
52 | <th> |
||
53 | <bean:message key="course.importYear"/> |
||
54 | </th> |
||
55 | <td> |
||
56 | <html:select property="courseView.importYear"> |
||
57 | <logic:iterate id="item" name="CourseForm" property="importYears"> |
||
58 | <html:option value="${item}">${item}</html:option> |
||
59 | </logic:iterate> |
||
60 | </html:select> |
||
61 | </td> |
||
62 | </tr> |
||
63 | <tr> |
||
64 | <th> |
||
65 | <bean:message key="course.institutionalCode"/> |
||
66 | </th> |
||
67 | <td> |
||
68 | <html:text property="courseView.institutionalCode"/> |
||
69 | </td> |
||
70 | </tr> |
||
71 | <tr> |
||
72 | <th> |
||
73 | <bean:message key="course.description"/> |
||
74 | </th> |
||
75 | <td> |
||
76 | <html:textarea property="courseView.description"/> |
||
77 | </td> |
||
78 | </tr> |
||
79 | <tr> |
||
80 | <th> |
||
81 | <bean:message key="course.coordinator"/> |
||
82 | </th> |
||
83 | <td> |
||
84 | <html:select property="courseView.coordinator.id"> |
||
85 | <html:option value="0"> |
||
86 | <bean:message key="none"/> |
||
87 | </html:option> |
||
88 | <logic:present name="CourseForm" property="teachers"> |
||
89 | <logic:iterate id="teacher" name="CourseForm" property="teachers" type="pt.estgp.estgweb.domain.views.UserView"> |
||
90 | <html:option value="${teacher.id}"> |
||
91 | (${teacher.code}) ${teacher.name} |
||
92 | </html:option> |
||
93 | </logic:iterate> |
||
94 | </logic:present> |
||
95 | </html:select> |
||
96 | </td> |
||
97 | </tr> |
||
98 | <tr> |
||
99 | <th> |
||
100 | <bean:message key="course.director"/> |
||
101 | </th> |
||
102 | <td> |
||
103 | <html:select property="courseView.director.id"> |
||
104 | <html:option value="0"> |
||
105 | <bean:message key="none"/> |
||
106 | </html:option> |
||
107 | <logic:present name="CourseForm" property="teachers"> |
||
108 | <logic:iterate id="teacher" name="CourseForm" property="teachers" type="pt.estgp.estgweb.domain.views.UserView"> |
||
109 | <html:option value="${teacher.id}"> |
||
110 | (${teacher.code}) ${teacher.name} |
||
111 | </html:option> |
||
112 | </logic:iterate> |
||
113 | </logic:present> |
||
114 | </html:select> |
||
115 | </td> |
||
116 | </tr> |
||
117 | <tr> |
||
249 | jmachado | 118 | <td> |
119 | |||
120 | <bean:message key="course.externalSite"/> |
||
121 | </td> |
||
122 | <td> |
||
123 | <html:select property="courseView.externalSiteServer"> |
||
124 | <html:option value="estgp">ESTG</html:option> |
||
125 | </html:select> |
||
126 | <html:text property="courseView.externalSitePath"/> |
||
127 | </td> |
||
128 | </tr> |
||
129 | <tr> |
||
214 | jmachado | 130 | <th> |
131 | <bean:message key="course.studies.plan"/> |
||
132 | </th> |
||
133 | <td> |
||
134 | <html:file property="studiesPlan"/> |
||
135 | <logic:present name="CourseView" property="studiesPlan"> |
||
136 | <a href="<%=request.getContextPath()%>/repositoryStream/${CourseView.studiesPlanStreamId}"><bean:message key="course.studies.plan"/></a> (${CourseView.studiesPlanSizeKb} Kb - ${CourseView.studiesPlanDate}) |
||
137 | </logic:present> |
||
138 | <logic:notPresent name="CourseView" property="studiesPlan"> |
||
139 | <bean:message key="course.studies.plan.not.available"/> |
||
140 | </logic:notPresent> |
||
141 | </td> |
||
142 | </tr> |
||
143 | <tr class="buttons"> |
||
144 | <td colspan="2"> |
||
145 | <input type="button" |
||
146 | onclick="set(this.form,'submit');this.form.submit()" |
||
147 | value="<bean:message key="confirm"/>"/> |
||
148 | </td> |
||
149 | </tr> |
||
150 | </table> |
||
151 | |||
152 | </html:form> |