Subversion Repositories bacoAlunos

Rev

Rev 1310 | Rev 1320 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1310 Rev 1312
Line 17... Line 17...
17
<%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %>
17
<%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %>
18
<jsp:useBean id="CourseUnitEvaluationForm" type="pt.estgp.estgweb.web.form.courseunits.CourseUnitEvaluationForm" scope="request"/>
18
<jsp:useBean id="CourseUnitEvaluationForm" type="pt.estgp.estgweb.web.form.courseunits.CourseUnitEvaluationForm" scope="request"/>
19
<jsp:useBean id="CourseUnitView" type="pt.estgp.estgweb.domain.views.CourseUnitView" scope="request"/>
19
<jsp:useBean id="CourseUnitView" type="pt.estgp.estgweb.domain.views.CourseUnitView" scope="request"/>
20
<%--<jsp:useBean id="CourseUnitProgramView" type="pt.estgp.estgweb.domain.views.CourseUnitProgramView" scope="request"/>--%>
20
<%--<jsp:useBean id="CourseUnitProgramView" type="pt.estgp.estgweb.domain.views.CourseUnitProgramView" scope="request"/>--%>
21
<jsp:useBean id="UserSession" type="pt.estgp.estgweb.domain.UserSession" scope="request"/>
21
<jsp:useBean id="UserSession" type="pt.estgp.estgweb.domain.UserSession" scope="request"/>
22
<div id="contentIntranet">
22
<baco:initCourseUnitEvaluationClearances name="CourseUnitView"/>
23
<div id="contentPane">
-
 
-
 
23
 
24
<html:errors/>
24
<html:errors/>
25
<jomm:messages/>
25
<jomm:messages/>
26
 
26
 
27
<script>
27
<script>
28
    //Manter a sessão activa para os docentes não perderem os dados
28
    //Manter a sessão activa para os docentes não perderem os dados
Line 53... Line 53...
53
    {
53
    {
54
        System.err.print(e.toString());
54
        System.err.print(e.toString());
55
        e.printStackTrace();
55
        e.printStackTrace();
56
    }*/
56
    }*/
57
 
57
 
-
 
58
    /*
58
    boolean closed = CourseUnitEvaluationForm.getCourseUnitEvaluationView().getCourseUnitEvaluation().isClosed();
59
    boolean closed = CourseUnitEvaluationForm.getCourseUnitEvaluationView().getCourseUnitEvaluation().isClosed();
59
    boolean teacherComplete = CourseUnitEvaluationForm.getCourseUnitEvaluationView().getCourseUnitEvaluation().isTeacherComplete();
60
    boolean teacherComplete = CourseUnitEvaluationForm.getCourseUnitEvaluationView().getCourseUnitEvaluation().isTeacherComplete();
60
    String activeYear = DaoFactory.getConfigurationDaoImpl().getCourseUnitEvaluationActiveYearCreateTransaction();
61
    String activeYear = DaoFactory.getConfigurationDaoImpl().getCourseUnitEvaluationActiveYearCreateTransaction();
61
    List<String> activeDegrees = DaoFactory.getConfigurationDaoImpl().getCourseUnitEvaluationActiveDegreesCreateTransaction();
62
    List<String> activeDegrees = DaoFactory.getConfigurationDaoImpl().getCourseUnitEvaluationActiveDegreesCreateTransaction();
62
    List<Long> activeCourseIds = DaoFactory.getConfigurationDaoImpl().getCourseUnitEvaluationActiveCourseIdsCreateTransaction();
63
    List<Long> activeCourseIds = DaoFactory.getConfigurationDaoImpl().getCourseUnitEvaluationActiveCourseIdsCreateTransaction();
63
 
64
 
64
    boolean isActiveYear = activeYear != null && CourseUnitView.getImportYear().equals(activeYear);
65
    boolean isActiveYear = activeYear != null && CourseUnitView.getImportYear().equals(activeYear);
65
    boolean isActiveDegree = activeDegrees!=null && activeDegrees.contains(CourseUnitView.getCourseView().getDegree());
66
    boolean isActiveDegree = activeDegrees!=null && activeDegrees.contains(CourseUnitView.getCourseView().getDegree());
66
    boolean isActiveCourseId = activeCourseIds!=null && activeCourseIds.contains(CourseUnitView.getCourseView().getId());
67
    boolean isActiveCourseId = activeCourseIds!=null && activeCourseIds.contains(CourseUnitView.getCourseView().getId());
67
 
68
 
68
    boolean activePeriod =
-
 
69
            CourseUnitView.isEvaluationOpenByAdmin() ||
-
 
70
                    (isActiveYear && (isActiveCourseId || isActiveDegree));
69
    boolean activePeriod = CourseUnitView.isEvaluationOpenByAdmin() || (isActiveYear && (isActiveCourseId || isActiveDegree));
71
    boolean activePeriodRegular =
-
 
72
                    (isActiveYear && (isActiveCourseId || isActiveDegree));
70
    boolean activePeriodRegular = (isActiveYear && (isActiveCourseId || isActiveDegree));
73
 
-
 
74
 
71
 
75
 
72
 
-
 
73
    boolean editCoordinatorPart = false;
-
 
74
    boolean editTeacherPart = false;
76
 
75
 
77
%>
-
 
78
<div class="seccao">
-
 
79
<h2>
-
 
80
    <bean:message key="courseunit.evaluation"/> - <%=CourseUnitView.getName()%> / <%=CourseUnitView.getImportYear()%>
76
    pt.estgp.estgweb.domain.User u = UserSession.getUser();
81
 
-
 
82
</h2>
-
 
83
<%
-
 
84
    if(!closed)
77
    if(u.isSuperuserOrAdmin())
85
    {
78
    {
86
%>
-
 
87
<p><bean:message key="courseunit.evaluation.warning"/></p>
79
        editCoordinatorPart = true;
88
<%
-
 
-
 
80
        editTeacherPart = true;
89
    }
81
    }
90
%>
-
 
91
 
-
 
92
    <%
82
    else
93
        boolean editCoordinatorPart = false;
-
 
94
        boolean editTeacherPart = false;
-
 
95
        pt.estgp.estgweb.domain.User u = UserSession.getUser();
-
 
96
        if(u.isSuperuserOrAdmin())
-
 
97
        {
83
    {
98
            editCoordinatorPart = true;
84
        if(u instanceof pt.estgp.estgweb.domain.Teacher)
99
            editTeacherPart = true;
-
 
100
        }
-
 
101
        else
-
 
102
        {
85
        {
103
            if(u instanceof pt.estgp.estgweb.domain.Teacher)
86
            pt.estgp.estgweb.domain.Teacher t = (pt.estgp.estgweb.domain.Teacher) u;
-
 
87
            if(t.isTeacherOfCourseUnit(CourseUnitView.getId()) || (CourseUnitView.getResponsableTeacher() != null && CourseUnitView.getResponsableTeacher().getId() == t.getId()))
104
            {
88
            {
105
                pt.estgp.estgweb.domain.Teacher t = (pt.estgp.estgweb.domain.Teacher) u;
-
 
106
                if(t.isTeacherOfCourseUnit(CourseUnitView.getId()) || (CourseUnitView.getResponsableTeacher() != null && CourseUnitView.getResponsableTeacher().getId() == t.getId()))
-
 
107
                {
-
 
108
                    editTeacherPart = true;
89
                editTeacherPart = true;
109
                }
90
            }
110
                if(CourseUnitView.getCourseView().getCoordinator() != null && (t.getId() == CourseUnitView.getCourseView().getCoordinator().getId() || t.hasRole(CourseUnitView.getCourseView().getValidationRole())))
91
            if(CourseUnitView.getCourseView().getCoordinator() != null && (t.getId() == CourseUnitView.getCourseView().getCoordinator().getId() || t.hasRole(CourseUnitView.getCourseView().getValidationRole())))
111
                {
92
            {
112
                    editCoordinatorPart = true;
93
                editCoordinatorPart = true;
113
                }
-
 
114
 
-
 
115
            }
94
            }
116
        }
95
        }
-
 
96
    }
117
%>
97
*/
118
 
