[FIX] web : fix the dropdown style to delete attachments

This commit is contained in:
Jérome Maes
2015-02-26 16:41:29 +01:00
parent d169e6f935
commit 8ab68d8048
2 changed files with 16 additions and 13 deletions
+2 -1
View File
@@ -1092,7 +1092,8 @@
} }
.openerp .oe-view-manager-header .oe-view-manager-sidebar .oe_sidebar_delete_item { .openerp .oe-view-manager-header .oe-view-manager-sidebar .oe_sidebar_delete_item {
padding: 0; padding: 0;
display: inline-block; position: absolute;
right: 10px;
} }
.openerp .oe-view-manager-header .oe-view-manager-sidebar .dropdown-menu li a { .openerp .oe-view-manager-header .oe-view-manager-sidebar .dropdown-menu li a {
width: 100%; width: 100%;
+3 -1
View File
@@ -621,8 +621,10 @@
</t> </t>
<a class="oe_file_attachment" t-att-title="item.title or ''" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url"> <a class="oe_file_attachment" t-att-title="item.title or ''" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url">
<t t-raw="item.label"/> <t t-raw="item.label"/>
<span t-if="section.name == 'files' and !item.callback" class="oe_sidebar_delete_item" t-att-data-id="item.id" title="Delete this attachment">
<i class="fa fa-trash-o"/>
</span>
</a> </a>
<a t-if="section.name == 'files' and !item.callback" class="oe_sidebar_delete_item" t-att-data-id="item.id" title="Delete this attachment">x</a>
</li> </li>
<li t-if="section.name == 'files'" class="oe_sidebar_add_attachment"> <li t-if="section.name == 'files'" class="oe_sidebar_add_attachment">
<t t-call="HiddenInputFile"> <t t-call="HiddenInputFile">