diff options
| author | Gaurav Panchal <gan@openerp.com> | 2015-08-27 11:34:21 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2015-08-27 16:59:47 +0200 |
| commit | 95cb54b80bcfabde0473770d1a082a2b398dafbe (patch) | |
| tree | b876796391c6a0175a7644a45fe0bd6431b88f92 /addons/web/static/src/css | |
| parent | 40cbf2bea132d89ccf81600f141613b3cc3cd993 (diff) | |
[ADD] web: add dynamic widget to toggle boolean button
Diffstat (limited to 'addons/web/static/src/css')
| -rw-r--r-- | addons/web/static/src/css/base.css | 6 | ||||
| -rw-r--r-- | addons/web/static/src/css/base.sass | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 10556c1e30f..91b8fe7e927 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -301,6 +301,12 @@ .openerp .oe_button_box .oe_stat_button { display: inline-table; } +.openerp .oe_button_box .oe_stat_button .o_stat_info:not(.is_true) > .o_stat_text.oe_true { + display: none; +} +.openerp .oe_button_box .oe_stat_button .o_stat_info.is_true > .o_stat_text.oe_false { + display: none; +} .openerp button.oe_toggle_button { box-shadow: none; white-space: nowrap; diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 64a73b8addd..f04f963ae37 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -359,6 +359,10 @@ $sheet-padding: 16px text-align: right .oe_stat_button display: inline-table + .o_stat_info:not(.is_true) > .o_stat_text.oe_true + display: none + .o_stat_info.is_true > .o_stat_text.oe_false + display: none button.oe_toggle_button box-shadow: none white-space: nowrap |
