Subversion Repositories bacoAlunos

Rev

Rev 417 | Rev 507 | 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"/>
444 jmachado 11
<html:errors/>
12
<jomm:messages/>
214 jmachado 13
<html:form action="/user/courseControllerFromServiceZone" enctype="multipart/form-data">
14
<input type="hidden" name="dispatch" value="submit"/>
15
<html:hidden property="courseView.id"/>
248 jmachado 16
<logic:present name="CourseView" property="htmlResult">
17
    <pre class="log">
18
        <bean:write name="CourseView" property="htmlResult"/>
19
    </pre>
20
</logic:present>
214 jmachado 21
<table class="form">
22
    <tr>
23
        <th>
24
            <bean:message key="course.code"/>
25
        </th>
26
        <td>
27
            <html:text property="courseView.code"/>
28
        </td>
29
    </tr>
30
    <tr>
31
        <th>
376 jmachado 32
            <bean:message key="course.area"/>
33
        </th>
34
 
35
        <td>
36
            <html:select property="courseView.area">
37
                <logic:iterate id="area" name="CourseForm" property="areas">
38
                    <html:option value="${area}" key="area.${area}"/>
39
                </logic:iterate>
40
            </html:select>
41
        </td>
42
    </tr>
43
    <tr>
44
        <th>
214 jmachado 45
            <bean:message key="name"/>
46
        </th>
47
        <td>
48
            <html:text property="courseView.name"/>
49
        </td>
50
    </tr>
51
    <tr>
52
        <th>
53
            <bean:message key="course.degree"/>
54
        </th>
55
        <td>
56
            <html:select property="courseView.degree">
249 jmachado 57
                <html:option value="B"><bean:message key="course.B"/></html:option>
58
                <html:option value="L"><bean:message key="course.L"/></html:option>
59
                <html:option value="M"><bean:message key="course.M"/></html:option>
60
                <html:option value="P"><bean:message key="course.P"/></html:option>
61
                <html:option value="E"><bean:message key="course.E"/></html:option>
417 jmachado 62
                <html:option value="A"><bean:message key="course.A"/></html:option>
63
                <html:option value="C"><bean:message key="course.C"/></html:option>
64
                <html:option value="O"><bean:message key="course.O"/></html:option>
214 jmachado 65
            </html:select>
66
            * SIGES: <bean:write name="CourseForm" property="courseView.degree"/> - Confirmar Mestrados e Pos graduacoes e informar equipa de desenvolvimento
67
        </td>
68
    </tr>
69
    <tr>
70
        <th>
71
            <bean:message key="course.importYear"/>
72
        </th>
73
        <td>
74
            <html:select property="courseView.importYear">
75
                <logic:iterate id="item" name="CourseForm" property="importYears">
76
                    <html:option value="${item}">${item}</html:option>
77
                </logic:iterate>
78
            </html:select>
79
        </td>
80
    </tr>
81
    <tr>
82
        <th>
83
            <bean:message key="course.institutionalCode"/>
84
        </th>
85
        <td>
86
            <html:text property="courseView.institutionalCode"/>
87
        </td>
88
    </tr>
89
    <tr>
90
        <th>
91
            <bean:message key="course.description"/>
92
        </th>
93
        <td>
94
            <html:textarea property="courseView.description"/>
95
        </td>
96
    </tr>
97
    <tr>
98
        <th>
99
            <bean:message key="course.coordinator"/>
100
        </th>
101
        <td>
102
            <html:select property="courseView.coordinator.id">
103
                <html:option value="0">
104
                    <bean:message key="none"/>
105
                </html:option>
106
                <logic:present name="CourseForm" property="teachers">
107
                    <logic:iterate id="teacher" name="CourseForm" property="teachers" type="pt.estgp.estgweb.domain.views.UserView">
108
                        <html:option value="${teacher.id}">
109
                            (${teacher.code}) ${teacher.name}
110
                        </html:option>
111
                    </logic:iterate>
112
                </logic:present>
113
            </html:select>
114
        </td>
115
    </tr>
116
    <tr>
117
        <th>
118
            <bean:message key="course.director"/>
119
        </th>
120
        <td>
121
            <html:select property="courseView.director.id">
122
                <html:option value="0">
123
                    <bean:message key="none"/>
124
                </html:option>
125
                <logic:present name="CourseForm" property="teachers">
126
                    <logic:iterate id="teacher" name="CourseForm" property="teachers" type="pt.estgp.estgweb.domain.views.UserView">
127
                        <html:option value="${teacher.id}">
128
                            (${teacher.code}) ${teacher.name}
129
                        </html:option>
130
                    </logic:iterate>
131
                </logic:present>
132
            </html:select>
133
        </td>
134
    </tr>
135
    <tr>
249 jmachado 136
        <td>
137
 
138
             <bean:message key="course.externalSite"/>
139
        </td>
140
        <td>
141
            <html:select property="courseView.externalSiteServer">
142
                <html:option value="estgp">ESTG</html:option>
143
            </html:select>
144
            <html:text property="courseView.externalSitePath"/>
145
        </td>
146
    </tr>
147
    <tr>
214 jmachado 148
        <th>
149
            <bean:message key="course.studies.plan"/>
150
        </th>
151
        <td>
152
            <html:file property="studiesPlan"/>
153
            <logic:present name="CourseView" property="studiesPlan">
154
                <a href="<%=request.getContextPath()%>/repositoryStream/${CourseView.studiesPlanStreamId}"><bean:message key="course.studies.plan"/></a> (${CourseView.studiesPlanSizeKb} Kb - ${CourseView.studiesPlanDate})
155
            </logic:present>
156
            <logic:notPresent name="CourseView" property="studiesPlan">
157
                <bean:message key="course.studies.plan.not.available"/>
158
            </logic:notPresent>
159
        </td>
160
    </tr>
161
    <tr class="buttons">
162
        <td colspan="2">
163
            <input type="button"
164
                   onclick="set(this.form,'submit');this.form.submit()"
165
                   value="<bean:message key="confirm"/>"/>
166
        </td>
167
    </tr>
168
</table>
169
 
170
</html:form>