98
 
-
 
99
%>
-
 
100
<%--
-
 
101
MAIS INFO
-
 
102
<p>Caro <%=UserSession.getName()%>, membro da <bean:message key="user.role.${CourseUnitView.courseView.validationRole}"/>,
-
 
103
                            está autorizado a reabrir o relatório de avaliação para o corpo docente da unidade de ${CourseUnitView.name} poder editar.</p>
-
 
104
 
-
 
105
<h2>Formulário em estado <label style="background-color: red">NÃO ENTREGUE</label> para edição</h2>
-
 
106
--%>
-
 
107
<div class="panel panel-primary">
-
 
108
    <div class="panel-heading">
-
 
109
        <bean:message key="courseunit.evaluation"/> - <%=CourseUnitView.getName()%> / <%=CourseUnitView.getImportYear()%>
119
 
110
 
120
    <%
111
        <%
-
 
112
            if( CourseUnitView.getEvaluationStreamId() !=null ){
-
 
113
        %>
-
 
114
        <span class="badge icon">
-
 
115
            <a href="javascript:invoqueDataVersionForm(${CourseUnitView.evaluationStreamId})"><span class="icon icon-history icon-large"></span></a>
-
 
116
        </span>
-
 
117
        <span class="badge icon">
-
 
118
            <a href="<%=request.getContextPath()%>/repositoryStream/<%=CourseUnitView.getEvaluationStreamId()%>">
-
 
119
                <span class="icon icon-file-pdf icon-large"/>
-
 
120
            </a>
-
 
121
        </span>
-
 
122
        <%
-
 
123
            }
-
 
124
        %>
121
 
125
 
-
 
126
    </div>
-
 
127
    <div class="panel-body">
-
 
128
        <baco:notClearOperation name="CourseUnitView" property="courseUnit" op="EVALUATION_INFO_ACTIVE">
-
 
129
            <div class="alert alert-info">
-
 
130
                <bean:message key="courseunit.evaluation.period.inactive"/>
-
 
131
            </div>
-
 
132
        </baco:notClearOperation>
-
 
133
        <baco:clearOperation name="CourseUnitView" property="courseUnit" op="EVALUATION_INFO_ACTIVE_SPECIAL_ADMIN">
-
 
134
            <div class="alert alert-warning">
-
 
135
                <bean:message key="courseunit.evaluation.period.admin.active"/>
-
 
136
            </div>
-
 
137
        </baco:clearOperation>
-
 
138
        <logic:equal value="true" name="CourseUnitEvaluationForm" property="courseUnitEvaluationView.fechar">
-
 
139
            <div class="alert alert-success"><bean:message key="courseunit.evaluation.dtp.info"/></div>
-
 
140
        </logic:equal>
-
 
141
 
-
 
142
        <div class="row-centered">
-
 
143
            <baco:clearOperation name="CourseUnitView" property="courseUnit" op="EVALUATION_INFO_STATE_EDIT">
-
 
144
                <div class="alert alert-info col-md-3 col-sm-3">
122
        //todo é necessário um servico para ver se tem estes papeis
145
                    <bean:message key="courseunit.evaluation.state.edit"/>
-
 
146
                </div>
-
 
147
                <div class="col-md-1 col-sm-1 vcenter alert"><span class="glyphicon glyphicon-chevron-right"/></div>
-
 
148
                <div class="alert alert-disabled col-md-3 col-sm-3">
-
 
149
                    <bean:message key="courseunit.evaluation.state.complete"/>
-
 
150
                </div>
-
 
151
                <div class="col-md-1 col-sm-1 vcenter alert"><span class="glyphicon glyphicon-chevron-right"/></div>
-
 
152
                <div class="alert alert-disabled col-md-3 col-sm-3">
-
 
153
                    <bean:message key="courseunit.evaluation.state.closed"/>
-
 
154
                </div>
-
 
155
            </baco:clearOperation>
