Subversion Repositories bacoAlunos

Rev

Rev 1541 | Rev 1684 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1505 jmachado 1
<%@ page import="jomm.dao.impl.AbstractDao" %>
2
<%@ page import="pt.estgp.estgweb.domain.Course" %>
3
<%@ page import="pt.estgp.estgweb.domain.CourseStudiesPlan" %>
4
<%@ page import="pt.estgp.estgweb.domain.CourseStudiesPlanImpl" %>
5
<%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %>
1516 jmachado 6
<%@ page import="pt.estgp.estgweb.services.courses.CoursesService" %>
1505 jmachado 7
<%@ page import="pt.estgp.estgweb.web.form.courses.CourseStudiesPlansAdminForm" %>
1516 jmachado 8
<%@ page import="java.util.List" %>
1505 jmachado 9
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
10
<%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %>
11
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
12
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
13
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
14
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
15
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
16
<%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm"%>
17
<%
18
    //todo temos de ter aqui o id do curso para o carregar aqui mesmo
19
 
20
    //se queremos barras de navegação então temos de ter ser acedidos de um
21
    //controlador que carregue o necerrário à barra ou então assumimos que
22
    //o curso id esta sempre disponivel nas barras possiveis de chamar
23
 
24
    AbstractDao.getCurrentSession().beginTransaction();
25
 
26
    CourseStudiesPlanImpl planoEdicao;
27
    boolean ultimaVersao = true;
28
    Long courseId;
29
    Long studyPlanId;
30
    String versaoPlano = "Não Encontrada";
31
    Course course;
32
    if(request.getAttribute("CourseStudiesPlansAdminForm") != null)
33
    {
34
        CourseStudiesPlansAdminForm frm = (CourseStudiesPlansAdminForm) request.getAttribute("CourseStudiesPlansAdminForm");
35
        courseId = frm.getCourseId();
36
        studyPlanId = frm.getCourseStudiesPlan().getId();
37
        ultimaVersao = frm.isVersaoVigor();
38
        course = DaoFactory.getCourseDaoImpl().load(courseId);
39
        planoEdicao = frm.getCourseStudiesPlan();
40
    }
41
    else
42
    {
43
        courseId = Long.parseLong(request.getParameter("courseId"));
44
        studyPlanId = Long.parseLong(request.getParameter("studyPlanId"));
45
        request.setAttribute("courseId",courseId);
46
        request.setAttribute("studyPlanId",studyPlanId);
47
 
48
 
49
        course = DaoFactory.getCourseDaoImpl().load(courseId);
50
        planoEdicao = null;
51
        for(CourseStudiesPlan plan:course.getStudiesPlans())
52
        {
53
            if(plan.getId() == studyPlanId)
54
            {
55
                versaoPlano = plan.getVersion() + "";
56
                planoEdicao = (CourseStudiesPlanImpl) DaoFactory.getCourseStudiesPlanDaoImpl().narrow(plan);
57
                break;
58
            }
59
            ultimaVersao = false;
60
        }
61
        //provavelmente era mais facil ter um Form Nested com toda a informação, ou então faz-se isso numa pagina propria para editar o plano em questão
62
    }
63
    request.setAttribute("courseId",courseId);
64
    request.setAttribute("studyPlanId",studyPlanId);
65
    request.setAttribute("course",course);
66
 
67
 
68
 
69
 
70
 
71
 
72
    /*
73
    if(planoEdicao != null)
74
    {
75
 
76
 
77
    }
78
    */
79
 
80
%>
81
    <div class="panel panel-default">
82
        <div class="panel-heading">
83
            Edição do plano de estudos. Versão <%=versaoPlano%> <%=ultimaVersao? "(<u>é a versão em vigor</u>)":""%> do curso de <%=course.getName()%> (<%=course.getCode()%>)
84
        </div>
85
        <div class="panel-body">
86
 
87
            <html:errors/>
88
            <jomm:messages/>
89
 
1534 jmachado 90
 
91
 
1505 jmachado 92
            <div class="panel panel-default">
93
                <div class="panel-heading">Dados do Curso</div>
94
                <div class="panel-body">
95
 
96
                    <div class="col-sm-12">Código do Curso <label class="text-info">${course.code}</label></div>
97
                    <div class="col-sm-12">
98
                        <table class="tablesorter-blue">
99
                            <thead>
100
                                <tr>
101
                                    <th>Língua</th>
102
                                    <th>Nome do Curso</th>
103
                                    <th>Departamento</th>
104
                                </tr>
105
                            </thead>
106
                            <tbody>
107
                                <tr>
108
                                    <td>PT</td>
109
                                    <td>${course.name}</td>
110
                                    <td>
111
                                    <%if(course.getDepartment() != null){%>${course.department.name}<%}%>
112
                                    </td>
113
                                </tr>
114
                                <tr>
115
                                    <td>EN</td>
116
                                    <td>${course.nameEn}</td>
117
                                    <td>
118
                                        <%if(course.getDepartment() != null){%>${course.department.nameEn}<%}%>
119
 
120
                                    </td>
121
                                </tr>
122
                                <tr>
123
                                    <td>ES</td>
124
                                    <td>${course.nameEs}</td>
125
                                    <td>
126
                                        <%if(course.getDepartment() != null){%>${course.department.nameEs}<%}%>
127
                                    </td>
128
                                </tr>
129
                                <tr>
130
                                    <td>FR</td>
131
                                    <td>${course.nameFr}</td>
132
                                    <td>
133
                                        <%if(course.getDepartment() != null){%>${course.department.nameFr}<%}%>
134
                                    </td>
135
                                </tr>
136
                            </tbody>
137
                        </table>
138
                   </div>
139
 
140
                </div>
141
            </div>
1534 jmachado 142
            <html:form action="/user/courseControllerStudiesPlan" styleId="CourseStudiesPlansAdminForm" styleClass="form-horizontal"  enctype="multipart/form-data">
143
 
1516 jmachado 144
                <div class="panel panel-warning">
145
                    <div class="panel-heading"><span class="glyphicon glyphicon-wrench"></span> Clonagem a partir de outro plano de Estudos</div>
146
                    <div class="panel-body">
1505 jmachado 147
 
148
                            <div class="form-group">
1516 jmachado 149
                                <label class="control-label col-sm-2">Versão Fonte para Clonagem</label>
1505 jmachado 150
                                <div class="col-sm-10">
1516 jmachado 151
                                    <html:select styleClass="form-control" property="sourcePlanId">
