You need to sign in or sign up before continuing.
Commit 31c8c403 authored by Samarth Joshi's avatar Samarth Joshi

Submission view added black bg

parent afc7b2d4
No preview for this file type
......@@ -9,11 +9,15 @@
.score_area {
margin: auto;
max-width: 800px;
background-color: white;
height: 220px;
background-image: url('{% static "img/O5X8IJ0.jpg" %}');
background-size: cover;
background-repeat: repeat;
padding: 40px;
text-align: center;
}
.score {
color:white;
font-size: 8em;
font-family: 'Fredericka the Great', cursive;
}
......@@ -33,6 +37,11 @@
margin: auto;
max-width: 800px;
}
.question_score {
text-align: center;
font-size: 1.4em;
margin: 0px;
}
</style>
</head>
<body>
......@@ -56,12 +65,13 @@
<div class="rubrics_wrapper">
<div class="question_header">
<p class="rubrics">
You selected: {{sub.option}} <br/>
Correct answer: {{sub.questionId.answer}}
You selected: {% if sub.option == '0' %} A {% elif sub.option == '1' %} B {% elif sub.option == '2' %} C {% elif sub.option == '3' %} D {% else %} Wrong value in db {% endif %} <br/>
Correct answer: {% if sub.questionId.answer == '0' %} A {% elif sub.questionId.answer == '1' %} B {% elif sub.questionId.answer == '2' %} C {% elif sub.questionId.answer == '3' %} D {% else %} Wrong value in db {% endif %}
</p>
<p id="blankspace"></p>
<p class="marksarea rubrics">Marks: {{ sub.questionId.marks }}<br/>Negative: -{{ sub.questionId.negative }}</p>
</div>
<p class="question_score">Score: {% if sub.option == sub.questionId.answer %} +{{ sub.questionId.marks }} {% else %} -{{ sub.questionId.negative }} {% endif %} </p>
<br/>
<p style="font-size: 1.2em">
{{ sub.questionId.explainations }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment