summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
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"/>