152
                                        <html:option value="">Nenhuma</html:option>
153
                                    <%
154
                                        for(CourseStudiesPlan plan:course.getStudiesPlans())
155
                                        {
156
                                            if(plan.getId() != studyPlanId)
157
                                            {
158
                                                request.setAttribute("nowPlanId",plan.getId());
159
                                        %>
160
                                            <html:option value="${nowPlanId}">Versão <%=plan.getVersion()%></html:option>
161
                                        <%
162
                                            }
163
 
164
                                        }
165
                                    %>
166
                                    </html:select>
1505 jmachado 167
                                </div>
168
                            </div>
1516 jmachado 169
                            <button class="btn btn-warning" type="button" data-toggle="modal" data-target="#confirm-ModalFunction" data-message="Esta operação vai sobrepor os dados do plano de estudos atual com os dados da versão escolhida!! Tem a certeza que deseja prosseguir?" data-script="set($('#CourseStudiesPlansAdminForm').get(0),'clonarPlano');$('#CourseStudiesPlansAdminForm').get(0).submit();">
170
                                Clonar para a fonte escolhida
171
                            </button>
1505 jmachado 172
 
1507 jmachado 173
 
174
 
1516 jmachado 175
                    </div>
176
                </div>
1507 jmachado 177
 
1536 jmachado 178
                <%
179
                    CourseStudiesPlansAdminForm courseStudiesPlansAdminForm = (CourseStudiesPlansAdminForm) request.getAttribute("CourseStudiesPlansAdminForm");
180
                    //Form ainda não iniciado vai iniciar é a primeira vez
181
                    if(courseStudiesPlansAdminForm.getCourseStudiesPlan().getId() <= 0)
182
                    {
183
                        courseStudiesPlansAdminForm.setCourseStudiesPlan(planoEdicao);
184
                        courseStudiesPlansAdminForm.setCourseId(courseId);
185
                        courseStudiesPlansAdminForm.setVersaoVigor(ultimaVersao);
186
                        courseStudiesPlansAdminForm.setPlanoEstudos(new CoursesService().loadCursoPlanoFromXml(planoEdicao.getXml()));
187
                    }
188
                %>
1535 jmachado 189
                <logic:notEmpty name="CourseStudiesPlansAdminForm" property="courseStudiesPlan.importLog">
1534 jmachado 190
                    <div class="panel panel-warning">
1536 jmachado 191
                        <div class="panel-heading"><span class="glyphicon glyphicon-wrench"></span> LOG DA ULTIMA IMPORTAÇÃO</div>
1534 jmachado 192
                        <div class="panel-body">
193
                            <pre>
1535 jmachado 194
                                <html:hidden name="CourseStudiesPlansAdminForm" property="courseStudiesPlan.importLog"/>
195
                                <bean:write name="CourseStudiesPlansAdminForm" property="courseStudiesPlan.importLog"/>
1536 jmachado 196
 
1534 jmachado 197
                            </pre>
198
                        </div>
199
                    </div>
200
                </logic:notEmpty>
201
                <div class="panel panel-warning">
202
                    <div class="panel-heading"><span class="glyphicon glyphicon-wrench"></span> Importar Ficheiro do SIGES em formato TXT: <a href="<%=request.getContextPath()%>/user/courses/9500-Enfermagem.TXT">VEJA UM EXEMPLO DE ENFERMAGEM</a></div>
203
                    <div class="panel-body">
1541 jmachado 204
                        <div class="col-md-6">
205
                            <div class="panel panel-default">
206
                                <div class="panel-body">
207
                                    <div class="form-group">
208
                                        <label class="control-label col-sm-2">Escolher Ficheiro Exportado do Siges</label>
209
                                        <div class="col-sm-10">
210
                                            <html:file styleClass="form-control" property="formFileImport"/>
211
                                        </div>
212
                                    </div>
213
                                    <button class="btn btn-warning" type="button" data-toggle="modal" data-target="#confirm-ModalFunction" data-message="Esta operação vai sobrepor os dados do plano de estudos atual com os dados da versão escolhida!! Tem a certeza que deseja prosseguir?" data-script="set($('#CourseStudiesPlansAdminForm').get(0),'importarPlano');$('#CourseStudiesPlansAdminForm').get(0).submit();">
214
                                        Importar o ficheiro sobrepondo esta versão do plano
215
                                    </button>
216
                                </div>
1534 jmachado 217
                            </div>
218
                        </div>
1541 jmachado 219
                        <div class="col-md-6">
220
                            <div class="panel panel-default">
221
                                <div class="panel-body">
222
                                    <div class="form-group">
223
                                        <label class="control-label col-sm-2">Escolher Ficheiro Exportado do Siges Com Ramos</label>
224
                                        <div class="col-sm-10">
1542 jmachado 225
                                            <html:file styleClass="form-control" property="formFileImport2"/>
1541 jmachado 226
                                        </div>
227
                                    </div>
228
                                    <button class="btn btn-warning" type="button" data-toggle="modal" data-target="#confirm-ModalFunction" data-message="Esta operação vai sobrepor os dados do plano de estudos atual com os dados da versão escolhida!! Tem a certeza que deseja prosseguir?" data-script="set($('#CourseStudiesPlansAdminForm').get(0),'mergePlano');$('#CourseStudiesPlansAdminForm').get(0).submit();">
229
                                        FUNDIR o ficheiro com esta versão do plano
230
                                    </button>
231
                                </div>
232
                            </div>
233
                        </div>
234
 
235
 
1534 jmachado 236
                    </div>
237
                </div>
238
 
239
 
1516 jmachado 240
                <div class="panel panel-default">
241
                    <div class="panel-heading">Plano de Estudos
1507 jmachado 242
 
1516 jmachado 243
                        <button style="margin-left: 4px"  type="button" class="btn btn-success pull-right" onclick="set(this.form,'addNewSemestre');this.form.submit()">
244
                            <span class="glyphicon glyphicon-plus"> </span> Semestre
245
                        </button>
246
                    </div>
247
                    <div class="panel-body">
1507 jmachado 248
 
249
 
1516 jmachado 250
                                <input type="hidden" name="dispatch" value="savePlano"/>
251
                                <html:hidden property="courseId"/>
252
                                <html:hidden property="versaoVigor"/>
253
                                <html:hidden property="courseStudiesPlan.id"/>
254
                                <html:hidden styleId="semestreId" property="semestreId"/>
