diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-04-08 13:31:07 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-04-08 13:31:07 +0200 |
| commit | a43998c41f05f58f6fc053fa6824b527debb2068 (patch) | |
| tree | cffd656c52a1be9e5adaa77d85f64b6f68c7cdb6 /addons/web/static/src/xml/base.xml | |
| parent | a74eb749ae38784f370a9eeb073c3bbf09b35bbd (diff) | |
[IMP] web: stat buttons: some CSS fixes + added barchart button
that display a barchart. Whoo.
bzr revid: tde@openerp.com-20140408113107-y9zstny6a0ybi38l
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 1aa9dec8880..06d5ed58552 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1208,9 +1208,16 @@ </span> </t> <t t-name="FieldPercentPie"> - <span class="oe_form_field oe_form_field_percent_pie" t-att-style="widget.node.attrs.style"> + <div class="oe_form_field oe_form_field_percent_pie" t-att-style="widget.node.attrs.style"> <svg></svg> - </span> + <span t-if="widget.string"><t t-esc="widget.string"/></span> + </div> +</t> +<t t-name="FieldBarChart"> + <div class="oe_form_field oe_form_field_bar_chart" t-att-style="widget.node.attrs.style"> + <svg></svg> + <span t-if="widget.string"><t t-esc="widget.string"/></span> + </div> </t> <t t-name="FieldStatus"> <ul t-att-class="'oe_form_field_status ' + (widget.options.clickable ? 'oe_form_status_clickable' : 'oe_form_status')" t-att-style="widget.node.attrs.style"/> @@ -1380,7 +1387,7 @@ t-att-autofocus="widget.node.attrs.autofocus" t-att-accesskey="widget.node.attrs.accesskey"> <img t-if="!widget.is_stat_button and widget.node.attrs.icon " t-att-src="_s + widget.node.attrs.icon" width="16" height="16"/> - <div t-if="widget.is_stat_button" class="stat_button_icon"><t t-if="widget.icon" t-raw="widget.icon"/></div> + <div t-if="widget.is_stat_button and widget.icon" class="stat_button_icon"><t t-raw="widget.icon"/></div> <span t-if="widget.string and !widget.is_stat_button"><t t-esc="widget.string"/></span> <div t-if="widget.string and widget.is_stat_button"><t t-esc="widget.string"/></div> </button> @@ -1956,5 +1963,6 @@ <a href="javascript:void(0)"><t t-esc="text"/></a> </t> <t t-name="StatInfo"> - <strong><t t-esc="value"/></strong><br/><t t-esc="text"/></t> + <strong><t t-esc="value"/></strong> + <t t-esc="text"/></t> </templates> |
