diff options
author | Jayaram Pai | 2013-12-01 13:09:49 +0530 |
---|---|---|
committer | Jayaram Pai | 2013-12-01 13:09:49 +0530 |
commit | 8533d61eb93ecb4c943ec3c3b83dfef87b20a916 (patch) | |
tree | 4fa52f3c02fe1f5c50a4d386cc670faeaae6d7e4 /static/website/templates/new-question.html | |
parent | af3e4d8942680a5c08492d2ed179d8e401a8bf57 (diff) | |
download | FOSSEE-Forum-8533d61eb93ecb4c943ec3c3b83dfef87b20a916.tar.gz FOSSEE-Forum-8533d61eb93ecb4c943ec3c3b83dfef87b20a916.tar.bz2 FOSSEE-Forum-8533d61eb93ecb4c943ec3c3b83dfef87b20a916.zip |
basic auth and new-question
Diffstat (limited to 'static/website/templates/new-question.html')
-rw-r--r-- | static/website/templates/new-question.html | 45 |
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 %} |