255
                                <html:hidden styleId="perfilId" property="perfilId"/>
1505 jmachado 256
 
1516 jmachado 257
                                <div class="form-group">
258
                                    <label class="control-label col-sm-2">Versão</label>
259
                                    <div class="col-sm-10">
260
                                        <html:text styleClass="form-control" property="courseStudiesPlan.version" size="3"/>
261
                                    </div>
262
                                </div>
263
                                <div class="form-group">
264
                                    <label class="control-label col-sm-2">Descrição</label>
265
                                    <div class="col-sm-10">
266
                                        <html:text styleClass="form-control" property="courseStudiesPlan.versionDescription"/>
267
                                    </div>
268
                                </div>
1507 jmachado 269
 
1534 jmachado 270
 
271
 
272
 
1516 jmachado 273
                                <%
274
                                    int dummyIndexIdUnidades = 0;
275
                                    int dummyIndexPerfilId = 0;
276
                                    int dummyIndexSemestreId = 0;
1507 jmachado 277
 
1516 jmachado 278
                                %>
279
                                <script>
1505 jmachado 280
 
1516 jmachado 281
                                    function sendUpUnidadeCurricular(dummyIndexId)
282
                                    {
283
                                        sendFieldUp("removed",dummyIndexId);
284
                                        sendFieldUp("siges",dummyIndexId);
285
                                        sendFieldUp("nome",dummyIndexId);
286
                                        sendFieldUp("nomeEn",dummyIndexId);
287
                                        sendFieldUp("nomeEs",dummyIndexId);
288
                                        sendFieldUp("nomeFr",dummyIndexId);
1507 jmachado 289
 
1516 jmachado 290
                                        sendFieldUp("totalHoras",dummyIndexId);
291
                                        sendFieldUp("horasContactoT",dummyIndexId);
292
                                        sendFieldUp("horasContactoTP",dummyIndexId);
293
                                        sendFieldUp("horasContactoP",dummyIndexId);
294
                                        sendFieldUp("horasContactoPL",dummyIndexId);
295
                                        sendFieldUp("horasContactoPD",dummyIndexId);
296
                                        sendFieldUp("horasContactoOT",dummyIndexId);
297
                                        sendFieldUp("horasContactoE",dummyIndexId);
298
                                        sendFieldUp("horasContactoS",dummyIndexId);
299
                                        sendFieldUp("horasContactoTC",dummyIndexId);
300
                                        sendFieldUp("horasContactoO",dummyIndexId);
301
                                        sendFieldUp("ECTS",dummyIndexId);
302
                                        sendFieldUp("urlUnidadeCurricular",dummyIndexId);
303
                                        sendFieldUp("urlFichaCurricular",dummyIndexId);
1507 jmachado 304
 
1516 jmachado 305
                                    }
306
                                    function sendDownUnidadeCurricular(dummyIndexId)
307
                                    {
308
                                        sendFieldDown("removed",dummyIndexId);
309
                                        sendFieldDown("siges",dummyIndexId);
310
                                        sendFieldDown("nome",dummyIndexId);
311
                                        sendFieldDown("nomeEn",dummyIndexId);
312
                                        sendFieldDown("nomeEs",dummyIndexId);
313
                                        sendFieldDown("nomeFr",dummyIndexId);
1507 jmachado 314
 
1516 jmachado 315
                                        sendFieldDown("totalHoras",dummyIndexId);
316
                                        sendFieldDown("horasContactoT",dummyIndexId);
317
                                        sendFieldDown("horasContactoTP",dummyIndexId);
318
                                        sendFieldDown("horasContactoP",dummyIndexId);
319
                                        sendFieldDown("horasContactoPL",dummyIndexId);
320
                                        sendFieldDown("horasContactoPD",dummyIndexId);
321
                                        sendFieldDown("horasContactoOT",dummyIndexId);
322
                                        sendFieldDown("horasContactoE",dummyIndexId);
323
                                        sendFieldDown("horasContactoS",dummyIndexId);
324
                                        sendFieldDown("horasContactoTC",dummyIndexId);
325
                                        sendFieldDown("horasContactoO",dummyIndexId);
326
                                        sendFieldDown("ECTS",dummyIndexId);
327
                                        sendFieldDown("urlUnidadeCurricular",dummyIndexId);
328
                                        sendFieldDown("urlFichaCurricular",dummyIndexId);
329
 
330
                                    }
331
                                    function sendFieldUp(field,dummyIndexId){
332
                                        nome = $("#" + field + "dummyIndex" + dummyIndexId).val();
333
                                        $("#" + field + "dummyIndex" + (dummyIndexId)).val($("#" + field + "dummyIndex" + (dummyIndexId-1)).val());
334
                                        $("#" + field + "dummyIndex" + (dummyIndexId-1)).val(nome);
335
                                    }
336
                                    function sendFieldDown(field,dummyIndexId){
337
                                        nome = $("#" + field + "dummyIndex" + dummyIndexId).val();
338
                                        $("#" + field + "dummyIndex" + (dummyIndexId)).val($("#" + field + "dummyIndex" + (dummyIndexId+1)).val());
339
                                        $("#" + field + "dummyIndex" + (dummyIndexId+1)).val(nome);
340
                                    }
341
                                    function removeUnit(dummyIndexId)
342
                                    {
343
                                        $("#removed" + "dummyIndex" + dummyIndexId).val("true");
344
                                        $("#removed" + "dummyIndex" + dummyIndexId).closest("tr").hide("slow");
345
 
346
                                    }
1517 jmachado 347
 
348
                                    function sendUpSemestre(dummySemestreId,form)
349
                                    {
350
                                        $(form.semestreId).val("semestreDummy" + dummySemestreId);
351
                                        $(form.dispatch).val("sendUpSemestre");
352
                                        form.submit();
353
                                    }
354
                                    function sendDownSemestre(dummySemestreId,form)
355
                                    {
356
                                        $(form.semestreId).val("semestreDummy" +dummySemestreId);
357
                                        $(form.dispatch).val("sendDownSemestre");
358
                                        form.submit();
359
                                    }
360
 
361
                                    function sendUpPerfil(dummyPerfilId,form,dummySemestreId)
362
                                    {
363
                                        form.action = form.action + "#" + dummySemestreId;
364
                                        $(form.perfilId).val("perfilDummy" + dummyPerfilId);
365
                                        $(form.dispatch).val("sendUpPerfil");
366
                                        form.submit();
367
                                    }
