|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<templates id="template" xml:space="preserve"> |
| 3 | + |
| 4 | + <t t-name="pos_salesperson.SalesLine"> |
| 5 | + <t t-if="ui.isSmall"> |
| 6 | + <div class="partner-info d-flex flex-column p-1 border-bottom" t-att-class="{'bg-primary-subtle': props.isSelected}" t-att-data-id="props.salesperson.id" t-on-click="() => this.props.onClickSalesPerson(props.salesperson)"> |
| 7 | + <div class="d-flex justify-content-between align-items-center p-1"> |
| 8 | + <div> |
| 9 | + <b t-esc="props.salesperson.name or ''" /> |
| 10 | + <div class="company-field text-bg-muted" t-esc="props.salesperson.parent_name or ''" /> |
| 11 | + </div> |
| 12 | + </div> |
| 13 | + <div class="partner-line-adress p-1" t-if="props.salesperson?.work_contact_id?.contact_address" t-esc="props.salesperson?.work_contact_id?.contact_address" /> |
| 14 | + <div class="partner-line-email p-1"> |
| 15 | + <div class="mb-1" t-if="props.salesperson?.work_contact_id?.phone"> |
| 16 | + <i class="fa fa-fw fa-phone me-2" /> |
| 17 | + <t t-esc="props.salesperson?.work_contact_id?.phone" /> |
| 18 | + </div> |
| 19 | + <div class="mb-1" t-if="props.salesperson?.work_contact_id?.mobile"> |
| 20 | + <i class="fa fa-fw fa-mobile me-2" /> |
| 21 | + <t t-esc="props.salesperson?.work_contact_id?.mobile" /> |
| 22 | + </div> |
| 23 | + <div t-if="props.salesperson?.work_contact_id?.email" class="email-field mb-1"> |
| 24 | + <i class="fa fa-fw fa-paper-plane-o me-2" /> |
| 25 | + <t t-esc="props.salesperson?.work_contact_id?.email" /> |
| 26 | + </div> |
| 27 | + </div> |
| 28 | + <div class="d-flex justify-content-between align-items-center p-1"> |
| 29 | + <button t-if="props.isSelected" t-on-click.stop="props.onClickUnselect" class="unselect-tag-mobile d-inline-block d-lg-none btn btn-light border ms-2"> |
| 30 | + <i class="fa fa-times me-1"></i> |
| 31 | + <span>UNSELECT</span> |
| 32 | + </button> |
| 33 | + </div> |
| 34 | + </div> |
| 35 | + </t> |
| 36 | + <t t-else=""> |
| 37 | + <tr class="partner-line partner-info" t-att-class="{'selected': props.isSelected}" t-att-data-id="props.salesperson.id" t-on-click="() => this.props.onClickSalesPerson(props.salesperson)"> |
| 38 | + <td> |
| 39 | + <b t-esc="props.salesperson.name or ''" /> |
| 40 | + <div class="company-field text-bg-muted" t-esc="props.salesperson.parent_name or ''" /> |
| 41 | + </td> |
| 42 | + <td> |
| 43 | + <div class="partner-line-adress" t-if="props.salesperson?.work_contact_id?.contact_address" t-esc="props.salesperson?.work_contact_id?.contact_address" /> |
| 44 | + </td> |
| 45 | + <td class="partner-line-email "> |
| 46 | + <div t-if="props.salesperson?.work_contact_id?.phone"> |
| 47 | + <i class="fa fa-fw fa-phone me-2"/> |
| 48 | + <t t-esc="props.salesperson?.work_contact_id?.phone"/> |
| 49 | + </div> |
| 50 | + <div t-if="props.salesperson?.work_contact_id?.mobile"> |
| 51 | + <i class="fa fa-fw fa-mobile me-2"/> |
| 52 | + <t t-esc="props.salesperson?.work_contact_id?.mobile"/> |
| 53 | + </div> |
| 54 | + <div t-if="props.salesperson?.work_contact_id?.email" class="email-field"> |
| 55 | + <i class="fa fa-fw fa-paper-plane-o me-2"/> |
| 56 | + <t t-esc="props.salesperson?.work_contact_id?.email" /> |
| 57 | + </div> |
| 58 | + </td> |
| 59 | + |
| 60 | + <td class="edit-partner-button-cell align-middle pe-0"> |
| 61 | + <button t-if="props.isSelected" t-on-click.stop="props.onClickUnselect" class="unselect-tag d-lg-inline-block d-none btn btn-link btn-lg mt-1 float-end"> |
| 62 | + <i class="fa fa-check"/> |
| 63 | + </button> |
| 64 | + </td> |
| 65 | + <td class="edit-partner-button-cell align-middle"> |
| 66 | + <Dropdown> |
| 67 | + <button class="btn btn-light btn-lg lh-lg border float-end"> |
| 68 | + <i class="fa fa-fw fa-bars"/> |
| 69 | + </button> |
| 70 | + <t t-set-slot="content"> |
| 71 | + </t> |
| 72 | + </Dropdown> |
| 73 | + </td> |
| 74 | + </tr> |
| 75 | + </t> |
| 76 | + </t> |
| 77 | + |
| 78 | +</templates> |
0 commit comments