[IMP] website_event: move the option publish/unpublish

bzr revid: chm@openerp.com-20131107101206-dwueji94ailuo5zs
This commit is contained in:
Christophe Matthieu 2013-11-07 11:12:06 +01:00
parent 1052081b50
commit 11c54b7d75
2 changed files with 2 additions and 3 deletions

View File

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

View File

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