blob: b05704f5c7a62d4a21520400b6f6a447b0df25f5 (
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
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
|
{% extends 'website/templates/base.html' %}
{% load widget_tweaks %}
{% block content %}
<div class="question">
<div class="title">
<a href=""> {{ question.title }} </a>
</div>
<div class="body">
{{ question.body }}
</div>
<br>
<span class="category">
<small>
<a href="{% url 'website:filter' question.category %}">
{{ question.category }}
</a>
</small>
</span>
<span class="tutorial">
<small>
<a href="{% url 'website:filter' question.category question.tutorial %}">
{{ question.tutorial}}
</a>
</small>
</span>
<span class="minute_range">
<small>
<a href="{% url 'website:filter' question.category question.tutorial question.minute_range %}">
{{ question.minute_range }} min
</a>
</small>
</span>
<span class="second_range">
<small>
<a href="{% url 'website:filter' question.category question.tutorial question.minute_range question.second_range%}">
{{ question.second_range }} sec
</a>
</small>
</span>
</div>
{% for reply in replies %}
<div class="reply">
<span class="body">
{{ reply.body }}
</span>
<span class="user">
{{ reply.user }}
</span>
</div>
{% endfor %}
<form action="{% url 'website:question_reply' %}" method="POST"> {% csrf_token %}
{% with WIDGET_ERROR_CLASS='field_error' %}
<div class="row">
<div class="col-lg-12">
<div class="form-group">
{% render_field form.question value=question.id %}
<label for="id_body">Reply</label>
{% render_field form.body class+='form-control' %}
</div>
</div>
</div>
{% endwith %}
<input class="btn btn-info" type="submit" value="Submit Reply">
</form>
{% endblock %}
|