diff options
author | prathamesh | 2017-08-14 14:51:39 +0530 |
---|---|---|
committer | prathamesh | 2017-08-14 14:51:39 +0530 |
commit | 49615e5a24ecfdd0b22bae080e7f9bb2507bbfd7 (patch) | |
tree | df6c5d1a56376a92c2c8aa893c4c3b3f2dff52d4 /yaksh/templates | |
parent | ce995e06e3509a1340061c51dfa08a65c69eef66 (diff) | |
download | online_test-49615e5a24ecfdd0b22bae080e7f9bb2507bbfd7.tar.gz online_test-49615e5a24ecfdd0b22bae080e7f9bb2507bbfd7.tar.bz2 online_test-49615e5a24ecfdd0b22bae080e7f9bb2507bbfd7.zip |
To handle unknown status response from code server
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/question.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index 9df2fef..9789d25 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -101,14 +101,17 @@ lang = "{{ question.language }}" <p id="status"></p> {% if notification %} {% if question.type == "code" %} - <div class="alert alert-success" role="alert"> + <div id="notification" class="alert alert-success" role="alert"> <strong>Note:</strong> {{ notification }} </div> {% else %} - <div class="alert alert-warning" role="alert"> + <div id="notification" class="alert alert-warning" role="alert"> <strong>Note:</strong> {{ notification }} </div> {% endif %} + {% else %} + <div id="notification" role="alert"> + </div> {% endif %} <form id="code" action="{{URL_ROOT}}/exam/{{ question.id }}/check/{{ paper.attempt_number }}/{{ paper.question_paper.id }}/" method="post" enctype="multipart/form-data"> {% csrf_token %} |