Commit 23790318ad8a7d24240537a5b67bd093c57dc4e8

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

- removed mathjax from login window

Showing 3 changed files with 25 additions and 25 deletions   Show diff stats
1 1
2 # BUGS 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 - Review de um teste que foi apagado rebenta. 6 - Review de um teste que foi apagado rebenta.
5 - permitir eliminar teste a decorrer de modo a que o aluno possa recomeçar (e.g. noutro browser) 7 - permitir eliminar teste a decorrer de modo a que o aluno possa recomeçar (e.g. noutro browser)
6 - servidor nao esta a lidar com eventos scroll/resize. ignorar? 8 - servidor nao esta a lidar com eventos scroll/resize. ignorar?
@@ -127,17 +127,30 @@ class QuestionFactory(dict): @@ -127,17 +127,30 @@ class QuestionFactory(dict):
127 # Depending on the type of question, a different question class will be 127 # Depending on the type of question, a different question class will be
128 # instantiated. All these classes derive from the base class `Question`. 128 # instantiated. All these classes derive from the base class `Question`.
129 types = { 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 # Shallow copy so that script generated questions will not replace 155 # Shallow copy so that script generated questions will not replace
143 # the original generators 156 # the original generators
templates/login.html
@@ -9,21 +9,10 @@ @@ -9,21 +9,10 @@
9 <title>Teste</title> 9 <title>Teste</title>
10 <link rel="icon" href="/static/favicon.ico" /> 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 <!-- Bootstrap --> 12 <!-- Bootstrap -->
23 <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css"> 13 <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
24 <link rel="stylesheet" href="/static/bootstrap/css/bootstrap-theme.min.css"> <!-- optional --> 14 <link rel="stylesheet" href="/static/bootstrap/css/bootstrap-theme.min.css"> <!-- optional -->
25 <link rel="stylesheet" href="/static/font-awesome/css/font-awesome.min.css"> 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 <link rel="stylesheet" href="/static/css/test.css"> 16 <link rel="stylesheet" href="/static/css/test.css">
28 17
29 <script src="/static/js/jquery.min.js"></script> 18 <script src="/static/js/jquery.min.js"></script>
@@ -37,10 +26,6 @@ @@ -37,10 +26,6 @@
37 <div class="col-xs-4"> 26 <div class="col-xs-4">
38 <img src="/static/logo_horizontal.png" class="img-responsive" /> 27 <img src="/static/logo_horizontal.png" class="img-responsive" />
39 </div> 28 </div>
40 -  
41 -<!-- <div class="col-xs-4">  
42 - </div>  
43 - -->  
44 <div class="col-xs-8"> 29 <div class="col-xs-8">
45 <h4>Identificação:</h4> 30 <h4>Identificação:</h4>
46 <form method="post" action="/login" class="form-signin"> 31 <form method="post" action="/login" class="form-signin">