summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorAlexandre Kühn <alexkuhn@users.noreply.github.com>2017-11-20 10:47:43 +0100
committerGitHub <noreply@github.com>2017-11-20 10:47:43 +0100
commit23e6dd36d7477f13fe42fdcaae890ffb690d05a4 (patch)
treee797dc6b2a29d4d106c86dd937761c405399e4f4 /addons/web/static/src/xml
parent7d2666d020215d8d8fe36c32f4a8e049e5d7915c (diff)
[IMP] web: hide in kanban tag's color (#20815)
New feature: - New Transparent tag visual (grey border & text, white bg), - By default, newly created kanban tags are transparent, - Tag's colorpicker has now a 'Hide in Kanban' checkbox, to select the transparent color. Toggling off 'Hide in Kanban' sets the color of the tag as follow: - Previous color, if 'Hide in Kanban' was toggled on on the same formview session. - Color 1 (dark orange), otherwise.
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml19
1 files changed, 14 insertions, 5 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index f1af2e7d762..78ffa4cac1e 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -792,14 +792,23 @@
</t>
</t>
<t t-name="FieldMany2ManyTag.colorpicker">
- <div class="o_colorpicker dropdown-menu" role="menu">
+ <div class="o_colorpicker dropdown-menu tagcolor_dropdown_menu" role="menu">
<ul>
- <li t-foreach="12" t-as="color">
+ <li t-foreach="11" t-as="color">
<a href="#"
t-att-data-id="tag_id"
- t-att-data-color="color"
- t-attf-class="o_tag_color_#{color}"
- t-att-title="color === 0 ? 'Not shown in kanban' : ''"/>
+ t-att-data-color="color+1"
+ t-attf-class="o_tag_color_#{color+1}"/>
+ </li>
+ <li> <!-- checkbox for tag color 0 -->
+ <div class="o_hide_in_kanban"
+ t-att-data-id="tag_id"
+ t-att-data-color="0">
+ <div class="o_checkbox">
+ <input type="checkbox"/>
+ <span/>
+ </div> Hide in Kanban
+ </div>
</li>
</ul>
</div>