blob: 8487b70b2f2dbdeb9766e4132d72f7347f82c7eb (
plain)
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
|
{% extends 'website/templates/base.html' %}
{% load widget_tweaks %}
{% block content %}
<h4>
<span class="glyphicon glyphicon-pencil">
</span> Create a new question . . .
</h4>
<hr>
<form role="form" action="" method="POST">
{% with WIDGET_ERROR_CLASS='field_error' %}
<p>Please enter the tutorial details.</p>
<div class="row">
<div class="col-lg-3 col-md-4 col-sm-4">
{% render_field form.category class+="form-control"%}
</div>
<div class="col-lg-3 col-md-4 col-sm-4">
{% render_field form.tutorial class+="form-control" disabled="disabled" %}
</div>
<div class="col-lg-2 col-md-2 col-sm-2">
{% render_field form.minute_range class+="form-control" disabled="disabled" %}
</div>
<div class="col-lg-2 col-md-2 col-sm-2">
{% render_field form.second_range class+="form-control" disabled="disabled" %}
</div>
</div>
<hr>
<p>Please enter your question details.</p>
<div class="row">
<div class="col-lg-10">
<div class="form-group">
<label for="id_title">Title:</label>
{% render_field form.title class+="form-control" %}
</div>
<div class="form-group">
<label for="id_body">Question:</label>
{% render_field form.body class+="form-control" %}
</div>
</div>
</div>
<input class="btn btn-success" type="submit" value="Submit Question">
{% endwith %}
</form>
{% endblock %}
|