[IMP] website: add btn_class on publish_management template
To be able to have publish buttons for the website of adaptable sizes.
example:
<t t-call="website.publish_management">
<t t-set="btn_class" t-value="'btn-group-xs'"/>
<t t-set="object" t-value="delivery"/>
<t t-set="publish_edit" t-value="True"/>
</t>
This commit is contained in:
committed by
Yannick Tivisse
parent
542201eed3
commit
b0e9416962
@@ -345,7 +345,7 @@
|
||||
<!-- Util template -->
|
||||
<template id="publish_management">
|
||||
<div groups="website.group_website_publisher" t-ignore="true" class="pull-right css_editable_mode_hidden" t-att-style="style or None">
|
||||
<div t-attf-class="btn-group js_publish_management #{object.website_published and 'css_published' or 'css_unpublished'}" t-att-data-id="object.id" t-att-data-object="object._name" t-att-data-controller="publish_controller">
|
||||
<div t-attf-class="btn-group #{btn_class} js_publish_management #{object.website_published and 'css_published' or 'css_unpublished'}" t-att-data-id="object.id" t-att-data-object="object._name" t-att-data-controller="publish_controller">
|
||||
<button class="btn btn-danger js_publish_btn">Unpublished</button>
|
||||
<button class="btn btn-success js_publish_btn">Published</button>
|
||||
<button type="button" t-attf-class="btn btn-default dropdown-toggle" t-att-id="'dopprod-%s' % object.id" data-toggle="dropdown">
|
||||
|
||||
Reference in New Issue
Block a user