[IMP] adding FAQ page
bzr revid: fp@tinyerp.com-20140303193654-rkmar2mc05uluhg8
This commit is contained in:
parent
e2ee1de89d
commit
68faefa15f
|
@ -74,6 +74,11 @@ class website_forum(http.Controller):
|
|||
|
||||
return request.website.render("website_forum.index", values)
|
||||
|
||||
@http.route(['/forum/<model("website.forum"):forum>/faq'], type='http', auth="public", website=True, multilang=True)
|
||||
def faq(self, forum, **post):
|
||||
values = { 'searches': {}, 'forum':forum }
|
||||
return request.website.render("website_forum.faq", values)
|
||||
|
||||
@http.route(['/forum/ask'], type='http', auth="public", website=True, multilang=True)
|
||||
def question_ask(self, **post):
|
||||
values = {
|
||||
|
|
|
@ -138,6 +138,12 @@
|
|||
</t>
|
||||
</template>
|
||||
|
||||
<template id="index">
|
||||
<t t-call="website_forum.faq">
|
||||
<div t-field="forum.faq"/>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
<template id="index">
|
||||
<t t-call="website_forum.header">
|
||||
<h1 class="page-header mt0">
|
||||
|
|
Loading…
Reference in New Issue