[FIX] web: BS4, restore statusbar "more" dropdown
This commit is contained in:
committed by
qsm-odoo
parent
6b84bdeaf9
commit
c0629cd757
@@ -886,9 +886,11 @@
|
||||
<t t-name="FieldStatus.content">
|
||||
<t t-if="selection_folded.length">
|
||||
<button type="button" class="btn o_arrow_button btn-secondary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">More</button>
|
||||
<div class="dropdown-menu o-status-more" role="menu">
|
||||
<div class="dropdown-menu" role="menu">
|
||||
<t t-foreach="selection_folded" t-as="i">
|
||||
<t t-call="FieldStatus.content.button"/>
|
||||
<t t-call="FieldStatus.content.button">
|
||||
<t t-set="is_dropdown" t-value="true"/>
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
</t>
|
||||
@@ -899,15 +901,15 @@
|
||||
<t t-name="FieldStatus.content.button">
|
||||
<t t-set="disabled" t-value="!clickable"/>
|
||||
<button type="button" t-att-data-value="i.id" disabled="disabled" title="Current state" aria-pressed="true"
|
||||
class="btn o_arrow_button btn-primary disabled" t-if="i.selected" aria-current="step">
|
||||
t-attf-class="btn o_arrow_button btn-primary disabled #{is_dropdown ? 'dropdown-item bg-primary text-white': ''}" t-if="i.selected" aria-current="step">
|
||||
<t t-esc="i.display_name" role="img" t-attf-aria-label="#{i.display_name} is current state"/>
|
||||
</button>
|
||||
<button type="button" t-att-data-value="i.id" disabled="disabled" title="Not active state" aria-pressed="false"
|
||||
class="btn o_arrow_button btn-secondary disabled" t-if="!i.selected and disabled">
|
||||
t-attf-class="btn o_arrow_button btn-secondary disabled #{is_dropdown ? 'dropdown-item': ''}" t-if="!i.selected and disabled">
|
||||
<t t-esc="i.display_name" role="img" t-attf-aria-label="#{i.display_name} is not current state"/>
|
||||
</button>
|
||||
<button type="button" t-att-data-value="i.id" title="Not active state, click to change it" aria-pressed="false"
|
||||
class="btn o_arrow_button btn-secondary" t-if="!i.selected and !disabled">
|
||||
t-attf-class="btn o_arrow_button btn-secondary #{is_dropdown ? 'dropdown-item': ''}" t-if="!i.selected and !disabled">
|
||||
<t t-esc="i.display_name" role="img" t-attf-aria-label="Click to change current state to #{i.display_name}"/>
|
||||
</button>
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user