368
                                    function sendDownPerfil(dummyPerfilId,form,dummySemestreId)
369
                                    {
370
                                        form.action = form.action + "#" + dummySemestreId;
371
                                        $(form.perfilId).val("perfilDummy" + dummyPerfilId);
372
                                        $(form.dispatch).val("sendDownPerfil");
373
                                        form.submit();
374
                                    }
1516 jmachado 375
                                </script>
376
                                <nested:notEmpty  property="planoEstudos">
377
 
1534 jmachado 378
                                    <div class="panel panel-default">
379
                                        <div class="panel-heading">
380
                                            Informação obtida do Siges (Auxiliar)
381
                                        </div>
382
                                        <div class="panel-body">
383
                                            <div class="form-group">
384
                                                <label class="control-label col-sm-2">Ano do Plano no Siges</label>
385
                                                <div class="col-sm-10">
386
                                                    <html:text styleClass="form-control" property="planoEstudos.anoPlanoSiges"/>
387
                                                </div>
388
                                            </div>
389
                                            <div class="form-group">
390
                                                <label class="control-label col-sm-2">Código do Plano no Siges</label>
391
                                                <div class="col-sm-10">
392
                                                    <html:text styleClass="form-control" property="planoEstudos.codigoPlanoSiges"/>
393
                                                </div>
394
                                            </div>
395
                                            <div class="form-group">
396
                                                <label class="control-label col-sm-2">Linha Descritiva do Plano no Siges</label>
397
                                                <div class="col-sm-10">
398
                                                    <html:text styleClass="form-control" property="planoEstudos.descPlanoSiges"/>
399
                                                </div>
400
                                            </div>
401
                                        </div>
402
                                    </div>
403
 
1516 jmachado 404
                                    <html:hidden property="planoEstudos.siges"/>
405
                                    <html:hidden property="planoEstudos.nome"/>
406
                                    <html:hidden property="planoEstudos.dep"/>
1517 jmachado 407
                                    <nested:size id="tamanhoSemestre" property="planoEstudos.semestre"/>
408
                                    <nested:iterate id="semestre" indexId="semestreIndexId" property="planoEstudos.semestre" type="pt.estgp.estgweb.services.courses.xsd.Curso.Semestre">
409
                                        <div class="panel panel-primary">
1516 jmachado 410
                                            <div class="panel-heading">
411
 
412
                                                <div class="form-group">
413
                                                    <%
414
                                                        dummyIndexSemestreId++;
415
                                                        request.setAttribute("dummyIndexSemestreId",dummyIndexSemestreId);
416
                                                    %>
417
                                                    <nested:hidden property="semestreId" value="semestreDummy${dummyIndexSemestreId}"/>
1517 jmachado 418
                                                    <div class="col-sm-2">
419
                                                        <button type="button" class="btn btn-warning" onclick="sendUpSemestre('<%=dummyIndexSemestreId%>',this.form)">
420
                                                            <span class="glyphicon glyphicon-arrow-up"> </span>
421
                                                        </button>
422
                                                        <button type="button" class="btn btn-warning" onclick="sendDownSemestre('<%=dummyIndexSemestreId%>',this.form)">
423
                                                            <span class="glyphicon glyphicon-arrow-down"> </span>
424
                                                        </button>
1516 jmachado 425
                                                        <button type="button" class="btn btn-danger" data-toggle="modal" data-target="#confirm-ModalFunction"  data-message="Esta operação vai remover todas as unidades e perfis deste semestre!! Tem a certeza que deseja prosseguir? A operação não afeta as unidades nem os cursos do PAE, apenas o plano." data-script="$('#semestreId').val('semestreDummy${dummyIndexSemestreId}');set($('#CourseStudiesPlansAdminForm').get(0),'removeSemestre');$('#CourseStudiesPlansAdminForm').get(0).submit()">
426
                                                            <span class="glyphicon glyphicon-remove"> </span>
1507 jmachado 427
                                                        </button>
1505 jmachado 428
                                                    </div>
1516 jmachado 429
                                                    <div class="col-sm-1">
430
                                                        Duração
431
                                                    </div>
1517 jmachado 432
                                                    <div class="col-sm-3">
433
                                                        <script>
434
                                                            $(document).ready(
435
                                                                    function()
436
                                                                    {
437
                                                                        showHideSemestreDesc${dummyIndexSemestreId}();
438
                                                                    }
439
                                                            );
440
 
441
 
442
                                                            function showHideSemestreDesc${dummyIndexSemestreId}()
443
                                                            {
444
                                                                if($("#selectSemestreDesc${dummyIndexSemestreId}").val()=='OP')
445
                                                                {
446
                                                                    $('#semestreDescContainer${dummyIndexSemestreId}').show();
447
                                                                }
448
                                                                else
449
                                                                {
450
                                                                    $('#semestreDescContainer${dummyIndexSemestreId}').hide();
451
                                                                }
452
                                                            }
453
                                                        </script>
454
                                                        <nested:select styleClass="form-control" property="id" styleId="selectSemestreDesc${dummyIndexSemestreId}" onchange="showHideSemestreDesc${dummyIndexSemestreId}(this)">
1516 jmachado 455
                                                            <html:option value="S1">Semestre 1</html:option>
456
                                                            <html:option value="S2">Semestre 2</html:option>
457
                                                            <html:option value="S3">Semestre 3</html:option>
458
                                                            <html:option value="S4">Semestre 4</html:option>
459
                                                            <html:option value="S5">Semestre 5</html:option>
460
                                                            <html:option value="S6">Semestre 6</html:option>
1534 jmachado 461
                                                            <html:option value="S7">Semestre 7</html:option>
462
                                                            <html:option value="S8">Semestre 8</html:option>
1528 jmachado 463
                                                            <html:option value="A1">Anual 1</html:option>
464
                                                            <html:option value="A2">Anual 2</html:option>
465
                                                            <html:option value="A3">Anual 3</html:option>
466
                                                            <html:option value="A4">Anual 4</html:option>
1516 jmachado 467
                                                            <html:option value="T1">Trimestre 1</html:option>
468
                                                            <html:option value="T2">Trimestre 2</html:option>
469
                                                            <html:option value="T3">Trimestre 3</html:option>
470
                                                            <html:option value="T4">Trimestre 4</html:option>
471
                                                            <html:option value="T5">Trimestre 5</html:option>
472
                                                            <html:option value="T6">Trimestre 6</html:option>
