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.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/static/website/templates/new-question.html b/static/website/templates/new-question.html
new file mode 100644
index 0000000..5005e13
--- /dev/null
+++ b/static/website/templates/new-question.html
@@ -0,0 +1,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">{% csrf_token %}
+ {% 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 %}