diff options
author | ashwinishinde | 2015-05-18 15:37:26 +0530 |
---|---|---|
committer | ashwinishinde | 2015-05-18 15:37:26 +0530 |
commit | 23c44aa78fcf3c015dd4bcaf5b7e8a223e1b6950 (patch) | |
tree | 82c990d13a18e32e3f9c01ee7a39e973ed53c68b /static | |
parent | 1806b9d0007f2b28f38cdea65efe0f0eab72dc56 (diff) | |
download | FOSSEE-Forum-23c44aa78fcf3c015dd4bcaf5b7e8a223e1b6950.tar.gz FOSSEE-Forum-23c44aa78fcf3c015dd4bcaf5b7e8a223e1b6950.tar.bz2 FOSSEE-Forum-23c44aa78fcf3c015dd4bcaf5b7e8a223e1b6950.zip |
Subject: get category id after ask new question
Description:
1) selcted category should get display for ask new question.
Diffstat (limited to 'static')
-rw-r--r-- | static/website/templates/filter.html | 9 | ||||
-rw-r--r-- | static/website/templates/new-question.html | 7 |
2 files changed, 7 insertions, 9 deletions
diff --git a/static/website/templates/filter.html b/static/website/templates/filter.html index f04f226..c64f68c 100644 --- a/static/website/templates/filter.html +++ b/static/website/templates/filter.html @@ -5,7 +5,11 @@ {% if questions %} <h5> These are the similar questions in: - {% if category %} + + + + {% for category in categories %} + {% if category %} {{ category }} {% endif %} {% if tutorial %} @@ -20,7 +24,8 @@ <b> > </b> {{ second_range }} sec {% endif %} - <a class="btn btn-xs btn-success pull-right" href="{% url 'website:new_question' %}?category={{ category|urlencode }}">Ask a new question.</a> + <a class="btn btn-xs btn-success pull-right" href="{% url 'website:new_question' %}?category={{ category.id |urlencode }}">Ask a new question.</a> + {% endfor %} </h5> <br> <div class="clearfix"></div> diff --git a/static/website/templates/new-question.html b/static/website/templates/new-question.html index af0e34b..cbc6063 100644 --- a/static/website/templates/new-question.html +++ b/static/website/templates/new-question.html @@ -19,13 +19,6 @@ {% render_field form.category class+="form-control category"%} </div> - <!--<div class="col-lg-3 col-md-3 col-sm-3"> - {% if category %} - {% render_field form.tutorial class+="form-control" %} - {% else %} - {% render_field form.tutorial class+="form-control" %} - {% endif %} - </div>--> <div class="col-lg-2 col-md-2 col-sm-2"> <small><strong> <a id="similar-link" data-toggle="modal" data-target="#similarModal" href="#"> |