summaryrefslogtreecommitdiff
path: root/static/website/templates/new-question.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/website/templates/new-question.html')
-rw-r--r--static/website/templates/new-question.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/static/website/templates/new-question.html b/static/website/templates/new-question.html
index cb0439d..da803de 100644
--- a/static/website/templates/new-question.html
+++ b/static/website/templates/new-question.html
@@ -14,8 +14,9 @@
<img id="ajax-loader" src="{% static 'website/images/ajax-loader.gif' %}" style="display:none;">
</p>
<div class="row">
+ {{ form.category.errors }}
<div class="col-lg-3 col-md-3 col-sm-3">
- {% render_field form.category class+="form-control"%}
+ {% render_field form.category class+="form-control category"%}
</div>
<!--<div class="col-lg-3 col-md-3 col-sm-3">
{% if category %}
@@ -37,14 +38,17 @@
<p>Please enter your question details.</p>
<div class="row">
<div class="col-lg-12">
+ {{ form.title.errors }}
<div class="form-group">
<label for="id_title">Title:</label>
- {% render_field form.title class+="form-control" %}
+ {% render_field form.title class+="form-control title" %}
</div>
+ {{ form.body.errors }}
<div class="form-group">
<label for="id_body">Question:</label>
- {% render_field form.body class+="form-control" %}
+ {% render_field form.body class+="form-control body" %}
</div>
+
</div>
</div>
<input class="btn btn-success" type="submit" value="Submit Question">