Commit 906fa9231416a487bff87fbc20e9230627bc1970
1 parent
bbbaec78
Exists in
master
and in
1 other branch
- Modal dialog for submission confirmation
Showing
2 changed files
with
25 additions
and
2 deletions
Show diff stats
BUGS.md
| ... | ... | @@ -2,7 +2,6 @@ |
| 2 | 2 | |
| 3 | 3 | # BUGS |
| 4 | 4 | |
| 5 | -- modal a pedir confirmação de submissão. | |
| 6 | 5 | - implementar singlepage/multipage |
| 7 | 6 | - numeros das perguntas não fazem sentido quando há caixas de informação |
| 8 | 7 | - testar regex na definicao das perguntas. como se faz rawstring em yaml? singlequote? problemas de backslash??? sim... necessário fazer \\ em varios casos, mas não é claro! e.g. \n é convertido em espaço mas \w é convertido em \\ e w. |
| ... | ... | @@ -15,6 +14,7 @@ |
| 15 | 14 | - criar perguntas de outros tipos, e.g. associação, ordenação, varios textinput |
| 16 | 15 | |
| 17 | 16 | # FIXED |
| 17 | +- modal a pedir confirmação de submissão. | |
| 18 | 18 | - pontos devem estar normalizados escala 0-20 |
| 19 | 19 | - mostrar numero de alunos online em /students |
| 20 | 20 | - mostrar cotacao das perguntas, show_points, default:False | ... | ... |
templates/test.html
| ... | ... | @@ -202,9 +202,32 @@ |
| 202 | 202 | </div> <!-- ui-corner-all custom-corners --> |
| 203 | 203 | % endfor |
| 204 | 204 | <hr> |
| 205 | - <button form="test" type="submit" value="submit" class="btn btn-danger drop-shadow"> Submeter Teste </button> | |
| 205 | + <button type="button" class="btn btn-danger drop-shadow" data-toggle="modal" data-target="#confirmar"> | |
| 206 | + Submeter teste | |
| 207 | + </button> | |
| 206 | 208 | </form> |
| 207 | 209 | </div> |
| 210 | + | |
| 211 | + | |
| 212 | + <!-- Modal de confirmacao --> | |
| 213 | + <div class="modal fade" id="confirmar" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
| 214 | + <div class="modal-dialog"> | |
| 215 | + <div class="modal-content"> | |
| 216 | + <div class="modal-header"> | |
| 217 | + <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | |
| 218 | + <h4 class="modal-title" id="myModalLabel">Deseja submeter o teste?</h4> | |
| 219 | + </div> | |
| 220 | + <div class="modal-body"> | |
| 221 | + Se submeter, o teste será enviado para classificação e já não poderá voltar atrás. | |
| 222 | + Veja se respondeu a todas as questões e desactive as que não pretende classificar. | |
| 223 | + </div> | |
| 224 | + <div class="modal-footer"> | |
| 225 | + <button type="button" class="btn btn-success btn-lg" data-dismiss="modal">Não!</button> | |
| 226 | + <button form="test" type="submit" class="btn btn-danger">Sim, submeter</button> | |
| 227 | + </div> | |
| 228 | + </div> | |
| 229 | + </div> | |
| 230 | + </div> | |
| 208 | 231 | </div> |
| 209 | 232 | |
| 210 | 233 | </body> | ... | ... |