From 80195fb2b2f3cc55657fe5982898d1ae049d0f67 Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 7 Jul 2011 12:36:06 +0530 Subject: [PATCH] faqs --- itf/festival/views.py | 5 ++++- itf/templates/bpfaq.html | 13 ++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/itf/festival/views.py b/itf/festival/views.py index 07130d4..198af27 100644 --- a/itf/festival/views.py +++ b/itf/festival/views.py @@ -216,7 +216,10 @@ def bpguideline(request, guideline_id): return render_to_response("bpguideline.html", guideline_dict) def bpfaq(request): - return render_to_response("bpfaq.html") + faqs = BestPracticeFAQ.objects.all() + return render_to_response("bpfaq.html", { + 'faqs': faqs + }) def bpdownload(request): return render_to_response("bpdownload.html") diff --git a/itf/templates/bpfaq.html b/itf/templates/bpfaq.html index 6d297ff..f801557 100644 --- a/itf/templates/bpfaq.html +++ b/itf/templates/bpfaq.html @@ -15,7 +15,18 @@ {% endblock %} {% block bpContent %} +
- Coming soon... + {% for f in faqs %} +
+

{{ f.question }}

+

{{ f.answer }}

+
+ + {% endfor %}
{% endblock %}