summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorMahendra Barad <mba@tinyerp.com>2014-05-08 18:01:56 +0200
committerThibault Delavallée <tde@openerp.com>2014-05-08 18:01:56 +0200
commitb4aa0eb76f8497bf4479b8c27636c464be09e68d (patch)
tree96f198c525b53f91232cf88e40f5fdd769b1d503 /addons/web/static/src/xml
parentdf2e290da53d6e41af48161c83c3520fde65c6ad (diff)
parent8bf965a865137cf96f7f5abb6dff5a2fc53d6dd5 (diff)
[MERGE] [ADD] kanban_state_selection widget, allowing to manage kanban_state-like selection fields using bullet + dropdown; priority widget allowing to manage priorities using stars.
bzr revid: tde@openerp.com-20140508160156-b2jekyiajkjp7bse
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml33
1 files changed, 33 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 75d4bdbb1c6..f801e6c7c71 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1029,6 +1029,39 @@
</t>
</span>
</t>
+<t t-name="KanbanSelection">
+ <div class="btn-group kanban_state">
+ <t t-foreach="widget.states" t-as="rec">
+ <a t-if="widget.get('value') === rec.name">
+ <a class="oe_legend dropdown-toggle" data-toggle="dropdown">
+ <span t-att-class="rec.state_class" t-if="widget.get('value') === rec.name" t-att-title="rec.tooltip"/>
+ <span class="sr-only">Toggle Dropdown</span>
+ </a>
+ </a>
+ </t>
+ <ul class="dropdown-menu state" role="menu">
+ <t t-foreach="widget.states" t-as="rec">
+ <t t-if="widget.get('value') !== rec.name">
+ <li class="oe_legend" t-att-data-value="rec.name" ><a href="#">
+ <span t-att-class="rec.state_class" t-att-title="rec.tooltip"/>
+ <t t-raw="rec.state_name" /></a>
+ </li>
+ </t>
+ </t>
+ </ul>
+ </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" >
+ <li t-att-data-value="rec.click_value" class="oe_legend" style="display: inline-block;">
+ <a href="#" t-att-title="rec.name">
+ <span t-att-class="widget.get('value') gte rec.value and 'oe_e oe_star_on' or 'oe_e oe_star_off'">7</span>
+ </a>
+ </li>
+ </t>
+ </ul>
+</t>
<t t-name="FieldEmail">
<span class="oe_form_field oe_form_field_email" t-att-style="widget.node.attrs.style">
<a t-if="widget.get('effective_readonly')" href="#" class="oe_form_uri" target="_blank"/>