Subversion Repositories bacoAlunos

Rev

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