Commit 559ed92daedea8f0080d60a61a272bf7e32834b3

Authored by Miguel Barão
1 parent 0e95aad2
Exists in master and in 1 other branch dev

- added confirmation dialog to quit from test

Showing 1 changed file with 21 additions and 2 deletions   Show diff stats
templates/test.html
... ... @@ -84,7 +84,7 @@
84 84 % if t['practice']:
85 85 <li><a href="/results">Ver resultados</a></li>
86 86 % endif
87   - <li><a href="/logout"><span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> Sair</a></li>
  87 + <li><a data-toggle="modal" data-target="#sair" id="form-button-submit"><span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> Sair</a></li>
88 88 <!-- <li><a href="#">Change password</a></li> -->
89 89 </ul>
90 90 </li>
... ... @@ -285,7 +285,7 @@
285 285 </form>
286 286 </div>
287 287  
288   - <!-- Modal de confirmacao -->
  288 + <!-- Modal de confirmacao submissao -->
289 289 <div class="modal fade" id="confirmar" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
290 290 <div class="modal-dialog">
291 291 <div class="modal-content">
... ... @@ -304,6 +304,25 @@
304 304 </div>
305 305 </div>
306 306 </div>
  307 +
  308 + <!-- Modal de confirmacao sair -->
  309 + <div class="modal fade" id="sair" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  310 + <div class="modal-dialog">
  311 + <div class="modal-content">
  312 + <div class="modal-header">
  313 + <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  314 + <h4 class="modal-title">Deseja sair?</h4>
  315 + </div>
  316 + <div class="modal-body">
  317 + Se sair, será considerada desistência da prova e terá uma classificação de 0 valores.
  318 + </div>
  319 + <div class="modal-footer">
  320 + <button type="button" class="btn btn-success btn-lg" data-dismiss="modal">Não!</button>
  321 + <a href="/logout" class="btn btn-danger btn-lg" role="button">Sim, desistir do teste</a>
  322 + </div>
  323 + </div>
  324 + </div>
  325 + </div>
307 326 </div>
308 327  
309 328 <script src="/js/tabkey_in_textarea.js"></script>
... ...