123
        if((CourseUnitView.getResponsableTeacher() != null && CourseUnitView.getResponsableTeacher().getId() == UserSession.getUser().getId())
156
            <baco:clearOperation name="CourseUnitView" property="courseUnit" op="EVALUATION_INFO_STATE_COMPLETE">
-
 
157
                <div class="alert alert-info col-md-3 col-sm-3">
-
 
158
                    <bean:message key="courseunit.evaluation.state.edit"/>
124
                ||
159
                </div>
-
 
160
                <div class="col-md-1 col-sm-1 vcenter alert"><span class="glyphicon glyphicon-chevron-right"/></div>
-
 
161
                <div class="alert alert-info col-md-3 col-sm-3">
125
                CourseUnitView.isOwnedBy(UserSession.getUser(),false)
162
                    <bean:message key="courseunit.evaluation.state.complete"/>
126
                ||
163
                </div>
-
 
164
                <div class="col-md-1 col-sm-1 vcenter alert"><span class="glyphicon glyphicon-chevron-right"/></div>
127
                //Validation Role e o papel da comissão de curso
165
                <div class="alert alert-disabled col-md-3 col-sm-3">
128
                UserSession.getUser().hasRole(CourseUnitView.getCourseView().getValidationRole())
166
                    <bean:message key="courseunit.evaluation.state.closed"/>
-
 
167
                </div>
-
 
168
            </baco:clearOperation>
-
 
169
            <baco:clearOperation name="CourseUnitView" property="courseUnit" op="EVALUATION_INFO_STATE_CLOSED">
-
 
170
                <div class="alert alert-info col-md-3 col-sm-3">
-
 
171
                    <bean:message key="courseunit.evaluation.state.edit"/>
129
                ||
172
                </div>
-
 
173
                <div class="col-md-1 col-sm-1 vcenter alert"><span class="glyphicon glyphicon-chevron-right"/></div>
-
 
174
                <div class="alert alert-info col-md-3 col-sm-3">
130
                UserSession.getUser().hasRole(Globals.SERVICES_PROGRAMS_ROLE))
175
                    <bean:message key="courseunit.evaluation.state.complete"/>
-
 
176
                </div>
-
 
177
                <div class="col-md-1 col-sm-1 vcenter alert"><span class="glyphicon glyphicon-chevron-right"/></div>
-
 
178
                <div class="alert alert-info col-md-3 col-sm-3">
-
 
179
                    <bean:message key="courseunit.evaluation.state.closed"/>
-
 
180
                </div>
-
 
181
            </baco:clearOperation>
