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 @@ ...@@ -9,11 +9,15 @@
.score_area { .score_area {
margin: auto; margin: auto;
max-width: 800px; max-width: 800px;
background-color: white; height: 220px;
background-image: url('{% static "img/O5X8IJ0.jpg" %}');
background-size: cover;
background-repeat: repeat;
padding: 40px; padding: 40px;
text-align: center; text-align: center;
} }
.score { .score {
color:white;
font-size: 8em; font-size: 8em;
font-family: 'Fredericka the Great', cursive; font-family: 'Fredericka the Great', cursive;
} }
...@@ -33,6 +37,11 @@ ...@@ -33,6 +37,11 @@
margin: auto; margin: auto;
max-width: 800px; max-width: 800px;
} }
.question_score {
text-align: center;
font-size: 1.4em;
margin: 0px;
}
</style> </style>
</head> </head>
<body> <body>
...@@ -56,12 +65,13 @@ ...@@ -56,12 +65,13 @@
<div class="rubrics_wrapper"> <div class="rubrics_wrapper">
<div class="question_header"> <div class="question_header">
<p class="rubrics"> <p class="rubrics">
You selected: {{sub.option}} <br/> 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: {{sub.questionId.answer}} 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>
<p id="blankspace"></p> <p id="blankspace"></p>
<p class="marksarea rubrics">Marks: {{ sub.questionId.marks }}<br/>Negative: -{{ sub.questionId.negative }}</p> <p class="marksarea rubrics">Marks: {{ sub.questionId.marks }}<br/>Negative: -{{ sub.questionId.negative }}</p>
</div> </div>
<p class="question_score">Score: {% if sub.option == sub.questionId.answer %} +{{ sub.questionId.marks }} {% else %} -{{ sub.questionId.negative }} {% endif %} </p>
<br/> <br/>
<p style="font-size: 1.2em"> <p style="font-size: 1.2em">
{{ sub.questionId.explainations }} {{ 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