[IMP] website_event: move the option publish/unpublish
bzr revid: chm@openerp.com-20131107101206-dwueji94ailuo5zs
This commit is contained in:
parent
1052081b50
commit
11c54b7d75
|
@ -258,8 +258,7 @@
|
|||
</template>
|
||||
|
||||
<template id="publish_management">
|
||||
<t t-if="editable" t-ignore="true">
|
||||
<div class="pull-right">
|
||||
<div t-if="editable" t-ignore="true" class="pull-right" t-att-style="style or ''">
|
||||
<div t-attf-class="btn-group dropdown js_publish_management #{object.id and object.website_published and 'css_publish' or 'css_unpublish'}" t-att-data-id="object.id" t-att-data-object="object._name" t-att-data-controller="publish_controller">
|
||||
<a t-attf-class="btn btn-sm btn-#{object.id and object.website_published and 'success' or 'default'}" t-att-id="'dopprod-%s' % object.id" role="button" data-toggle="dropdown">Options <span class="caret"></span></a>
|
||||
<ul class="dropdown-menu" role="menu" t-att-aria-labelledby="'dopprod-%s' % object.id">
|
||||
|
@ -275,7 +274,6 @@
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
<template id="publish_short">
|
||||
|
|
|
@ -200,6 +200,7 @@
|
|||
<t t-set="object" t-value="event_id"/>
|
||||
<t t-set="publish_edit" t-value="True"/>
|
||||
<t t-set="publish_controller">/event/publish</t>
|
||||
<t t-set="style">position: relative; top: -80px;</t>
|
||||
</t>
|
||||
<h4>Where</h4>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue