Rev 1325 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1325 | jmachado | 1 | <%@ page import="pt.estgp.estgweb.utils.DatesUtils" %> |
2 | <%@ page import="java.util.List" %> |
||
3 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
||
4 | |||
1346 | jmachado | 5 | <html:form styleClass="form-horizontal" action="/user/questionariosPae" enctype="multipart/form-data"> |
1325 | jmachado | 6 | <input type="hidden" name="dispatch" value="saveDetails"> |
7 | <html:hidden property="questionario.id"/> |
||
8 | <jsp:useBean id="QuestionarioForm" type="pt.estgp.estgweb.web.form.questionarios.QuestionarioForm" scope="request"/> |
||
9 | <html:errors/> |
||
10 | <jomm:messages/> |
||
11 | <h3>Questionário (Número Controlo - ${QuestionarioForm.questionario.id})</h3> |
||
12 | <!-- Modal content--> |
||
13 | |||
14 | |||
15 | |||
16 | |||
17 | <h3><a href="javascript:$('#diagrama').animate({height:'toggle'},200);">Ver Diagrama de Estados dos Questionários</a></h3> |
||
18 | |||
19 | <div id="diagrama" style="display: none" class="panel panel-default"> |
||
20 | <div class="panel-body"> |
||
21 | <!--<div class="alert alert-warning"> |
||
22 | ATENÇÃO: A alteração dos códigos dos grupos vai afetar os resultados históricos e o processamento de resultados. Não altere os códigos dos grupos |
||
23 | já existentes sem coordenação com a equipa de desenvolvimento. |
||
24 | </div>--> |
||
25 | |||
1346 | jmachado | 26 | <img src="<%=request.getContextPath()%>/user/questionarios/QuestionarioState.bmp"/> |
1325 | jmachado | 27 | </div> |
28 | </div> |
||
29 | |||
30 | |||
31 | |||
32 | <div class="form-group"> |
||
33 | <label class="control-label col-sm-2" for="year">Categoria Histórica</label> |
||
34 | <div class="col-sm-10"> |
||
35 | <html:select styleClass="form-control" styleId="year" property="questionarioHistoryDriveId"> |
||
36 | <html:optionsCollection name="historyDrives" label="codeName" value="id"/> |
||
37 | </html:select> |
||
38 | </div> |
||
39 | </div> |
||
40 | |||
41 | <div class="form-group"> |
||
42 | <label class="control-label col-sm-2" for="year">Processador de Respostas</label> |
||
43 | <div class="col-sm-10"> |
||
44 | <html:select styleClass="form-control" styleId="year" property="questionarioHistoryDriveId"> |
||
45 | <html:optionsCollection name="historyDrives" label="codeName" value="id"/> |
||
46 | </html:select> |
||
47 | </div> |
||
48 | </div> |
||
49 | |||
50 | |||
51 | <div class="form-group"> |
||
52 | <label class="control-label col-sm-2" for="year"><bean:message key="course.importYear"/></label> |
||
53 | <div class="col-sm-10"> |
||
54 | <% |
||
55 | List<String> years = DatesUtils.getImportYears(10); |
||
56 | %> |
||
57 | <html:select styleClass="form-control" styleId="year" property="questionario.year"> |
||
58 | <html:option value="">Escolha Ano</html:option> |
||
59 | <% |
||
60 | for(String year:years) |
||
61 | { |
||
62 | request.setAttribute("year",year); |
||
63 | %> |
||
64 | <html:option value="${year}">${year}</html:option> |
||
65 | <% |
||
66 | } |
||
67 | %> |
||
68 | </html:select> |
||
69 | </div> |
||
70 | </div> |
||
71 | |||
72 | |||
73 | <div class="form-group"> |
||
74 | <label class="control-label col-sm-2" for="semestre">Semestre:</label> |
||
75 | <div class="col-sm-10"> |
||
76 | <html:select styleClass="form-control" styleId="semestre" property="questionario.semestre"> |
||
77 | <html:option value="">Escolha semestre</html:option> |
||
78 | <html:option value="A">Anual</html:option> |
||
79 | <html:option value="S1">Semestre 1</html:option> |
||
80 | <html:option value="S2">Semestre 2</html:option> |
||
81 | <html:option value="T1">Trimestre 1</html:option> |
||
82 | <html:option value="T2">Trimestre 2</html:option> |
||
83 | <html:option value="T3">Trimestre 3</html:option> |
||
84 | <html:option value="T4">Trimestre 4</html:option> |
||
85 | </html:select> |
||
86 | </div> |
||
87 | </div> |
||
88 | |||
89 | |||
90 | </html:form> |