Commit e74eff38021bf6e6b2f85f08fc1a84e22cacee2e
1 parent
683a1709
Exists in
master
and in
1 other branch
- show_points option added to the test.
Showing
4 changed files
with
18 additions
and
3 deletions
Show diff stats
BUGS.md
@@ -2,9 +2,11 @@ | @@ -2,9 +2,11 @@ | ||
2 | 2 | ||
3 | # BUGS | 3 | # BUGS |
4 | 4 | ||
5 | +- mostrar numero de alunos online em /students | ||
6 | +- modal a pedir confirmação de submissão. | ||
5 | - implementar singlepage/multipage | 7 | - implementar singlepage/multipage |
6 | - 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 |
7 | - | 9 | +- pontos devem estar normalizados escala 0-20 |
8 | - 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 | - 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. |
9 | 11 | ||
10 | 12 | ||
@@ -12,4 +14,7 @@ | @@ -12,4 +14,7 @@ | ||
12 | 14 | ||
13 | - criar pergunta gerada por script externo. Na instanciacao QuestionScript() é corrido um script que devolve uma instancia de pergunta de qualquer tipo. | 15 | - criar pergunta gerada por script externo. Na instanciacao QuestionScript() é corrido um script que devolve uma instancia de pergunta de qualquer tipo. |
14 | - permitir adicionar imagens nas perguntas | 16 | - permitir adicionar imagens nas perguntas |
15 | -- criar perguntas de outros tipos, e.g. associação, ordenação, varios textinput | ||
16 | \ No newline at end of file | 17 | \ No newline at end of file |
18 | +- criar perguntas de outros tipos, e.g. associação, ordenação, varios textinput | ||
19 | + | ||
20 | +# FIXED | ||
21 | +- mostrar cotacao das perguntas, show_points, default:False |
static/.DS_Store
No preview for this file type
templates/test.html
@@ -120,7 +120,8 @@ | @@ -120,7 +120,8 @@ | ||
120 | Classificar | 120 | Classificar |
121 | </div> | 121 | </div> |
122 | <div class="panel-body" id="example${i}"> | 122 | <div class="panel-body" id="example${i}"> |
123 | - <h4> ${i+1}. </h4> | 123 | + <h4> ${i+1}.</h4> |
124 | + | ||
124 | <p class="question"> | 125 | <p class="question"> |
125 | ${pretty(q['text'])} | 126 | ${pretty(q['text'])} |
126 | </p> | 127 | </p> |
@@ -185,6 +186,14 @@ | @@ -185,6 +186,14 @@ | ||
185 | </div> | 186 | </div> |
186 | % endif # modal | 187 | % endif # modal |
187 | % endif # show_hints | 188 | % endif # show_hints |
189 | + | ||
190 | + | ||
191 | + % if t['show_points']: | ||
192 | + <p class="text-right"> | ||
193 | + <small>(${q['points']} ponto)</small> | ||
194 | + <p> | ||
195 | + % endif | ||
196 | + | ||
188 | </div> <!-- panel-body --> | 197 | </div> <!-- panel-body --> |
189 | </div> <!-- panel --> | 198 | </div> <!-- panel --> |
190 | % endif | 199 | % endif |
test.py
@@ -21,6 +21,7 @@ def read_configuration(filename): | @@ -21,6 +21,7 @@ def read_configuration(filename): | ||
21 | test['ref'] = str(test.get('ref', filename)) | 21 | test['ref'] = str(test.get('ref', filename)) |
22 | test['title'] = str(test.get('title', '')) | 22 | test['title'] = str(test.get('title', '')) |
23 | test['show_hints'] = bool(test.get('show_hints', False)) | 23 | test['show_hints'] = bool(test.get('show_hints', False)) |
24 | + test['show_points'] = bool(test.get('show_points', False)) | ||
24 | test['singlepage'] = bool(test.get('singlepage', True)) | 25 | test['singlepage'] = bool(test.get('singlepage', True)) |
25 | test['save_answers'] = bool(test.get('save_answers', True)) | 26 | test['save_answers'] = bool(test.get('save_answers', True)) |
26 | if test['save_answers']: | 27 | if test['save_answers']: |