[IMP] Dashboard: moved 'Create' button in title of action

bzr revid: fme@openerp.com-20111213165701-qirmbnuyztsrny8u
This commit is contained in:
Fabien Meghazi 2011-12-13 17:57:01 +01:00
parent fc1c009d15
commit 00c3cb84d8
2 changed files with 6 additions and 1 deletions

View File

@ -39,6 +39,11 @@
padding-bottom: 2px;
}
.openerp .oe_dashboard_button_create {
margin-left: 4px;
padding: 0 4px 0 4px;
}
.openerp a.oe-dashboard-action-rename {
float: left;
padding-right: 4px;

View File

@ -25,11 +25,11 @@
<h2 t-attf-class="oe-dashboard-action-header #{action.attrs.string ? '' : 'oe-dashboard-action-header-empty'}">
<t t-esc="action.attrs.string"/>
<t t-if="!action.attrs.string">&amp;nbsp;</t>
<button t-if="action.attrs.creatable and action.attrs.creatable !== 'false'" class="oe_dashboard_button_create">Create</button>
<span class='ui-icon ui-icon-closethick'></span>
<span class='ui-icon ui-icon-minusthick oe-dashboard-fold' t-if="!action.attrs.fold"></span>
<span class='ui-icon ui-icon-plusthick oe-dashboard-fold' t-if="action.attrs.fold"></span>
</h2>
<button t-if="action.attrs.creatable and action.attrs.creatable !== 'false'" class="oe_dashboard_button_create">Create</button>
<div t-attf-id="#{view.element_id}_action_#{column_index}_#{action_index}" class="oe-dashboard-action-content" t-att-style="action.attrs.fold ? 'display: none' : null"></div>
</div>
</t>