diff options
author | Prabhu Ramachandran | 2018-05-09 19:20:26 +0530 |
---|---|---|
committer | GitHub | 2018-05-09 19:20:26 +0530 |
commit | 28618863e1487627e24f24476afd0f7b12149bcb (patch) | |
tree | fd4a52c5f42aaad1170f6ae9af136abe520f9e49 /yaksh/templates | |
parent | 9248e11d935a0b80433bcc80f66fb4ad40f3adb3 (diff) | |
parent | 393a9d2a8ec116f6530512dfbe6e8769442667e3 (diff) | |
download | online_test-28618863e1487627e24f24476afd0f7b12149bcb.tar.gz online_test-28618863e1487627e24f24476afd0f7b12149bcb.tar.bz2 online_test-28618863e1487627e24f24476afd0f7b12149bcb.zip |
Merge pull request #471 from adityacp/fix_error_messages
Python Assertion Evaluation additions and changes
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/error_template.html | 2 | ||||
-rw-r--r-- | yaksh/templates/yaksh/question.html | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/yaksh/templates/yaksh/error_template.html b/yaksh/templates/yaksh/error_template.html index 61657ae..301020e 100644 --- a/yaksh/templates/yaksh/error_template.html +++ b/yaksh/templates/yaksh/error_template.html @@ -3,7 +3,6 @@ {% endblock %} {% load custom_filters %} - {% if error_message %} {% for error in error_message %} @@ -35,6 +34,7 @@ </tr> <tr> {% if error.traceback %} + <input type="hidden" id="err_lineno" value="{{error.line_no}}"> <td><b>Full Traceback: </b></td> <td><pre>{{error.traceback}}</pre></td> {% endif %} diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index b65073a..ebfe066 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -11,6 +11,10 @@ .CodeMirror{ border-style: groove; } + .activeline { + background: #FBC2C4 !important; + color: #8a1f11 !important; + } </style> {% endblock %} @@ -221,7 +225,7 @@ question_type = "{{ question.type }}" {% if question.type == "integer" %} Enter Integer:<br/> - <input autofocus name="answer" type="number" id="integer" value={{ last_attempt|safe }} /> + <input autofocus name="answer" type="number" id="integer" value="{{ last_attempt|safe }}" /> <br/><br/> {% endif %} @@ -233,7 +237,7 @@ question_type = "{{ question.type }}" {% if question.type == "float" %} Enter Decimal Value :<br/> - <input autofocus name="answer" type="number" step="any" id="float" value={{ last_attempt|safe }} /> + <input autofocus name="answer" type="number" step="any" id="float" value="{{ last_attempt|safe }}" /> <br/><br/> {% endif %} |