diff options
| author | Christophe Matthieu <chm@openerp.com> | 2013-04-10 18:09:17 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@openerp.com> | 2013-04-10 18:09:17 +0200 |
| commit | f2beb97168c474b11b80eff24cab7ff4a450a2ab (patch) | |
| tree | c527cd26c56b682bf39598727de636c37f21bb6c /addons/web/static/src/xml | |
| parent | 60be4d49c5f5d74c140cf16fb6040528b6f222e8 (diff) | |
[IMP] view_form: radio button, replace image by input type radio
bzr revid: chm@openerp.com-20130410160917-4meevyiff65adspx
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index e89865e42e1..df289bbb2ea 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1118,23 +1118,23 @@ <t t-set="width" t-value="Math.floor(100 / widget.selection.length)"/> <t t-if="!widget.no_radiolabel"> <t t-foreach="widget.selection" t-as="selection"> - <div class="oe_radio_header" t-att-style="'width: ' + width + '%;'"><t t-esc="selection[1]"/></div> + <label t-att-for="widget.uniqueId + '_' + selection[0]" t-att-style="'width: ' + width + '%;'"><t t-esc="selection[1]"/></label> </t> <br/> </t> <t t-foreach="widget.selection" t-as="selection"> - <div class="oe_radio_input" t-att-style="'width: ' + width + '%;'" t-att-data-id="selection[0]">&nbsp;</div> + <input type="radio" t-att-name="widget.uniqueId" t-att-id="widget.uniqueId + '_' + selection[0]" t-att-style="'width: ' + width + '%;'" t-att-value="selection[0]"/> </t> </t> <t t-if="!widget.horizontal"> <t t-foreach="widget.selection" t-as="selection"> - <div class="oe_radio_header" t-att-data-id="selection[0]"> - <div class="oe_radio_input">&nbsp;</div><t t-if="!widget.no_radiolabel" t-esc="selection[1]"/> + <div t-att-data-id="selection[0]"> + <input type="radio" t-att-id="widget.uniqueId + '_' + selection[0]" t-att-name="widget.uniqueId" t-att-value="selection[0]"/>&nbsp;<label t-if="!widget.no_radiolabel" t-att-for="widget.uniqueId + '_' + selection[0]"><t t-esc="selection[1]"/></label> </div> </t> </t> </span> - <span class="oe_radio_read_only"><div class="oe_radio_header"><t t-esc="widget.get('value')[1]"/></div></span> + <span class="oe_radio_read_only"><t t-esc="widget.get('value')[1]"/></span> </span> </t> <t t-name="FieldMany2One"> |
