[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.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user