-
Notifications
You must be signed in to change notification settings - Fork 0
/
open.html
89 lines (84 loc) · 3.15 KB
/
open.html
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{% extends "layout.html" %}
{% block title %}
Opened
{% endblock %}
{% block main %}
<header style="font-size: 30px"><strong><mark>{{ o[0]['title'] }}</mark></strong></header>
<header style="font-size: 11px"><mark>Forum</mark></header>
<br>
<br>
{% if (t == 'Nonee') and (r == 'Nonee') %}
<form action="/add" method="post">
<button class="btn btn-primary" type="submit" name="button5" value="{{p}}">Add Questions</button>
</form>
<hr>
<br>
{% endif %}
{% if t != 'Nonee' %}
<form action="/add" method="post">
<button class="btn btn-primary" type="submit" name="button5" value="{{t[0]['paper_id']}}">Add Questions</button>
</form>
<hr>
<br>
{% for paper_id in t %}
<div>
<div >
<p><b><mark>
Question:: {{ paper_id['question'] }}
</mark></b></p>
</div>
<div >
<div>
<p><b><mark>
A) {{ paper_id['o1'] }}
</mark></b></p>
<p><b><mark>
B) {{ paper_id['o2'] }}
</mark></b></p>
<p><b><mark>
C) {{ paper_id['o3'] }}
</mark></b></p>
<p><b><mark>
D) {{ paper_id['o4'] }}
</mark></b></p>
</div>
<p><b><mark>
Correct option) {{ paper_id['correct'] }}
</mark></b></p>
</div>
<form action="/editO" method="post">
<button class="btn btn-primary" type="submit" name="button5" value="{{paper_id['Question_id']}}">Edit</button>
</form>
<form action="/deleteQuestionO" method="post">
<button class="btn btn-primary" type="submit" name="button5" value="{{paper_id['Question_id']}}">Delete</button>
</form>
</div>
<hr>
{% endfor %}
{% endif %}
{% if r != 'Nonee' %}
{% if t == 'Nonee' %}
<form action="/add" method="post">
<button class="btn btn-primary" type="submit" name="button5" value="{{r[0]['paper_id']}}">Add Questions</button>
</form>
<hr>
<br>
{% endif %}
{% for paper_id in r %}
<div>
<div >
<p><b><mark>
Question:: {{ paper_id['question'] }}
</mark></b></p>
</div>
<form action="/editS" method="post">
<button class="btn btn-primary" type="submit" name="button5" value="{{paper_id['question_id']}}">Edit</button>
</form>
<form action="/deleteQuestionS" method="post">
<button class="btn btn-primary" type="submit" name="button5" value="{{paper_id['question_id']}}">Delete</button>
</form>
</div>
<hr>
{% endfor %}
{% endif %}
{% endblock %}