[IMP] web: Display switch company boxes on the left

This commit is contained in:
Yannick Tivisse
2019-06-04 14:25:11 +02:00
parent 318fa03020
commit 3295c7dcf7
+10 -10
View File
@@ -1570,6 +1570,16 @@
</t>
<t t-foreach="widget.user_companies" t-as="company">
<div role="menuitem" href="#" class="dropdown-item d-flex py-0 px-0" data-menu="company" t-att-data-company-id="company[0]">
<div class="ml-auto pl-3 pr-3 border border-top-0 border-left-0 border-bottom-0 toggle_company o_py">
<span style="height: 2rem;">
<t t-if="widget.allowed_company_ids.includes(company[0].toString())">
<i class="fa fa-fw fa-check-square pt-2"></i>
</t>
<t t-if="!widget.allowed_company_ids.includes(company[0].toString())">
<i class="fa fa-fw fa-square-o pt-2"></i>
</t>
</span>
</div>
<div class="d-flex flex-grow-1 align-items-center py-0 log_into pl-3 o_py" t-att-style="company[0] === widget.current_company ? 'background-color: lightgrey;' : ''">
<t t-if="widget.allowed_company_ids.includes(company[0].toString())">
<span class='mr-3 company_label'>
@@ -1582,16 +1592,6 @@
</span>
</t>
</div>
<div class="ml-auto pl-3 pr-3 border border-top-0 border-right-0 border-bottom-0 toggle_company o_py">
<span style="height: 2rem;">
<t t-if="widget.allowed_company_ids.includes(company[0].toString())">
<i class="fa fa-fw fa-check-square pt-2"></i>
</t>
<t t-if="!widget.allowed_company_ids.includes(company[0].toString())">
<i class="fa fa-fw fa-square-o pt-2"></i>
</t>
</span>
</div>
</div>
</t>
</div>