Subversion Repositories bacoAlunos

Rev

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