[IMP] turn many2many tags CSS classes into *real* generic classes, without any reference to other openerp elements like fields

oe_field_many2many_tags becomes oe_tags
oe_field_many2many_tag becomes oe_tag

bzr revid: abo@openerp.com-20120712133250-c2ss8ygqujx4m2w2
This commit is contained in:
Antonin Bourguignon 2012-07-12 15:32:50 +02:00
parent b83fff287a
commit ae44723e2b
3 changed files with 9 additions and 9 deletions

View File

@ -450,13 +450,13 @@
.openerp .oe_webclient .oe_star_on {
color: gold;
}
.openerp .oe_field_many2many_tags .text-wrap {
.openerp .oe_tags .text-wrap {
width: 100% !important;
}
.openerp .oe_field_many2many_tags .text-wrap textarea {
.openerp .oe_tags .text-wrap textarea {
width: 100% !important;
}
.openerp .oe_field_many2many_tags .oe_field_many2many_tag {
.openerp .oe_tags .oe_tag {
border-radius: 2px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
@ -472,7 +472,7 @@
height: 16px;
font: 11px "lucida grande", tahoma, verdana, arial, sans-serif;
}
.openerp .oe_field_many2many_tags .text-core .text-wrap .text-dropdown .text-list .text-suggestion em {
.openerp .oe_tags .text-core .text-wrap .text-dropdown .text-list .text-suggestion em {
font-style: italic;
text-decoration: none;
}

View File

@ -363,13 +363,13 @@ $sheet-max-width: 860px
.oe_star_on
color: gold
// }}}
// Many2many tags {{{
.oe_field_many2many_tags
// Tags (for many2many tags, among others) {{{
.oe_tags
.text-wrap
width: 100% !important
textarea
width: 100% !important
.oe_field_many2many_tag
.oe_tag
border-radius: 2px
@include box-sizing(border)
position: relative

View File

@ -963,7 +963,7 @@
</t>
<!-- Collection of m2m tags -->
<t t-name="FieldMany2ManyTags">
<div class="oe_form_field oe_field_many2many_tags" t-att-style="widget.node.attrs.style">
<div class="oe_form_field oe_tags" t-att-style="widget.node.attrs.style">
<t t-if="! widget.get('effective_readonly')">
<textarea rows="1" style="width: 100%"
t-att-placeholder="widget.node.attrs.placeholder"></textarea>
@ -974,7 +974,7 @@
<t t-name="FieldMany2ManyTag">
<t t-set="i" t-value="0"/>
<t t-foreach="elements" t-as="el">
<span class="oe_field_many2many_tag" t-att-data-index="i">
<span class="oe_tag" t-att-data-index="i">
<t t-esc="el[1]"/>
</span>
<t t-set="i" t-value="i + 1"/>