This commit is contained in:
Sanj 2011-07-07 12:36:06 +05:30
parent 8003fea93e
commit 80195fb2b2
2 changed files with 16 additions and 2 deletions

View File

@ -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")

View File

@ -15,7 +15,18 @@
{% endblock %}
{% block bpContent %}
<style type="text/css">
.faqItem {
margin-bottom: 8px;
}
</style>
<div class="bpContent">
Coming soon...
{% for f in faqs %}
<div class="faqItem">
<p class="question"><b>{{ f.question }}</b></p>
<p class="answer">{{ f.answer }}</p>
</div>
{% endfor %}
</div>
{% endblock %}