Commit 3db4db94e44cc788dd8b3ad3cc698862c12b7fb3
1 parent
b33682ee
Exists in
dev
fix radio and checkbox option alignment
Showing
3 changed files
with
16 additions
and
13 deletions
Show diff stats
BUGS.md
... | ... | @@ -5,13 +5,10 @@ |
5 | 5 | - nao esta a respeitar o numero de tentativas `max_tries`. |
6 | 6 | - se na especificacao de um curso, a referencia do topico nao existir como |
7 | 7 | directorio, rebenta. |
8 | -- internal server error ao fazer logout no macos python3.8 | |
9 | 8 | - topicos chapter devem ser automaticamente completos assim que as dependencias |
10 | 9 | são satisfeitas. Nao devia ser necessario (ou possivel?) clicar neles. |
11 | 10 | - topicos do tipo learn deviam por defeito nao ser randomizados e assumir |
12 | 11 | ficheiros `learn.yaml`. |
13 | -- internal server error 500... experimentar cenario: aluno tem login efectuado, | |
14 | - prof muda pw e faz login/logout. aluno obtem erro 500. | |
15 | 12 | - radio sem options rebenta com aprendizations --check |
16 | 13 | - chapters deviam ser mostrados unlocked, antes de mostrar a medalha. alunos |
17 | 14 | pensam que já terminaram e não conseguem progredir por causa das |
... | ... | @@ -56,6 +53,7 @@ |
56 | 53 | |
57 | 54 | ## FIXED |
58 | 55 | |
56 | +- formulas com align ficam numa so linha. (mistune 3 com o meu patch) | |
59 | 57 | - rankings rebenta se nunhum aluno tiver feito nenhum topico. |
60 | 58 | - templates question-*.html tem input hidden question_ref que não é usado. |
61 | 59 | remover? | ... | ... |
aprendizations/templates/question-checkbox.html
... | ... | @@ -6,12 +6,15 @@ |
6 | 6 | <div class="list-group"> |
7 | 7 | {% for n,opt in enumerate(question['options']) %} |
8 | 8 | <li class="list-group-item"> |
9 | - <input class="form-check-input" type="checkbox" id="{{ n }}" accesskey="{{ n+1 }}" name="answer" value="{{ n }}"> | |
10 | - <label class="form-check-label" for="{{ n }}"> | |
11 | - {{ md(opt).removeprefix('<p>').removesuffix('</p>') }} | |
12 | - </label> | |
13 | - {% end %} | |
14 | - </div> | |
9 | + <div class="form-check"> | |
10 | + <input class="form-check-input" type="checkbox" id="{{ n }}" accesskey="{{ n+1 }}" name="answer" value="{{ n }}"> | |
11 | + <label class="form-check-label" for="{{ n }}"> | |
12 | + {{ md(opt).removeprefix('<p>').removesuffix('</p>') }} | |
13 | + </label> | |
14 | + </div> | |
15 | + </li> | |
16 | + {% end %} | |
17 | + </div> | |
15 | 18 | </fieldset> |
16 | 19 | <input type="hidden" name="qid" value="{{ question['qid'] }}"> |
17 | 20 | {% end %} | ... | ... |
aprendizations/templates/question-radio.html
... | ... | @@ -6,10 +6,12 @@ |
6 | 6 | <div class="list-group"> |
7 | 7 | {% for n,opt in enumerate(question['options']) %} |
8 | 8 | <li class="list-group-item"> |
9 | - <input class="form-check-input" type="radio" name="answer" value="{{ n }}" id="{{ n }}"> | |
10 | - <label class="form-check-label stretched-link" for="{{ n }}"> | |
11 | - {{ md(opt).removeprefix('<p>').removesuffix('</p>') }} | |
12 | - </label> | |
9 | + <div class="form-check"> | |
10 | + <input class="form-check-input" type="radio" name="answer" value="{{ n }}" id="{{ n }}"> | |
11 | + <label class="form-check-label stretched-link" for="{{ n }}"> | |
12 | + {{ md(opt).removeprefix('<p>').removesuffix('</p>') }} | |
13 | + </label> | |
14 | + </div> | |
13 | 15 | </li> |
14 | 16 | {% end %} |
15 | 17 | </div> | ... | ... |