Commit 23790318ad8a7d24240537a5b67bd093c57dc4e8
1 parent
619162a1
Exists in
master
and in
1 other branch
- removed mathjax from login window
Showing
3 changed files
with
25 additions
and
25 deletions
Show diff stats
BUGS.md
| 1 | 1 | |
| 2 | 2 | # BUGS |
| 3 | 3 | |
| 4 | +- text-numeric não está a gerar a pergunta. faltam templates? | |
| 5 | +- uniformizar question.py com a de aprendizations... | |
| 4 | 6 | - Review de um teste que foi apagado rebenta. |
| 5 | 7 | - permitir eliminar teste a decorrer de modo a que o aluno possa recomeçar (e.g. noutro browser) |
| 6 | 8 | - servidor nao esta a lidar com eventos scroll/resize. ignorar? | ... | ... |
questions.py
| ... | ... | @@ -127,17 +127,30 @@ class QuestionFactory(dict): |
| 127 | 127 | # Depending on the type of question, a different question class will be |
| 128 | 128 | # instantiated. All these classes derive from the base class `Question`. |
| 129 | 129 | types = { |
| 130 | - 'radio' : QuestionRadio, | |
| 131 | - 'checkbox' : QuestionCheckbox, | |
| 132 | - 'text' : QuestionText, | |
| 133 | - 'text_regex': QuestionTextRegex, | |
| 134 | - 'text_numeric': QuestionTextNumeric, | |
| 135 | - 'textarea' : QuestionTextArea, | |
| 136 | - # informative panels | |
| 137 | - 'information': QuestionInformation, | |
| 138 | - 'warning' : QuestionInformation, | |
| 139 | - 'alert' : QuestionInformation, | |
| 130 | + 'radio' : QuestionRadio, | |
| 131 | + 'checkbox' : QuestionCheckbox, | |
| 132 | + 'text' : QuestionText, | |
| 133 | + 'text_regex': QuestionTextRegex, 'text-regex': QuestionTextRegex, | |
| 134 | + 'text_numeric': QuestionTextNumeric, 'text-numeric': QuestionTextNumeric, | |
| 135 | + 'textarea' : QuestionTextArea, | |
| 136 | + # -- informative panels -- | |
| 137 | + 'information': QuestionInformation, 'info': QuestionInformation, | |
| 138 | + 'warning' : QuestionInformation, 'warn': QuestionInformation, | |
| 139 | + 'alert' : QuestionInformation, | |
| 140 | + 'success' : QuestionInformation, | |
| 140 | 141 | } |
| 142 | + # types = { | |
| 143 | + # 'radio' : QuestionRadio, | |
| 144 | + # 'checkbox' : QuestionCheckbox, | |
| 145 | + # 'text' : QuestionText, | |
| 146 | + # 'text_regex': QuestionTextRegex, | |
| 147 | + # 'text_numeric': QuestionTextNumeric, | |
| 148 | + # 'textarea' : QuestionTextArea, | |
| 149 | + # # informative panels | |
| 150 | + # 'information': QuestionInformation, | |
| 151 | + # 'warning' : QuestionInformation, | |
| 152 | + # 'alert' : QuestionInformation, | |
| 153 | + # } | |
| 141 | 154 | |
| 142 | 155 | # Shallow copy so that script generated questions will not replace |
| 143 | 156 | # the original generators | ... | ... |
templates/login.html
| ... | ... | @@ -9,21 +9,10 @@ |
| 9 | 9 | <title>Teste</title> |
| 10 | 10 | <link rel="icon" href="/static/favicon.ico" /> |
| 11 | 11 | |
| 12 | - <!-- MathJax --> | |
| 13 | - <script type="text/x-mathjax-config"> | |
| 14 | - MathJax.Hub.Config({ | |
| 15 | - tex2jax: { | |
| 16 | - inlineMath: [["$$$","$$$"], ["$","$"], ["\\(","\\)"]] | |
| 17 | - } | |
| 18 | - }); | |
| 19 | - </script> | |
| 20 | - <script type="text/javascript" src="/static/mathjax/MathJax.js?config=TeX-AMS_CHTML-full"></script> | |
| 21 | - | |
| 22 | 12 | <!-- Bootstrap --> |
| 23 | 13 | <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css"> |
| 24 | 14 | <link rel="stylesheet" href="/static/bootstrap/css/bootstrap-theme.min.css"> <!-- optional --> |
| 25 | 15 | <link rel="stylesheet" href="/static/font-awesome/css/font-awesome.min.css"> |
| 26 | - <link rel="stylesheet" href="/static/css/github.css"> <!-- syntax highlight --> | |
| 27 | 16 | <link rel="stylesheet" href="/static/css/test.css"> |
| 28 | 17 | |
| 29 | 18 | <script src="/static/js/jquery.min.js"></script> |
| ... | ... | @@ -37,10 +26,6 @@ |
| 37 | 26 | <div class="col-xs-4"> |
| 38 | 27 | <img src="/static/logo_horizontal.png" class="img-responsive" /> |
| 39 | 28 | </div> |
| 40 | - | |
| 41 | -<!-- <div class="col-xs-4"> | |
| 42 | - </div> | |
| 43 | - --> | |
| 44 | 29 | <div class="col-xs-8"> |
| 45 | 30 | <h4>Identificação:</h4> |
| 46 | 31 | <form method="post" action="/login" class="form-signin"> | ... | ... |