diff --git a/BUGS.md b/BUGS.md index a1264fb..39bf9fc 100644 --- a/BUGS.md +++ b/BUGS.md @@ -1,6 +1,8 @@ # BUGS +- text-numeric não está a gerar a pergunta. faltam templates? +- uniformizar question.py com a de aprendizations... - Review de um teste que foi apagado rebenta. - permitir eliminar teste a decorrer de modo a que o aluno possa recomeçar (e.g. noutro browser) - servidor nao esta a lidar com eventos scroll/resize. ignorar? diff --git a/questions.py b/questions.py index ad93ce8..d758655 100644 --- a/questions.py +++ b/questions.py @@ -127,17 +127,30 @@ class QuestionFactory(dict): # Depending on the type of question, a different question class will be # instantiated. All these classes derive from the base class `Question`. types = { - 'radio' : QuestionRadio, - 'checkbox' : QuestionCheckbox, - 'text' : QuestionText, - 'text_regex': QuestionTextRegex, - 'text_numeric': QuestionTextNumeric, - 'textarea' : QuestionTextArea, - # informative panels - 'information': QuestionInformation, - 'warning' : QuestionInformation, - 'alert' : QuestionInformation, + 'radio' : QuestionRadio, + 'checkbox' : QuestionCheckbox, + 'text' : QuestionText, + 'text_regex': QuestionTextRegex, 'text-regex': QuestionTextRegex, + 'text_numeric': QuestionTextNumeric, 'text-numeric': QuestionTextNumeric, + 'textarea' : QuestionTextArea, + # -- informative panels -- + 'information': QuestionInformation, 'info': QuestionInformation, + 'warning' : QuestionInformation, 'warn': QuestionInformation, + 'alert' : QuestionInformation, + 'success' : QuestionInformation, } + # types = { + # 'radio' : QuestionRadio, + # 'checkbox' : QuestionCheckbox, + # 'text' : QuestionText, + # 'text_regex': QuestionTextRegex, + # 'text_numeric': QuestionTextNumeric, + # 'textarea' : QuestionTextArea, + # # informative panels + # 'information': QuestionInformation, + # 'warning' : QuestionInformation, + # 'alert' : QuestionInformation, + # } # Shallow copy so that script generated questions will not replace # the original generators diff --git a/templates/login.html b/templates/login.html index 9e298c7..9d323c9 100644 --- a/templates/login.html +++ b/templates/login.html @@ -9,21 +9,10 @@