File size: 1,142 Bytes
c001f24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{% extends 'base.html' %}

{% block content %}
<div class="container mt-5">
    <h2>Processed Quiz Data</h2>
    <form action="{{ url_for('json_bp.save_processed_json') }}" method="post">
        <input type="hidden" name="questions_data" value="{{ questions | tojson | e }}">
        <table class="table">
            <thead>
                <tr>
                    <th>Question</th>
                    <th>Your Answer</th>
                    <th>Correct Answer</th>
                    <th>Status</th>
                </tr>
            </thead>
            <tbody>
                {% for q in questions %}
                <tr>
                    <td>{{ q.question | safe }}</td>
                    <td>{{ q.yourAnswer | safe }}</td>
                    <td>{{ q.correctAnswer | safe }}</td>
                    <td><span class="badge bg-{% if q.status == 'Wrong' %}danger{% else %}warning{% endif %}">{{ q.status }}</span></td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
        <button type="submit" class="btn btn-primary">Go to Question Entry</button>
    </form>
</div>
{% endblock %}