473
                                                            <html:option value="T7">Trimestre 7</html:option>
474
                                                            <html:option value="T8">Trimestre 8</html:option>
1517 jmachado 475
                                                            <html:option value="OP">Opcionais</html:option>
1516 jmachado 476
                                                        </nested:select>
1517 jmachado 477
                                                        <div id="semestreDescContainer${dummyIndexSemestreId}">
478
                                                            Descrição (PT) <nested:text property="semestreDesc" styleClass="form-control"/>
479
                                                            Descrição (EN) <nested:text property="semestreDescEn" styleClass="form-control"/>
480
                                                            Descrição (ES) <nested:text property="semestreDescEs" styleClass="form-control"/>
481
                                                            Descrição (FR) <nested:text property="semestreDescFr" styleClass="form-control"/>
482
                                                        </div>
1516 jmachado 483
                                                    </div>
484
                                                    <div class="col-sm-6">
1507 jmachado 485
 
1516 jmachado 486
                                                        <button style="margin-left: 4px"  type="button" class="btn btn-success pull-right" onclick="form.action=form.action+'#semestreDummy${dummyIndexSemestreId}';$('#semestreId').val('semestreDummy${dummyIndexSemestreId}');set(this.form,'addUnidadeSemestre');this.form.submit()">
487
                                                            <span class="glyphicon glyphicon-plus"> </span> Unidade
488
                                                        </button>
489
 
490
                                                        <button style="margin-left: 4px" type="button" class="btn btn-success pull-right" onclick="form.action=form.action+'#semestreDummy${dummyIndexSemestreId}';$('#semestreId').val('semestreDummy${dummyIndexSemestreId}');set(this.form,'addPerfilSemestre');this.form.submit()">
491
                                                            <span class="glyphicon glyphicon-plus"> </span> Perfil
492
                                                        </button>
493
 
494
                                                        <a name="semestreDummy${dummyIndexSemestreId}"></a>
495
                                                    </div>
496
                                                </div>
497
                                            </div>
498
                                            <div class="panel-body">
499
 
1521 jmachado 500
                                                <div class="form-group">
1516 jmachado 501
 
1521 jmachado 502
                                                    <div class="col-sm-2">
503
                                                        Notas do Semestre (Pode ser utilizado para mostrar Optativas)
504
                                                    </div>
505
                                                    <div class="col-sm-10">
506
                                                        <nested:textarea property="notas" rows="5" styleClass="form-control"/>
507
                                                    </div>
508
                                                </div>
509
 
1516 jmachado 510
                                                <button class="btn btn-default" data-toggle="collapse" type="button" data-target=".langs">Ver Campos Multingua</button>
1517 jmachado 511
 
512
                                                <nested:size id="tamanhoPerfil" property="perfil"/>
513
                                                <nested:iterate id="perfil" indexId="perfilIndexId" property="perfil" type="pt.estgp.estgweb.services.courses.xsd.Curso.Semestre.Perfil">
1518 jmachado 514
                                                    <div class="panel panel-info">
1516 jmachado 515
                                                        <div class="panel-heading">
516
                                                            <div class="form-group">
1507 jmachado 517
                                                                <%
1516 jmachado 518
                                                                    dummyIndexPerfilId++;
519
                                                                    request.setAttribute("dummyIndexPerfilId",dummyIndexPerfilId);
1507 jmachado 520
                                                                %>
1516 jmachado 521
                                                                <a name="perfilDummy${dummyIndexPerfilId}"></a>
522
                                                                <nested:hidden property="perfilId" value="perfilDummy${dummyIndexPerfilId}"/>
1517 jmachado 523
                                                                <div class="col-sm-2">
524
                                                                    <button type="button" class="btn btn-warning" onclick="sendUpPerfil('<%=dummyIndexPerfilId%>',this.form,'semestreDummy${dummyIndexSemestreId}')">
525
                                                                        <span class="glyphicon glyphicon-arrow-up"> </span>
526
                                                                    </button>
527
                                                                    <button type="button" class="btn btn-warning" onclick="sendDownPerfil('<%=dummyIndexPerfilId%>',this.form,'semestreDummy${dummyIndexSemestreId}')">
528
                                                                        <span class="glyphicon glyphicon-arrow-down"> </span>
529
                                                                    </button>
1516 jmachado 530
                                                                    <button type="button" class="btn btn-danger" data-toggle="modal" data-target="#confirm-ModalFunction"  data-message="Esta operação vai remover todas as unidades deste perfil!! Tem a certeza que deseja prosseguir? A operação não afeta as unidades nem os cursos do PAE, apenas o plano." data-script="$('#CourseStudiesPlansAdminForm').get(0).action=$('#CourseStudiesPlansAdminForm').get(0).action+'#semestreDummy${dummyIndexSemestreId}';$('#perfilId').val('perfilDummy${dummyIndexPerfilId}');set($('#CourseStudiesPlansAdminForm').get(0),'removePerfil');$('#CourseStudiesPlansAdminForm').get(0).submit()">
531
                                                                        <span class="glyphicon glyphicon-remove"> </span>
532
                                                                    </button>
533
                                                                </div>
534
                                                                <div class="col-sm-1">
535
                                                                    Perfil
536
                                                                </div>
1517 jmachado 537
                                                                <div class="col-sm-5">
1516 jmachado 538
                                                                    <nested:text styleClass="form-control" property="nome"/>
539
                                                                </div>
540
                                                                <div  class="col-sm-4">
541
                                                                    <button type="button" class="btn btn-success pull-right" onclick="form.action=form.action+'#perfilDummy${dummyIndexPerfilId}';$('#perfilId').val('perfilDummy${dummyIndexPerfilId}');set(this.form,'addUnidadePerfil');this.form.submit()">
542
                                                                        <span class="glyphicon glyphicon-plus"> </span>  Unidade
543
                                                                    </button>
544
                                                                </div>
545
                                                            </div>
546
                                                        </div>
547
                                                        <div class="panel-body">
548
                                                            <table class="tablesorterfiltered">
549
                                                                <thead>
550
                                                                <tr>
551
                                                                    <td></td>
552
                                                                    <td></td>
553
                                                                    <th>SIGES</th>
554
                                                                    <th>Nome</th>
555
                                                                    <th>Total</th>
556
                                                                    <th>T</th>
557
                                                                    <th>TP</th>
558
                                                                    <th>P</th>
559
                                                                    <th>PL</th>
560
                                                                    <th>PD</th>
561
                                                                    <th>OT</th>
562
                                                                    <th>E</th>
563
                                                                    <th>S</th>
564
                                                                    <th>TC</th>
565
                                                                    <th>O</th>
566
                                                                    <th>ECTS</th>
567
                                                                    <th>URL UNIDADE</th>
568
                                                                    <th>FICHA URL</th>
569
                                                                </tr>
570
                                                                </thead>
571
                                                                <tbody>
572
                                                                <nested:size id="tamanho" property="unidade"/>
573
                                                                <nested:iterate id="unit" indexId="indexId"  property="unidade" type="pt.estgp.estgweb.services.courses.xsd.UnidadeType">
1507 jmachado 574
 
1516 jmachado 575
                                                                    <%
576
                                                                        dummyIndexIdUnidades++;
577
                                                                        request.setAttribute("dummyIndexIdUnidades","dummyIndex" + dummyIndexIdUnidades);
578
                                                                    %>
579
                                                                    <%
580
                                                                        int tamanhoMinus1 = tamanho - 1;
581
                                                                        request.setAttribute("tamanhoMinus1",tamanhoMinus1);
1507 jmachado 582
 
1516 jmachado 583
                                                                    %>
584
                                                                    <tr <nested:equal property="removed" value="true">class="hidden"</nested:equal>>
585
                                                                        <td class="text-nowrap">
586
 
1517 jmachado 587
                                                                            <%--
588
                                                                                Usando o dummyIndex apenas não colocamos botao de up na primeira de todas as unidades de todos os semestres
589
                                                                                Antes usavamos o indexId e trabalhavamos lista a lista considerando semestres e perfis independentes
590
                                                                            --%>
591
                                                                            <nested:notEqual value="dummyIndex1" name="dummyIndexIdUnidades">
1516 jmachado 592
                                                                                <button type="button" class="btn btn-warning" onclick="sendUpUnidadeCurricular(<%=dummyIndexIdUnidades%>)">
593
                                                                                    <span class="glyphicon glyphicon-arrow-up"> </span>
594
                                                                                </button>
1517 jmachado 595
                                                                            </nested:notEqual>
596
                                                                            <%
597
                                                                                boolean perfilMaximoAtingido = perfilIndexId >= tamanhoPerfil - 1;
598
                                                                                boolean semestreMaximoAtingido = semestreIndexId >= tamanhoSemestre - 1;
599
                                                                                boolean tamanhoMaximoAtingido = indexId >= tamanho - 1;
600
                                                                                if(!perfilMaximoAtingido || !semestreMaximoAtingido || !tamanhoMaximoAtingido)
601
                                                                                {
602
                                                                            %>
1516 jmachado 603
                                                                                <button type="button" class="btn btn-warning" onclick="sendDownUnidadeCurricular(<%=dummyIndexIdUnidades%>)">
604
                                                                                    <span class="glyphicon glyphicon-arrow-down"> </span>
605
                                                                                </button>
1517 jmachado 606
                                                                            <%
607
                                                                                }
608
                                                                            %>
1516 jmachado 609
                                                                        </td>
610
                                                                        <td>
611
                                                                            <nested:hidden styleId="removed${dummyIndexIdUnidades}" property="removed"/>
612
                                                                            <button type="button" class="btn btn-danger" onclick="removeUnit(<%=dummyIndexIdUnidades%>)">
613
                                                                                <span class="glyphicon glyphicon-remove"> </span>
1507 jmachado 614
                                                                            </button>
1516 jmachado 615
                                                                        </td>
616
                                                                        <td>
1519 jmachado 617
                                                                            <script>
618
                                                                                $(document).ready(
619
                                                                                        function()
620
                                                                                        {
621
                                                                                            $("#siges${dummyIndexIdUnidades}").focusout(
622
                                                                                                    function(){
623
                                                                                                        var code = $("#siges${dummyIndexIdUnidades}").val();
624
                                                                                                        $.getJSON("<%=request.getContextPath()%>/user/courses/courseApiJson.jsp",
625
                                                                                                                { service:"findCourseUnit",
626
                                                                                                                  siges: code,
627
                                                                                                                  courseSigesCode: "${course.code}"
628
                                                                                                                },
629
                                                                                                                function(data)
630
                                                                                                                {
631
                                                                                                                    if(data.response == "ok")
632
                                                                                                                    {
633
                                                                                                                        $("#nome${dummyIndexIdUnidades}").val(data.courseUnitName);
634
                                                                                                                        $("#sigesResponse${dummyIndexIdUnidades}").html("");
635
                                                                                                                    }
636
                                                                                                                    else
637
                                                                                                                    {
638
                                                                                                                        $("#sigesResponse${dummyIndexIdUnidades}").html("Não encontrado");
639
                                                                                                                    }
640
                                                                                                                }
641
                                                                                                        );
642
                                                                                                    }
643
                                                                                            );
644
                                                                                        }
645
                                                                                );
646
                                                                            </script>
647
 
648
                                                                            <nested:text styleId="siges${dummyIndexIdUnidades}" styleClass="form-control" property="siges"/>
649
                                                                            <div id="sigesResponse${dummyIndexIdUnidades}"></div>
650
                                                                        </td>
651
                                                                        <td>
1516 jmachado 652
                                                                            <div>
653
                                                                                <div class="col-sm-1">(PT)</div>
654
                                                                                <div class="col-sm-11"><nested:text styleId="nome${dummyIndexIdUnidades}" style="width:300px" styleClass="form-control" property="nome"/></div>
1505 jmachado 655
 
1516 jmachado 656
                                                                                <div class="langs collapse" >
657
                                                                                    <div class="col-sm-1">(EN)</div>
658
                                                                                    <div class="col-sm-11"><nested:text styleId="nomeEn${dummyIndexIdUnidades}" style="width:300px" styleClass="form-control" property="nomeEn"/></div>
659
                                                                                    <div class="col-sm-1">(ES)</div>
660
                                                                                    <div class="col-sm-11"><nested:text styleId="nomeEs${dummyIndexIdUnidades}" style="width:300px" styleClass="form-control" property="nomeEs"/></div>
661
                                                                                    <div class="col-sm-1">(FR)</div>
662
                                                                                    <div class="col-sm-11"><nested:text styleId="nomeFr${dummyIndexIdUnidades}" style="width:300px" styleClass="form-control" property="nomeFr"/></div>
663
                                                                                </div>
1505 jmachado 664
                                                                            </div>
665
 
1516 jmachado 666
                                                                        </td>
667
                                                                        <td><nested:text styleClass="form-control" styleId="totalHoras${dummyIndexIdUnidades}" property="totalHoras"/></td>
668
                                                                        <td><nested:text styleClass="form-control" styleId="horasContactoT${dummyIndexIdUnidades}" property="horasContacto.t"/></td>
669
                                                                        <td><nested:text styleClass="form-control" styleId="horasContactoTP${dummyIndexIdUnidades}" property="horasContacto.TP"/></td>
670
                                                                        <td><nested:text styleClass="form-control" styleId="horasContactoP${dummyIndexIdUnidades}" property="horasContacto.p"/></td>
671
                                                                        <td><nested:text styleClass="form-control" styleId="horasContactoPL${dummyIndexIdUnidades}" property="horasContacto.PL"/></td>
672
                                                                        <td><nested:text styleClass="form-control" styleId="horasContactoPD${dummyIndexIdUnidades}" property="horasContacto.PD"/></td>
673
                                                                        <td><nested:text styleClass="form-control" styleId="horasContactoOT${dummyIndexIdUnidades}" property="horasContacto.OT"/></td>
674
                                                                        <td><nested:text styleClass="form-control" styleId="horasContactoE${dummyIndexIdUnidades}" property="horasContacto.e"/></td>
675
                                                                        <td><nested:text styleClass="form-control" styleId="horasContactoS${dummyIndexIdUnidades}" property="horasContacto.s"/></td>
676
                                                                        <td><nested:text styleClass="form-control" styleId="horasContactoTC${dummyIndexIdUnidades}" property="horasContacto.TC"/></td>
677
                                                                        <td><nested:text styleClass="form-control" styleId="horasContactoO${dummyIndexIdUnidades}" property="horasContacto.o"/></td>
678
                                                                        <td><nested:text styleClass="form-control" styleId="ECTS${dummyIndexIdUnidades}" property="ECTS"/></td>
679
                                                                        <td><nested:text styleClass="form-control" styleId="urlUnidadeCurricular${dummyIndexIdUnidades}" style="width:600px" property="urlUnidadeCurricular"/></td>
680
                                                                        <td><nested:text styleClass="form-control" styleId="urlFichaCurricular${dummyIndexIdUnidades}" style="width:600px" property="urlFichaCurricular"/></td>
681
                                                                    </tr>
682
                                                                </nested:iterate>
683
                                                                </tbody>
684
                                                            </table>
685
                                                        </div>
1505 jmachado 686
                                                    </div>
687
 
1516 jmachado 688
                                                </nested:iterate>
1505 jmachado 689
 
1516 jmachado 690
                                                <nested:notEmpty property="unidade">
1507 jmachado 691
 
1516 jmachado 692
                                                    <table class="tablesorterfiltered">
693
                                                    <thead>
694
                                                        <tr>
695
                                                            <th></th>
696
                                                            <th></th>
697
                                                            <th>SIGES</th>
698
                                                            <th>Nome</th>
699
                                                            <th>Total</th>
700
                                                            <th>T</th>
701
                                                            <th>TP</th>
702
                                                            <th>P</th>
703
                                                            <th>PL</th>
704
                                                            <th>PD</th>
705
                                                            <th>OT</th>
706
                                                            <th>E</th>
707
                                                            <th>S</th>
708
                                                            <th>TC</th>
709
                                                            <th>O</th>
710
                                                            <th>ECTS</th>
711
                                                            <th>URL UNIDADE</th>
712
                                                            <th>FICHA URL</th>
713
                                                        </tr>
714
                                                    </thead>
715
                                                    <tbody>
716
                                                        <nested:size id="tamanho" property="unidade"/>
717
                                                        <nested:iterate id="unit" property="unidade" indexId="indexId"  type="pt.estgp.estgweb.services.courses.xsd.UnidadeType">
718
                                                            <%
719
                                                                dummyIndexIdUnidades++;
720
                                                                request.setAttribute("dummyIndexIdUnidades","dummyIndex" + dummyIndexIdUnidades);
721
                                                            %>
722
                                                            <%
723
                                                                int tamanhoMinus1 = tamanho - 1;
724
                                                                request.setAttribute("tamanhoMinus1",tamanhoMinus1);
1507 jmachado 725
 
1516 jmachado 726
                                                            %>
1507 jmachado 727
 
1516 jmachado 728
                                                            <tr <nested:equal property="removed" value="true">class="hidden"</nested:equal>>
729
                                                                <td class="text-nowrap">
1507 jmachado 730
 
1517 jmachado 731
                                                                <%--
732
                                                                           Usando o dummyIndex apenas não colocamos botao de up na primeira de todas as unidades de todos os semestres
733
                                                                           Antes usavamos o indexId e trabalhavamos lista a lista considerando semestres e perfis independentes
734
                                                                   --%>
735
                                                                    <nested:notEqual value="dummyIndex1" name="dummyIndexIdUnidades">
1516 jmachado 736
                                                                        <button type="button" class="btn btn-warning" onclick="sendUpUnidadeCurricular(<%=dummyIndexIdUnidades%>)">
737
                                                                            <span class="glyphicon glyphicon-arrow-up"> </span>
738
                                                                        </button>
1517 jmachado 739
                                                                    </nested:notEqual>
740
                                                                    <%
741
                                                                        boolean semestreMaximoAtingido = semestreIndexId >= tamanhoSemestre - 1;
742
                                                                        boolean tamanhoMaximoAtingido = indexId >= tamanho - 1;
743
                                                                        if(!semestreMaximoAtingido || !tamanhoMaximoAtingido)
744
                                                                        {
745
                                                                    %>
746
                                                                    <button type="button" class="btn btn-warning" onclick="sendDownUnidadeCurricular(<%=dummyIndexIdUnidades%>)">
747
                                                                        <span class="glyphicon glyphicon-arrow-down"> </span>
748
                                                                    </button>
749
                                                                    <%
750
                                                                        }
751
                                                                    %>
1516 jmachado 752
                                                                </td>
753
                                                                <td>
754
                                                                    <nested:hidden styleId="removed${dummyIndexIdUnidades}" property="removed"/>
755
                                                                    <button type="button" class="btn btn-danger" onclick="removeUnit(<%=dummyIndexIdUnidades%>)" >
756
                                                                        <span class="glyphicon glyphicon-remove"> </span>
