summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2015-05-12 13:26:53 +0200
committerMartin Geubelle <mge@odoo.com>2015-05-12 17:16:19 +0200
commitcc6a6076dea4971259693cd27404a392164d34bd (patch)
tree691d804034788601292d66c2adda6ce0a88ede0f /addons/web/static/src/xml/base.xml
parenta86d6a7df980d55dd0af007f77c6bb039771525a (diff)
[ADD] web : progress bar widget + method for human readable big numbers
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 89c87d0b8df..564e90c8db1 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1102,6 +1102,22 @@
</ul>
</div>
</t>
+<t t-name="ProgressBar">
+ <div t-att-class="(widget.state.editable ? 'o_progress_bar_editable' : '')" t-att-style="'text-align: center; ' + (widget.state.editable ? 'cursor: pointer; ' : '')">
+ <div style="text-align: center; width: 15%; float: left;">
+ <t t-esc="widget.state.title"/>:
+ </div>
+ <div class="progress" style="text-align: center; width: 65%; float: left; margin-bottom: 0;">
+ <div class="progress-bar o_progress_bar_complete" t-att-style="'width: ' + widget.state.width_complete + '%'">
+ </div>
+ <div class="progress-bar o_progress_bar_over" t-att-style="'width: ' + widget.state.width_over + '%'">
+ </div>
+ </div>
+ <div style="width: 20%; display: inline-block;">
+ <t t-esc="widget._format_number(widget.state.current_value)"/> / <t t-esc="widget._format_number(widget.state.max_value)"/>
+ </div>
+ </div>
+</t>
<t t-name="Priority">
<ul style="list-style: none; padding-left: 2px; display: inline-block;">
<t t-foreach="widget.priorities" t-as="rec" >