This repository was archived by the owner on Sep 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd_question.html
171 lines (136 loc) · 5.74 KB
/
add_question.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Add Question</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700" rel="stylesheet">
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/jumbotron-narrow.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="header clearfix">
<nav>
<ul class="nav nav-pills pull-right">
<li role="presentation" ><a href="main.html">Main</a></li>
<li role="presentation"><a href="https://www.tupa-germania.ru/grazhdanstvo/test-na-grazhdanstvo-germanii.html">About</a></li>
<li role="presentation" class="active"><a href="add_question.html">Add Question</a></li>
<li role="presentation"><a href="#">Update</a></li>
<li role="presentation"><a href="#">Create Test</a></li>
</ul>
</nav>
<h3 class="text-muted">Testing App</h3>
</div>
<div class="page-header">
<h3>Add Question</h3>
</div>
<p class="lead">
<form id= "createQuestionForm" action="http://localhost:8888/create" method="post" enctype="multipart/form-data">
<p>
<div class="form-group">
<label for="title">Text question:</label>
<textarea class="form-control" rows="5" name="text_question" id="text_question"></textarea>
</div>
<img data-src="" class="img-thumbnail" style="display:none">
</p>
<p>
<label class="btn btn-default" for="upload">
<input id="upload" type="file" style="display:none"
onchange="$('#upload-file-info').html(this.files[0].name)">
Upload Image
</label>
<span class='label label-info' id="upload-file-info"></span>
</p>
<table id="new_fields" style="display:none">
<tr>
<th>Text</th>
<th>isRight</th>
</tr>
</table>
<div class="page-header">
<h4>Answers</h4>
</div>
<div class="row">
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Answer 1</h3>
</div>
<div class="panel-body">
<input class="form-control" type="text" placeholder="Input text...">
<br>
<div class="form-check">
<label class="form-check-label" for="isRight">
Is Right?
</label>
<input class="form-check-input" type="checkbox" value="" id="isRight">
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Answer 2</h3>
</div>
<div class="panel-body">
<input class="form-control" type="text" placeholder="Input text...">
<br>
<div class="form-check">
<label class="form-check-label" for="isRight">
Is Right?
</label>
<input class="form-check-input" type="checkbox" value="" id="isRight">
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Answer 1</h3>
</div>
<div class="panel-body">
<input class="form-control" type="text" placeholder="Input text...">
<br>
<div class="form-check">
<label class="form-check-label" for="isRight">
Is Right?
</label>
<input class="form-check-input" type="checkbox" value="" id="isRight">
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Answer 3</h3>
</div>
<div class="panel-body">
<input class="form-control" type="text" placeholder="Input text...">
<br>
<div class="form-check">
<label class="form-check-label" for="isRight">
Is Right?
</label>
<input class="form-check-input" type="checkbox" value="" id="isRight">
</div>
</div>
</div>
</div>
</div>
<input type="button" class="btn btn-default" id="addfields" value="Add answer" />
<input type="submit" class="btn btn-success" value="Create">
</form>
</p>
<div id="footer">© nibali</div>
</div>
<!-- JAVASCRIPT -->
<script src="js/jquery.js"></script>
<script type="text/javascript" src="js/addField.js" ></script>
</body>
</html>