[IMP] website_mail: content and fix button
bzr revid: chm@openerp.com-20130919140538-atltxg7htzp8gkd3
This commit is contained in:
parent
53fb7df505
commit
fcfc2d9649
|
@ -86,7 +86,7 @@ class website_mail(http.Controller):
|
|||
@website.route(['/blog/<int:mail_group_id>/new'], type='http', auth="public")
|
||||
def new_blog_post(self, mail_group_id=None, **post):
|
||||
blog_id = request.registry['mail.group'].message_post(request.cr, request.uid, mail_group_id,
|
||||
body=_("Blog content.<br/>Please edit this content then you can publish this blog."),
|
||||
body="",
|
||||
subject=_("Blog title"),
|
||||
website_published=False,
|
||||
type='comment',
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
<button type="submit" class="btn btn-primary" name="subscribe">Subscribe</button>
|
||||
</form>
|
||||
<form action="./unsubscribe" method="POST" class="form-inline" t-if="subscribe">
|
||||
<input type="hidden" name="email" t-att-value="subscribe"/>
|
||||
<input type="hidden" name="email" t-att-value="subscribe" style="display: none"/>
|
||||
<button type="submit" class="btn btn-default" name="unsubscribe">Unsubscribe</button>
|
||||
</form>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue