Commit 6c831b0d4625683cbeb0cc6872e9df844eaddf68

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

- information are now panels numbered, instead of wells.

Showing 3 changed files with 21 additions and 3 deletions   Show diff stats
BUGS.md
... ... @@ -2,10 +2,10 @@
2 2  
3 3 # BUGS
4 4  
5   -- information points é definido onde? test.y ou questions.py?
  5 +- se database for mal configurada, é criada uma base de dados vazia e rebenta na autenticacao.
6 6 - hash das passwords obtidas da concatenacao do numero de aluno com password (evita que passwords repetidas sejam detectadas).
7 7 - mostrar erro quando nao consegue importar questions files
8   -- numeros das perguntas não fazem sentido quando há caixas de informação
  8 +- numeros das perguntas não fazem sentido quando há caixas de informação (numerar informacao tb?)
9 9 - 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.
10 10  
11 11  
... ... @@ -23,6 +23,7 @@
23 23  
24 24 # FIXED
25 25  
  26 +- information points é definido onde? test.y ou questions.py?
26 27 - textarea monospace
27 28 - disable tab behavior in textarea.
28 29 - command line options --debug --show_points --show_hints --practice_mode
... ...
MANUAL.md
1 1 # Perguntations
2 2  
  3 +### Requirements and instalation
  4 +
  5 +Install:
  6 +
  7 +- python3.4
  8 +- cherrypy3
  9 +- mako
  10 +- yaml
  11 +- markdown
  12 +
  13 +
3 14 Before using the program you need to
4 15  
5 16 1. Create the students database
... ...
templates/test.html
... ... @@ -135,9 +135,15 @@
135 135 % for i,q in enumerate(questions):
136 136 <div class="ui-corner-all custom-corners">
137 137 % if q['type'] == 'information':
138   - <div class="well drop-shadow" role="alert">
  138 + <div class="panel panel-default drop-shadow">
  139 + <div class="panel-heading">
  140 + Informação
  141 + </div>
  142 + <div class="panel-body">
  143 + <h4> ${i+1}.</h4>
139 144 ${pretty(q['text'])}
140 145 </div>
  146 + </div>
141 147 % elif q['type'] == 'warning':
142 148 <div class="alert alert-warning drop-shadow" role="alert">
143 149 <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
... ...