131
        {
182
        </div>
132
 
183
 
-
 
184
        <div class="row-centered">
-
 
185
            <div class="col-md-3 col-sm-3">
-
 
186
                <baco:clearOperation name="CourseUnitView" property="courseUnit" op="EVALUATION_TRANSITATE_TO_EDIT">
-
 
187
                    <html:form action="/user/courseUnitEvaluationController">
-
 
188
                        <input type="hidden" name="dispatch" value="openEvaluation">
-
 
189
                        <html:hidden property="courseUnitView.id"/>
-
 
190
                        <button type="submit" class="btn btn-default">
-
 
191
                            <bean:message key="courseunit.evaluation.transit.to.edition"/>
-
 
192
                        </button>
-
 
193
                    </html:form>
-
 
194
                </baco:clearOperation>
-
 
195
            </div>
-
 
196
            <div class="col-md-1 col-sm-1"></div>
-
 
197
            <div class="col-md-3 col-sm-3">
-
 
198
                <baco:clearOperation name="CourseUnitView" property="courseUnit" op="EVALUATION_TRANSITATE_TO_COMPLETE">
-
 
199
                    <button type="button" class="btn btn-default">
-
 
200
                        <bean:message key="courseunit.evaluation.transit.to.complete"/>
-
 
201
                    </button>
-
 
202
                </baco:clearOperation>
-
 
203
            </div>
-
 
204
            <div class="col-md-1 col-sm-1"></div>
-
 
205
            <div class="col-md-3 col-sm-3">
-
 
206
                <baco:clearOperation name="CourseUnitView" property="courseUnit" op="EVALUATION_TRANSITATE_TO_CLOSE">
-
 
207
                    <button type="button" class="btn btn-default">
-
 
208
                        <bean:message key="courseunit.evaluation.transit.to.closed"/>
-
 
209
                    </button>
-
 
210
                </baco:clearOperation>
-
 
211
            </div>
-
 
212
        </div>
133
 
213
 
134
            if(!activePeriod)
-
 
135
            {
214
    </div>
136
%>
-
 
137
                <h2>O periodo de avaliação desta unidade está <label style="background-color: red">ENCERRADO</label> independentemente do seu estado de validação. Apenas a administração tem autorização de excepcionalmente abrir a ficha para edição</h2>
215
    <div class="panel-body">
138
                <br/>
-
 
139
<%
-
 
140
            }
-
 
141
            if(!activePeriodRegular && activePeriod)
-
 
142
            {
-
 
143
            %>
-
 
144
            <h2>Esta unidade foi <label style="background-color: #00ff00">ABERTA</label> pela administração para efectuar processo de avaliação extraordinário</h2>
-
 
145
            <br/>
-
 
146
            <%
-
 
147
            }
-
 
148
 
216
 
149
            if(closed)
-
 
150
            {
-
 
151
%>
-
 
152
                <table>
-
 
153
                    <tr>
-
 
154
                        <td>
-
 
155
                            <table style="width: 100%" class="processActivity" cellpadding="0" cellspacing="0">
-
 
156
                                <tr>
-
 
157
                                    <td class="processActivityTail"><img src="<%=request.getContextPath()%>/imgs/process/leftProcess.gif"/></td>
-
 
158
                                    <td class="processActivityName" style="width: 100%">Criado</td>
-
 
159
                                    <td class="processActivityArrow"><img src="<%=request.getContextPath()%>/imgs/process/rightProcess.gif"/></td>
-
 
160
                                </tr>
-
 
161
                            </table>
-
 
162
                        </td>
-
 
163
                        <td>
-
 
164
                            <table style="width: 100%" class="processActivity" cellpadding="0" cellspacing="0">
-
 
165
                                <tr>
-
 
166
                                    <td class="processActivityTail"><img src="<%=request.getContextPath()%>/imgs/process/leftProcess.gif"/></td>
-
 
167
                                    <td class="processActivityName" style="width: 100%">Entregue</td>
-
 
168
                                    <td class="processActivityArrow"><img src="<%=request.getContextPath()%>/imgs/process/rightProcess.gif"/></td>
-
 
169
                                </tr>
-
 
170
                            </table>
-
 
171
                        </td>
-
 
172
                        <td>
-
 
173
                            <table style="width: 100%" class="processActivity" cellpadding="0" cellspacing="0">
-
 
174
                                <tr>
-
 
175
                                    <td class="processActivityTail"><img src="<%=request.getContextPath()%>/imgs/process/leftProcess.gif"/></td>
-
 
176
                                    <td class="processActivityName" style="width: 100%">Aceite</td>
-
 
177
                                    <td class="processActivityArrow"><img src="<%=request.getContextPath()%>/imgs/process/rightProcess.gif"/></td>
-
 
178
                                </tr>
-
 
179
                            </table>
-
 
180
                        </td>
-
 
181
                    </tr>
-
 
182
                </table>
-
 
183
                <p class="success">Este formulário foi <label style="background-color: green">ACEITE</label> pela <bean:message key="user.role.${CourseUnitView.courseView.validationRole}"/></p>
-
 
184
<%
-
 
185
                if(editCoordinatorPart && activePeriod)
-
 
186
                {
-
 
187
%>
-
 
188
                <html:form action="/user/courseUnitEvaluationController">
-
 
189
                    <input type="hidden" name="dispatch" value="openEvaluation">
-
 
190
                    <html:hidden property="courseUnitView.id"/>
-
 
191
 
-
 
192
                <p>Caro <%=UserSession.getName()%>, membro da <bean:message key="user.role.${CourseUnitView.courseView.validationRole}"/>,
-
 
193
                    está autorizado a reabrir o relatório de avaliação para o corpo docente da unidade de ${CourseUnitView.name} poder editar.</p>
-
 
194
                    <input type="submit" value="Reabrir para edição (Comissão de Curso)"/> (Esta operação está disponível apenas a membros da Comissão de Curso)
-
 
195
                </html:form>
-
 
196
 
217
 
197
<%
-
 
198
                }
-
 
199
            }
-
 
200
            else if(!closed && teacherComplete)
-
 
201
            {
-
 
202
%>
-
 
203
                <h2>Relatório em estado <label style="background-color: yellow">ENTREGUE</label> à coordenação, aguarde que a coordenação aceite o relatório ou o abra novamente</h2>
-
 
204
 
218
 
205
                <table>
-
 
206
                    <tr>
-
 
207
                        <td>
-
 
208
                            <table style="width: 100%" class="processActivity" cellpadding="0" cellspacing="0">
-
 
209
                                <tr>
-
 
210
                                    <td class="processActivityTail"><img src="<%=request.getContextPath()%>/imgs/process/leftProcess.gif"/></td>
-
 
211
                                    <td class="processActivityName" style="width: 100%">Criado</td>
-
 
212
                                    <td class="processActivityArrow"><img src="<%=request.getContextPath()%>/imgs/process/rightProcess.gif"/></td>
-
 
213
                                </tr>
-
 
214
                            </table>
-
 
215
                        </td>
-
 
216
                        <td>
-
 
217
                            <table style="width: 100%" class="processActivity" cellpadding="0" cellspacing="0">
-
 
218
                                <tr>
-
 
219
                                    <td class="processActivityTail"><img src="<%=request.getContextPath()%>/imgs/process/leftProcess.gif"/></td>
-
 
220
                                    <td class="processActivityName" style="width: 100%">Entregue</td>
-
 
221
                                    <td class="processActivityArrow"><img src="<%=request.getContextPath()%>/imgs/process/rightProcess.gif"/></td>
-
 
222
                                </tr>
-
 
223
                            </table>
-
 
224
                        </td>
-
 
225
                        <td>
-
 
226
                            <table style="width: 100%" class="processActivity" cellpadding="0" cellspacing="0">
-
 
227
                                <tr>
-
 
228
                                    <td class="processActivityTail"><img src="<%=request.getContextPath()%>/imgs/process/leftProcessGray.gif"/></td>
-
 
229
                                    <td class="processActivityNameGray" style="width: 100%">Aceite</td>
-
 
230
                                    <td class="processActivityArrow"><img src="<%=request.getContextPath()%>/imgs/process/rightProcessGray.gif"/></td>
-
 
231
                                </tr>
-
 
232
                            </table>
-
 
233
                        </td>
-
 
234
                    </tr>
-
 
235
 
219
 
-
 
220
        <html:form styleId="formEval" styleClass="form-horizontal" action="/user/courseUnitEvaluationController">
-
 
221
            <input type="hidden" id="dispatch" name="dispatch" value="saveEvaluation">
-
 
222
            <html:hidden property="id"/>
-
 
223
            <html:hidden property="courseUnitView.id"/>
236
 
224
 
237
 
225
 
238
                </table>
-
 
239
<%
-
 
240
                    if(editCoordinatorPart && activePeriod)
-
 
241
                    {
-
 
242
%>
-
 
243
                <html:form action="/user/courseUnitEvaluationController">
-
 
244
                    <input type="hidden" name="dispatch" value="openEvaluation">
-
 
245
                    <html:hidden property="courseUnitView.id"/>
-
 
246
 
-
 
247
                    <p>Caro <%=UserSession.getName()%>, membro da <bean:message key="user.role.${CourseUnitView.courseView.validationRole}"/>,
-
 
248
                        está autorizado a reabrir o relatório de avaliação para o corpo docente da unidade de ${CourseUnitView.name}. poder editar</p>
-
 
249
                    <input type="submit" value="Reverter o estado ENTREGUE (Comissão de Curso)"/> (Esta operação está disponível apenas a membros da Comissão de Curso)
-
 
250
                </html:form>
-
 
251
 
226
 
252
<%
-
 
253
                    }
227
            <div class="panel panel-default">
254
            }
228
                <div class="panel-heading">
-
 
229
                    Dados alterados pelo Docente da Unidade
255
            else
230
                </div>
256
            {
231
                <div class="panel-body">
257
%>
-
 
258
                    <h2>Formulário em estado <label style="background-color: red">NÃO ENTREGUE</label> para edição</h2>
232
                    <div id="autosave"></div>
259
 
233
 
-
 
234
                    <h3>Dados alterados pelo Docente da Unidade</h3>
260
                    <table>
235
                    <table class="tablesorter-blue"  width="100%">
261
                        <tr>
236
                        <tr>
-
 
237
                            <th rowspan="2">
-
 
238
                                Nº Alunos Inscritos
262
                            <td>
239
                            </th>
-
 
240
                            <th rowspan="2">
263
                                <table style="width: 100%" class="processActivity" cellpadding="0" cellspacing="0">
241
                                Nº de alunos sem elementos de avaliação
-
 
242
                            </th>
-
 
243
                            <th colspan="5">
-
 
244
                                Nº de alunos aprovados em
264
                                    <tr>
245
                            </th>
-
 
246
                            <th rowspan="2">
265
                                        <td class="processActivityTail"><img src="<%=request.getContextPath()%>/imgs/process/leftProcess.gif"/></td>
247
                                Aprovados com a classificação entre 10 e 13 valores (%)
-
 
248
                            </th>
-
 
249
                            <th rowspan="2">
266
                                        <td class="processActivityName" style="width: 100%">Criado</td>
250
                                Aprovados com a classificação entre 14 e 16 valores (%)
-
 
251
                            </th>
-
 
252
                            <th rowspan="2">
267
                                        <td class="processActivityArrow"><img src="<%=request.getContextPath()%>/imgs/process/rightProcess.gif"/></td>
253
                                Aprovados com a classificação entre 17 e 20 valores (%)
268
                                    </tr>
254
                            </th>
-
 
255
                        </tr>
-
 
256
                        <tr>
-
 
257
                            <th>Avaliação de frequência</th>
-
 
258
                            <th>Exame Época Normal</th>
-
 
259
                            <th>Exame Época Recurso</th>
-
 
260
                            <th>Exame Época Especial</th>
269
                                </table>
261
                            <th>Total</th>
270
                            </td>
262
                        </tr>
271
                            <td>
263
                        <tr>
-
 
264
                            <td align="center">
272
                                <table style="width: 100%" class="processActivity" cellpadding="0" cellspacing="0">
265
                                <html:text styleClass="form-control" size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosInscritos"/>
273
                                    <tr>
266
                            </td>
-
 
267
                            <td align="center">
274
                                        <td class="processActivityTail"><img src="<%=request.getContextPath()%>/imgs/process/leftProcessGray.gif"/></td>
268
                                <html:text styleClass="form-control"  size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosSemElementosAvaliacao"/>
-
 
269
                            </td>
275
                                        <td class="processActivityNameGray" style="width: 100%">Entregue</td>
270
                            <td align="center">
276
                                        <td class="processActivityArrow"><img src="<%=request.getContextPath()%>/imgs/process/rightProcessGray.gif"/></td>
271
                                <html:text styleClass="form-control"  size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosAprovFrequencia"/>
277
                                    </tr>
272
                            </td>
-
 
273
                            <td align="center">
-
 
274
                                <html:text styleClass="form-control"  size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosAprovNormal"/>
278
                                </table>
275
                            </td>
-
 
276
                            <td align="center">
-
 
277
                                <html:text styleClass="form-control"  size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosAprovRecurso"/>
279
                            </td>
278
                            </td>
-
 
279
                            <td align="center">
-
 
280
                                <html:text styleClass="form-control"  size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosAprovEspecial"/>
280
                            <td>
281
                            </td>
-
 
282
                            <td align="center">
281
                                <table style="width: 100%" class="processActivity" cellpadding="0" cellspacing="0">
283
                                <html:text styleClass="form-control"  size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosAprovTotal"/>
282
                                    <tr>
284
                            </td>
-
 
285
                            <td align="center">
283
                                        <td class="processActivityTail"><img src="<%=request.getContextPath()%>/imgs/process/leftProcessGray.gif"/></td>
286
                                <html:text styleClass="form-control"  size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosAprov1013"/>
-
 
287
                            </td>
284
                                        <td class="processActivityNameGray" style="width: 100%">Aceite</td>
288
                            <td align="center">
285
                                        <td class="processActivityArrow"><img src="<%=request.getContextPath()%>/imgs/process/rightProcessGray.gif"/></td>
289
                                <html:text styleClass="form-control"  size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosAprov1416"/>
286
                                    </tr>
290
                            </td>
287
                                </table>
291
                            <td align="center">
-
 
292
                                <html:text styleClass="form-control"  size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosAprov1720"/>
288
                            </td>
293
                            </td>
289
                        </tr>
294
                        </tr>
290
                    </table>
295
                    </table>
291
<%
-
 
292
            }
-
 
293
 
296
 
294
%>
-
 
295
 
297
 
-
 
298
                    <h3>Auto-avaliação</h3>
-
 
299
                    <table class="tablesorter-blue" width="100%">
-
 
300
                        <tr>
-
 
301
                            <th>Apreciação dos resultados quantitativos obtidos pelos estudantes</th>
-
 
302
                            <td width="80%">
-
 
303
                                <html:textarea styleClass="form-control" style="width:100%;height: 200px" property="courseUnitEvaluationView.courseUnitEvaluation.qualApreciacaoQuantitivos"/>
-
 
304
                            </td>
-
 
305
                        </tr>
-
 
306
                        <tr>
-
 
307
                            <th>Apreciação do funcionamento da UC<br/>
-
 
308
                                (Condições de funcionamento da UC; problemas detetados; identificação de práticas pedagógicas de mérito ou deficientes; etc.)</th>
-
 
309
                            <td  width="80%">
-
 
310
                                <html:textarea styleClass="form-control" style="width:100%;height: 200px" property="courseUnitEvaluationView.courseUnitEvaluation.qualApreciacaoUC"/>
-
 
311
                            </td>
-
 
312
                        </tr>
-
 
313
                        <tr>
-
 
314
                            <th>Apreciação do cumprimento do programa da UC<br/>
-
 
315
                                (Adequação das metodologias de ensino/aprendizagem utilizadas; competências efetivamente adquiridas e cumprimento dos conteúdos planificados)
-
 
316
                            </th>
-
 
317
                            <td  width="80%">
-
 
318
                                <html:textarea styleClass="form-control" style="width:100%;height: 200px" property="courseUnitEvaluationView.courseUnitEvaluation.qualApreciacaoCumprimentoPrograma"/>
-
 
319
                            </td>
-
 
320
                        </tr>
-
 
321
                        <tr>
-
 
322
                            <th>
-
 
323
                                Conclusões<br/>
-
 
324
                                (Pontos fortes e fracos; sugestões de melhoria e respetivo plano de ação para a sua concretização)
-
 
325
                            </th>
-
 
326
                            <td  width="80%">
-
 
327
                                <html:textarea styleClass="form-control" style="width:100%;height: 200px" property="courseUnitEvaluationView.courseUnitEvaluation.qualConclusoes"/>
-
 
328
                            </td>
-
 
329
                        </tr>
-
 
330
                    </table>
-
 
331
 
-
 
332
                    <baco:clearOperation name="CourseUnitView" property="courseUnit" op="EVALUATION_EDITSAVE">
-
 
333
                        <button type="button" class="btn btn-default" onclick="set(form,'saveEvaluation');submitFormWaitAutoSave(form);"><bean:message key="save"/></button>
-
 
334
                    </baco:clearOperation>
296
 
335
 
-
 
336
                    <baco:clearOperation name="CourseUnitView" property="courseUnit" op="EVALUATION_TRANSITATE_TO_COMPLETE">
-
 
337
                        <button type="button" class="btn btn-default" onclick="set(form,'teacherCompleteEvaluation');submitFormWaitAutoSave(form);"><bean:message key="deliverEvaluation"/></button>
297
<!-- Modal -->
338
                    </baco:clearOperation>
298
 
339
 
299
<!-- Modal -->
-
 
300
<div class="modal fade" id="myModal" role="dialog" >
340
                    <baco:clearOperation name="CourseUnitView" property="courseUnit" op="EVALUATION_TRANSITATE_TO_CLOSE">
301
    <div class="modal-dialog" data-width="760" style="display: block; width: 760px; margin-left: -380px; margin-top: 50px;" aria-hidden="false">
341
                        <button type="button" class="btn btn-default" onclick="set(form,'publishEvaluation');submitFormWaitAutoSave(form);">VALIDAR e FECHAR pela Comissão de Curso</button>
-
 
342
                    </baco:clearOperation>
302
 
343
 
303
        <!-- Modal content-->
-
 
304
        <div class="modal-content">
-
 
305
            <div class="modal-header">
-
 
306
 
344
 
307
                <h1 class="modal-title">Envio em curso</h1>
345
                </div>
308
            </div>
346
            </div>
309
            <div class="modal-body">
-
 
310
                <p>O relatório está a ser enviado ao sistema... por favor aguarde <img src="<%=request.getContextPath()%>/imgs/wait.gif"/></p>
-
 
311
 
347
 
312
            </div>
-
 
313
            <div class="modal-footer">
-
 
314
 
348
 
315
            </div>
-
 
316
        </div>
349
        </html:form>
-
 
350
 
317
 
351
 
318
    </div>
352
    </div>
319
</div>
353
</div>
-
 
354
 
-
 
355
 
-
 
356
 
-
 
357
 
-
 
358
 
-
 
359
<baco:clearOperation name="CourseUnitView" property="courseUnit" op="EVALUATION_EDITSAVE">
-
 
360
 
-
 
361
    <!-- Modal SAVE -->
-
 
362
    <!-- Modal -->
-
 
363
    <div class="modal fade" id="myModal" role="dialog" >
-
 
364
        <div class="modal-dialog" data-width="760" style="display: block; width: 760px; margin-top: 50px;" aria-hidden="false">
-
 
365
 
-
 
366
            <!-- Modal content-->
-
 
367
            <div class="modal-content">
-
 
368
                <div class="modal-header">
-
 
369
 
-
 
370
                    <h1 class="modal-title"><bean:message key="courseunit.evaluation.sending.report.title"/></h1>
-
 
371
                </div>
-
 
372
                <div class="modal-body">
-
 
373
                    <p>
-
 
374
                        <bean:message key="courseunit.evaluation.sending.report.text"/> <img src="<%=request.getContextPath()%>/imgs/wait.gif"/>
-
 
375
                    </p>
-
 
376
                </div>
-
 
377
                <div class="modal-footer">
-
 
378
 
-
 
379
                </div>
-
 
380
            </div>
-
 
381
 
-
 
382
        </div>
-
 
383
    </div>
-
 
384
 
320
    <script>
385
    <script>
321
        function submitFormWaitAutoSave()
386
        function submitFormWaitAutoSave()
322
        {
387
        {
323
            stopAutoSave = true;
388
            stopAutoSave = true;
324
            $('#myModal').modal({
389
            $('#myModal').modal({
Line 327... Line 392...
327
            //esperar se houver algum update a executar 1500 segundos é o maximo de espera
392
            //esperar se houver algum update a executar 1500 segundos é o maximo de espera
328
            //se a pagina não recarregar e porque a thread parou
393
            //se a pagina não recarregar e porque a thread parou
329
            setTimeout("submitForm()",40000);
394
            setTimeout("submitForm()",40000);
330
        }
395
        }
331
 
396
 
332
        //function submitForm()
397
        function submitForm()
333
        //{
398
        {
334
        //    $("#formEdit").submit();
399
            $("#formEdit").submit();
335
       // }
400
        }
336
 
401
 
337
        $( document ).ready(function() {
402
        $( document ).ready(function() {
338
            <%
-
 
339
            if(!activePeriod)
-
 
340
            {
403
 
341
                %>
-
 
342
                $("#formEdit :input").attr("disabled", true);
404
            <baco:notClearOperation name="CourseUnitView" property="courseUnit" op="EVALUATION_INFO_ACTIVE">
343
                <%
-
 
344
            }
-
 
345
            else if(closed)
-
 
346
            {
-
 
347
            %>
-
 
348
                $("#formEdit :input").attr("disabled", true);
405
                $("#formEdit :input").attr("disabled", true);
349
                <%
406
            </baco:notClearOperation>
350
            }
407
 
351
            else if(!editTeacherPart && !editCoordinatorPart)
408
            <baco:clearOperation name="CourseUnitView" property="courseUnit" op="EVALUATION_INFO_STATE_CLOSED">
352
            {
-
 
353
                %>
-
 
354
                $("#formEdit :input").attr("disabled", true);
409
                $("#formEdit :input").attr("disabled", true);
355
                <%
-
 
356
            }
-
 
357
            else
-
 
358
            {
-
 
359
                %>
-
 
360
                setTimeout("serData()",5000);
410
            </baco:clearOperation>
361
                <%
-
 
362
            }
-
 
363
            %>
-
 
364
 
411
 
-
 
412
            <baco:notClearOperation name="CourseUnitView" property="courseUnit" op="EVALUATION_PERSIST_TEACHER_PART">
-
 
413
                <baco:notClearOperation name="CourseUnitView" property="courseUnit" op="EVALUATION_PERSIST_COMISSION_PART">
-
 
414
                    $("#formEdit :input").attr("disabled", true);
-
 
415
                </baco:notClearOperation>
-
 
416
            </baco:notClearOperation>
365
 
417
 
-
 
418
            <baco:clearOperation name="CourseUnitView" property="courseUnit" op="EVALUATION_EDITSAVE">
-
 
419
                setTimeout("serData()",5000);
-
 
420
            </baco:clearOperation>
366
 
421
 
367
        });
422
        });
-
 
423
 
368
        var stopAutoSave = false;
424
        var stopAutoSave = false;
369
 
425
 
370
        function serData()
426
        function serData()
371
        {
427
        {
372
            if(stopAutoSave)
428
            if(stopAutoSave)
Line 379... Line 435...
379
                $("#dispatch").val("saveEvaluation");
435
                $("#dispatch").val("saveEvaluation");
380
                var data = $("#formEval").serialize().replace(/%0D%0A/g, '%0A').replace(/\r?\n/g, "\r\n");
436
                var data = $("#formEval").serialize().replace(/%0D%0A/g, '%0A').replace(/\r?\n/g, "\r\n");
381
                //alert(data);
437
                //alert(data);
382
 
438
 
383
                //alert($("#dispatch").val())
439
                //alert($("#dispatch").val())
384
                $("#autosave").html("Enviando...");
440
                $("#autosave").html('<div class="alert alert-info">Enviando ...</div>');
385
                $.ajax({
441
                $.ajax({
386
                    url: "<%=request.getContextPath()%>/user/courseUnitEvaluationController.do",
442
                    url: "<%=request.getContextPath()%>/user/courseUnitEvaluationController.do",
387
                    type: "POST",
443
                    type: "POST",
388
                    data: data + "&json=true",
444
                    data: data + "&json=true",
389
                    dataType: "json",
445
                    dataType: "json",
390
                    success: function(resposta) {
446
                    success: function(resposta) {
391
                        if(resposta.service && resposta.service == "ok")
447
                        if(resposta.service && resposta.service == "ok")
392
                            $("#autosave").html("Salvo Automaticamente (Apenas Dados, não gerou PDF, para gerar PDF terá de salvar o docente)");
448
                            $("#autosave").html('<div class="alert alert-success">Salvo Automaticamente (Apenas Dados, não gerou PDF, para gerar PDF terá de salvar o docente)</div>');
393
                        else
449
                        else
394
                            $("#autosave").html("Deve salvar o seu relatório periodicamente");
450
                            $("#autosave").html('<div class="alert alert-warning">Deve salvar o seu relatório periodicamente</div>');
395
                        setTimeout("serData()",5000);
451
                        setTimeout("serData()",5000);
396
                    },
452
                    },
397
                    error: function() {
453
                    error: function() {
398
                        $("#autosave").html("Erro de comunicação, tentando novamente em 5 segundos");
454
                        $("#autosave").html('<div class="alert alert-danger">Erro de comunicação, tentando novamente em 5 segundos</div>');
399
                        setTimeout("serData()",5000);
455
                        setTimeout("serData()",5000);
400
                    }
456
                    }
401
                });
457
                });
402
               /* $.post('<%=request.getContextPath()%>/user/courseUnitEvaluationController.do', data + "&json=true",
-
 
403
                        function(resposta)
-
 
404
                        {
-
 
405
                            if(resposta.service && resposta.service == "ok")
-
 
406
                                $("#autosave").html("Salvo Automaticamente (Apenas Dados, não gerou PDF, para gerar PDF terá de salvar o docente)");
-
 
407
                            else
-
 
408
                                $("#autosave").html("Deve salvar o seu relatório periodicamente");
-
 
409
                            setTimeout("serData()",5000);
-
 
410
                        }
-
 
411
 
-
 
412
                );*/
-
 
413
 
-
 
414
 
-
 
415
            }
458
            }
416
        }
459
        }
417
 
460
 
418
    </script>
461
    </script>
419
<div>
-
 
420
   <a target="_blank" href="<%=request.getContextPath()%>/user/data.jsp?id=<%=CourseUnitView.getEvaluationStreamId()%>">Ver versões salvas pelos docentes</a>
-
 
421
</div>
-
 
422
<div id="formEdit">
462
</baco:clearOperation>
423
    <html:form styleId="formEval" action="/user/courseUnitEvaluationController">
-
 
424
        <input type="hidden" id="dispatch" name="dispatch" value="saveEvaluation">
-
 
425
        <html:hidden property="id"/>
-
 
426
        <html:hidden property="courseUnitView.id"/>
-
 
427
 
463
428
 
464
429
 
465
430
        <%--DOCENTE--%>
-
 
431
    <logic:equal value="true" name="CourseUnitEvaluationForm" property="courseUnitEvaluationView.fechar">
-
 
432
        <p class="alert-success">Esta avaliação será publicada no DTP em formato PDF após ordens dos orgãos competentes</p>
-
 
433
    </logic:equal>
-
 
434
 
466
435
    <%
-
 
436
    if(closed || (!activePeriod && CourseUnitView.getEvaluationStreamId() !=null ))
-
 
437
    {
-
 
438
    %>
-
 
439
        <%
-
 
440
            if(editCoordinatorPart || editTeacherPart)
-
 
441
            {
-
 
442
        %>
-
 
443
        <p>
-
 
444
            <a href="<%=request.getContextPath()%>/repositoryStream/<%=CourseUnitView.getEvaluationStreamId()%>">Relatório de avaliação em PDF
-
 
445
                <img src="<%=request.getContextPath()%>/imgs/mime/pdf.gif"/>
-
 
446
            </a>
-
 
447
        </p>
-
 
448
        <%
-
 
449
            }
-
 
450
        %>
-
 
451
    <%
-
 
452
    }
-
 
453
    %>
-
 
454
    <div id="autosave"></div>
-
 
455
    <table class="dataTable tableDisabled" width="100%">
-
 
456
        <tr>
-
 
457
            <th colspan="2">Dados alterados pelo Docente da Unidade</th>
-
 
458
        </tr>
-
 
459
 
-
 
460
        <tr>
-
 
461
            <th align="right"><bean:message key="courseunit.evaluation.mapa1"/></th>
-
 
462
            <td  width="80%">
-
 
463
                <h3><bean:message key="courseunit.evaluation.mapa1.desc"/></h3>
-
 
464
 
-
 
465
                <table class="dataTable" width="100%">
-
 
466
                    <tr>
-
 
467
                        <th rowspan="2">
-
 
468
                            Nº Alunos Inscritos
-
 
469
                        </th>
-
 
470
                        <th rowspan="2">
-
 
471
                            Nº de alunos sem elementos de avaliação
-
 
472
                        </th>
-
 
473
                        <th colspan="5">
-
 
474
                            Nº de alunos aprovados em
-
 
475
                        </th>
-
 
476
                        <th rowspan="2">
-
 
477
                            Aprovados com a classificação entre 10 e 13 valores (%)
-
 
478
                        </th>
-
 
479
                        <th rowspan="2">
-
 
480
                            Aprovados com a classificação entre 14 e 16 valores (%)
-
 
481
                        </th>
-
 
482
                        <th rowspan="2">
-
 
483
                            Aprovados com a classificação entre 17 e 20 valores (%)
-
 
484
                        </th>
-
 
485
                    </tr>
-
 
486
                    <tr>
-
 
487
                        <th>Avaliação de frequência</th>
-
 
488
                        <th>Exame Época Normal</th>
-
 
489
                        <th>Exame Época Recurso</th>
-
 
490
                        <th>Exame Época Especial</th>
-
 
491
                        <th>Total</th>
-
 
492
                    </tr>
-
 
493
                    <tr>
-
 
494
                        <td align="center">
-
 
495
                            <html:text size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosInscritos"/>
-
 
496
                        </td>
-
 
497
                        <td align="center">
-
 
498
                            <html:text size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosSemElementosAvaliacao"/>
-
 
499
                        </td>
-
 
500
                        <td align="center">
-
 
501
                            <html:text size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosAprovFrequencia"/>
-
 
502
                        </td>
-
 
503
                        <td align="center">
-
 
504
                            <html:text size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosAprovNormal"/>
-
 
505
                        </td>
-
 
506
                        <td align="center">
-
 
507
                            <html:text size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosAprovRecurso"/>
-
 
508
                        </td>
-
 
509
                        <td align="center">
-
 
510
                            <html:text size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosAprovEspecial"/>
-
 
511
                        </td>
-
 
512
                        <td align="center">
-
 
513
                            <html:text size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosAprovTotal"/>
-
 
514
                        </td>
-
 
515
                        <td align="center">
-
 
516
                            <html:text size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosAprov1013"/>
-
 
517
                        </td>
-
 
518
                        <td align="center">
-
 
519
                            <html:text size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosAprov1416"/>
-
 
520
                        </td>
-
 
521
                        <td align="center">
-
 
522
                            <html:text size="4" property="courseUnitEvaluationView.courseUnitEvaluation.numAlunosAprov1720"/>
-
 
523
                        </td>
-
 
524
                    </tr>
-
 
525
                </table>
-
 
526
            </td>
-
 
527
        </tr>
-
 
528
        <tr>
-
 
529
            <th>
-
 
530
                Auto-avaliação
-
 
531
            </th>
-
 
532
            <td>
-
 
533
                <table class="dataTable" width="100%">
-
 
534
                    <tr>
-
 
535
                        <th>Apreciação dos resultados quantitativos obtidos pelos estudantes</th>
-
 
536
                        <td width="80%">
-
 
537
                            <html:textarea style="width:100%;height: 200px" property="courseUnitEvaluationView.courseUnitEvaluation.qualApreciacaoQuantitivos"/>
-
 
538
                        </td>
-
 
539
                    </tr>
-
 
540
                    <tr>
-
 
541
                        <th>Apreciação do funcionamento da UC<br/>
-
 
542
                            (Condições de funcionamento da UC; problemas detetados; identificação de práticas pedagógicas de mérito ou deficientes; etc.)</th>
-
 
543
                        <td  width="80%">
-
 
544
                            <html:textarea style="width:100%;height: 200px" property="courseUnitEvaluationView.courseUnitEvaluation.qualApreciacaoUC"/>
-
 
545
                        </td>
-
 
546
                    </tr>
-
 
547
                    <tr>
-
 
548
                        <th>Apreciação do cumprimento do programa da UC<br/>
-
 
549
                            (Adequação das metodologias de ensino/aprendizagem utilizadas; competências efetivamente adquiridas e cumprimento dos conteúdos planificados)
-
 
550
                        </th>
-
 
551
                        <td  width="80%">
-
 
552
                            <html:textarea style="width:100%;height: 200px" property="courseUnitEvaluationView.courseUnitEvaluation.qualApreciacaoCumprimentoPrograma"/>
-
 
553
                        </td>
-
 
554
                    </tr>
-
 
555
                    <tr>
-
 
556
                        <th>
-
 
557
                            Conclusões<br/>
-
 
558
                            (Pontos fortes e fracos; sugestões de melhoria e respetivo plano de ação para a sua concretização)
-
 
559
                        </th>
-
 
560
                        <td  width="80%">
-
 
561
                            <html:textarea style="width:100%;height: 200px" property="courseUnitEvaluationView.courseUnitEvaluation.qualConclusoes"/>
-
 
562
                        </td>
-
 
563
                    </tr>
-
 
564
                </table>
-
 
565
            </td>
-
 
566
        </tr>
-
 
567
        <tr>
-
 
568
            <td colspan="2">
-
 
569
            <%
-
 
570
 
-
 
571
            if(activePeriod && !teacherComplete && !closed && (editCoordinatorPart || editTeacherPart))
-
 
572
            {
-
 
573
            %>
-
 
574
 
-
 
575
            <input type="button" value="<bean:message key="save"/>" onclick="set(form,'saveEvaluation');submitFormWaitAutoSave(form);"/>
-
 
576
 
-
 
577
            <%
-
 
578
            }
-
 
579
 
-
 
580
            if(activePeriod && !closed && !teacherComplete && editTeacherPart)
-
 
581
                {
-
 
582
            %>
-
 
583
 
-
 
584
            <input type="button" value="<bean:message key="deliverEvaluation"/>" onclick="set(form,'teacherCompleteEvaluation');submitFormWaitAutoSave(form);"/>
-
 
585
 
-
 
586
            <%
-
 
587
            }
-
 
588
 
-
 
589
 
-
 
590
            if(activePeriod && !closed && editCoordinatorPart)
-
 
591
                {
-
 
592
            %>
-
 
593
 
-
 
594
            <input type="button" value="VALIDAR e FECHAR pela Comissão de Curso" onclick="set(form,'publishEvaluation');submitFormWaitAutoSave(form);"/>
-
 
595
            <%
-
 
596
                }
-
 
597
            %>
-
 
598
            </td>
-
 
599
 
-
 
600
        </tr>
-
 
601
    </table>
-
 
602
 
-
 
603
 
-
 
604
</html:form>
-
 
605
    <%
-
 
606
        }
-
 
607
    %>
-
 
608
</div>
-
 
609
</div>
-
 
610
</div>
-
 
611
</div>
-
 
612
 
467