1507 jmachado 757
                                                                    </button>
1516 jmachado 758
                                                                </td>
759
                                                                <td>
1520 jmachado 760
                                                                    <script>
761
                                                                        $(document).ready(
762
                                                                                function()
763
                                                                                {
764
                                                                                    $("#siges${dummyIndexIdUnidades}").focusout(
765
                                                                                            function(){
766
                                                                                                var code = $("#siges${dummyIndexIdUnidades}").val();
767
                                                                                                $.getJSON("<%=request.getContextPath()%>/user/courses/courseApiJson.jsp",
768
                                                                                                        { service:"findCourseUnit",
769
                                                                                                            siges: code,
770
                                                                                                            courseSigesCode: "${course.code}"
771
                                                                                                        },
772
                                                                                                        function(data)
773
                                                                                                        {
774
                                                                                                            if(data.response == "ok")
775
                                                                                                            {
776
                                                                                                                $("#nome${dummyIndexIdUnidades}").val(data.courseUnitName);
777
                                                                                                                $("#sigesResponse${dummyIndexIdUnidades}").html("");
778
                                                                                                            }
779
                                                                                                            else
780
                                                                                                            {
781
                                                                                                                $("#sigesResponse${dummyIndexIdUnidades}").html("Não encontrado");
782
                                                                                                            }
783
                                                                                                        }
784
                                                                                                );
785
                                                                                            }
786
                                                                                    );
787
                                                                                }
788
                                                                        );
789
                                                                    </script>
790
                                                                    <nested:text styleId="siges${dummyIndexIdUnidades}" styleClass="form-control" property="siges"/>
791
                                                                    <div id="sigesResponse${dummyIndexIdUnidades}"></div>
792
                                                                </td>
793
 
794
                                                                <td>
1516 jmachado 795
                                                                    <div>
796
                                                                        <div class="col-sm-1">(PT)</div>
1520 jmachado 797
                                                                        <div class="col-sm-11">
798
                                                                            <nested:text styleId="nome${dummyIndexIdUnidades}" style="width:300px" styleClass="form-control" property="nome"/>
799
                                                                        </div>
1505 jmachado 800
 
1516 jmachado 801
                                                                        <div class="langs collapse" >
802
                                                                            <div class="col-sm-1">(EN)</div>
803
                                                                            <div class="col-sm-11"><nested:text styleId="nomeEn${dummyIndexIdUnidades}" style="width:300px" styleClass="form-control" property="nomeEn"/></div>
804
                                                                            <div class="col-sm-1">(ES)</div>
805
                                                                            <div class="col-sm-11"><nested:text styleId="nomeEs${dummyIndexIdUnidades}" style="width:300px" styleClass="form-control" property="nomeEs"/></div>
806
                                                                            <div class="col-sm-1">(FR)</div>
807
                                                                            <div class="col-sm-11"><nested:text styleId="nomeFr${dummyIndexIdUnidades}" style="width:300px" styleClass="form-control" property="nomeFr"/></div>
808
                                                                        </div>
1505 jmachado 809
                                                                    </div>
810
 
1516 jmachado 811
                                                                </td>
812
                                                                <td><nested:text styleClass="form-control" styleId="totalHoras${dummyIndexIdUnidades}" property="totalHoras"/></td>
813
                                                                <td><nested:text styleClass="form-control" styleId="horasContactoT${dummyIndexIdUnidades}" property="horasContacto.t"/></td>
814
                                                                <td><nested:text styleClass="form-control" styleId="horasContactoTP${dummyIndexIdUnidades}" property="horasContacto.TP"/></td>
815
                                                                <td><nested:text styleClass="form-control" styleId="horasContactoP${dummyIndexIdUnidades}" property="horasContacto.p"/></td>
816
                                                                <td><nested:text styleClass="form-control" styleId="horasContactoPL${dummyIndexIdUnidades}" property="horasContacto.PL"/></td>
817
                                                                <td><nested:text styleClass="form-control" styleId="horasContactoPD${dummyIndexIdUnidades}" property="horasContacto.PD"/></td>
818
                                                                <td><nested:text styleClass="form-control" styleId="horasContactoOT${dummyIndexIdUnidades}" property="horasContacto.OT"/></td>
819
                                                                <td><nested:text styleClass="form-control" styleId="horasContactoE${dummyIndexIdUnidades}" property="horasContacto.e"/></td>
820
                                                                <td><nested:text styleClass="form-control" styleId="horasContactoS${dummyIndexIdUnidades}" property="horasContacto.s"/></td>
821
                                                                <td><nested:text styleClass="form-control" styleId="horasContactoTC${dummyIndexIdUnidades}" property="horasContacto.TC"/></td>
822
                                                                <td><nested:text styleClass="form-control" styleId="horasContactoO${dummyIndexIdUnidades}" property="horasContacto.o"/></td>
823
                                                                <td><nested:text styleClass="form-control" styleId="ECTS${dummyIndexIdUnidades}" property="ECTS"/></td>
824
                                                                <td><nested:text styleClass="form-control" styleId="urlUnidadeCurricular${dummyIndexIdUnidades}" style="width:600px" property="urlUnidadeCurricular"/></td>
825
                                                                <td><nested:text styleClass="form-control" styleId="urlFichaCurricular${dummyIndexIdUnidades}" style="width:600px" property="urlFichaCurricular"/></td>
826
                                                            </tr>
827
                                                        </nested:iterate>
828
                                                    </tbody>
829
                                                </table>
830
                                                </nested:notEmpty>
1507 jmachado 831
 
1516 jmachado 832
                                            </div>
1505 jmachado 833
                                        </div>
834
 
1516 jmachado 835
                                    </nested:iterate>
1505 jmachado 836
 
1516 jmachado 837
                                </nested:notEmpty>
1505 jmachado 838
 
1516 jmachado 839
                                <a type="button" class="btn btn-danger" href="<%=request.getContextPath()%>/user/adminStudyPlans.do?courseId=${courseId}">Cancelar</a>
840
                                <html:submit styleClass="btn btn-success" >Salvar</html:submit>
1505 jmachado 841
 
842
 
843
 
1516 jmachado 844
 
845
                    </div>
1505 jmachado 846
                </div>
1516 jmachado 847
            </html:form>
1505 jmachado 848
        </div>
849
    </div>
850
 
851
<%
852
 
853
    AbstractDao.getCurrentSession().getTransaction().commit();
854
%>
855