mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[REF] fix precommit
This commit is contained in:
committed by
Darío Lodeiros
parent
587aac7f96
commit
66a985eb36
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="ReservationSelectionButton" owl="1">
|
||||
|
||||
@@ -1,10 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="pos_pms_link.PaymentScreen" t-inherit="point_of_sale.PaymentScreen" t-inherit-mode="extension" owl="1">
|
||||
<t
|
||||
t-name="pos_pms_link.PaymentScreen"
|
||||
t-inherit="point_of_sale.PaymentScreen"
|
||||
t-inherit-mode="extension"
|
||||
owl="1"
|
||||
>
|
||||
<xpath expr="//div[hasclass('paymentmethods')]" position="inside">
|
||||
<div class="button paymentmethod">
|
||||
<div class="payment-name" t-if="env.pos.config.pay_on_reservation and currentOrder.paymentlines.length == 0" t-on-click="selectReservation">Reservation</div>
|
||||
<div
|
||||
class="payment-name"
|
||||
t-if="env.pos.config.pay_on_reservation and currentOrder.paymentlines.length == 0"
|
||||
t-on-click="selectReservation"
|
||||
>Reservation</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</t>
|
||||
|
||||
@@ -1,13 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="OrderReceipt" t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension" owl="1">
|
||||
<t
|
||||
t-name="OrderReceipt"
|
||||
t-inherit="point_of_sale.OrderReceipt"
|
||||
t-inherit-mode="extension"
|
||||
owl="1"
|
||||
>
|
||||
<xpath expr="//div[hasclass('before-footer')]" position="before">
|
||||
<t t-if="paid_on_reservation">
|
||||
<br/><br/>
|
||||
<br /><br />
|
||||
<div>
|
||||
Signature: <br/><br/>
|
||||
<span t-esc="reservation_name" style="font-size: 100%;"/><br/>
|
||||
Signature: <br /><br />
|
||||
<span t-esc="reservation_name" style="font-size: 100%;" /><br />
|
||||
-------------------
|
||||
</div>
|
||||
</t>
|
||||
|
||||
@@ -1,17 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="ReservationDetailsEdit" owl="1">
|
||||
<section class="client-details edit">
|
||||
<h3 class="detail client-name" t-esc="props.reservation.name"/>
|
||||
<h3 class="detail client-name" t-esc="props.reservation.name" />
|
||||
<div class="client-details-box clearfix">
|
||||
<div class="client-details-row">
|
||||
Name: <span class="detail client-partner-name" t-esc="props.reservation.partner_name"/><br/>
|
||||
Checkin: <span class="detail client-aduls" t-esc="props.reservation.checkin"/><br/>
|
||||
Checkout: <span class="detail client-aduls" t-esc="props.reservation.checkout"/><br/>
|
||||
Adults: <span class="detail client-aduls" t-esc="props.reservation.adults"/><br/>
|
||||
Children: <span class="detail client-children" t-esc="props.reservation.children"/><br/>
|
||||
Internal comment: <span class="detail client-aduls" t-esc="props.reservation.folio_internal_comment"/><br/>
|
||||
Name: <span
|
||||
class="detail client-partner-name"
|
||||
t-esc="props.reservation.partner_name"
|
||||
/><br />
|
||||
Checkin: <span
|
||||
class="detail client-aduls"
|
||||
t-esc="props.reservation.checkin"
|
||||
/><br />
|
||||
Checkout: <span
|
||||
class="detail client-aduls"
|
||||
t-esc="props.reservation.checkout"
|
||||
/><br />
|
||||
Adults: <span
|
||||
class="detail client-aduls"
|
||||
t-esc="props.reservation.adults"
|
||||
/><br />
|
||||
Children: <span
|
||||
class="detail client-children"
|
||||
t-esc="props.reservation.children"
|
||||
/><br />
|
||||
Internal comment: <span
|
||||
class="detail client-aduls"
|
||||
t-esc="props.reservation.folio_internal_comment"
|
||||
/><br />
|
||||
</div>
|
||||
<h3 class="detail client-name">Services:</h3>
|
||||
<div class="client-details-row">
|
||||
@@ -23,14 +41,28 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<t t-foreach="props.reservation.service_ids" t-as="service" t-key="service.id">
|
||||
<t
|
||||
t-foreach="props.reservation.service_ids"
|
||||
t-as="service"
|
||||
t-key="service.id"
|
||||
>
|
||||
<tr>
|
||||
<td t-esc="service_value['name']"/>
|
||||
<td t-esc="service_value['name']" />
|
||||
<td>
|
||||
<ul>
|
||||
<t t-foreach="service_value['service_line_ids']" t-as="line_service" t-key="line_service.id">
|
||||
<t
|
||||
t-foreach="service_value['service_line_ids']"
|
||||
t-as="line_service"
|
||||
t-key="line_service.id"
|
||||
>
|
||||
<li>
|
||||
<span t-esc="line_service_value['date']"/> - <span t-esc="line_service_value['product_id'][1]"/> - <span t-esc="line_service_value['day_qty']"/>
|
||||
<span
|
||||
t-esc="line_service_value['date']"
|
||||
/> - <span
|
||||
t-esc="line_service_value['product_id'][1]"
|
||||
/> - <span
|
||||
t-esc="line_service_value['day_qty']"
|
||||
/>
|
||||
</li>
|
||||
</t>
|
||||
</ul>
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="ReservationLine" owl="1">
|
||||
<tr t-attf-class="client-line {{highlight}}" t-att-data-id="props.reservation.id"
|
||||
t-on-click="trigger('click-reservation', {reservation: props.reservation})">
|
||||
<tr
|
||||
t-attf-class="client-line {{highlight}}"
|
||||
t-att-data-id="props.reservation.id"
|
||||
t-on-click="trigger('click-reservation', {reservation: props.reservation})"
|
||||
>
|
||||
<td>
|
||||
<t t-esc="props.reservation.name" />
|
||||
<span t-if="highlight">
|
||||
<br/><button class="edit-client-button" t-on-click.stop="trigger('click-edit')">VIEW</button>
|
||||
<br /><button
|
||||
class="edit-client-button"
|
||||
t-on-click.stop="trigger('click-edit')"
|
||||
>VIEW</button>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@@ -1,43 +1,71 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="ReservationListScreen" owl="1">
|
||||
<div class="clientlist-screen screen" t-on-activate-edit-mode="activateEditMode">
|
||||
<div
|
||||
class="clientlist-screen screen"
|
||||
t-on-activate-edit-mode="activateEditMode"
|
||||
>
|
||||
<div class="screen-content">
|
||||
<div class="top-content">
|
||||
<div t-if="isNextButtonVisible" t-on-click="clickNext"
|
||||
class="button next highlight">
|
||||
<div
|
||||
t-if="isNextButtonVisible"
|
||||
t-on-click="clickNext"
|
||||
class="button next highlight"
|
||||
>
|
||||
<t t-if="!env.isMobile">
|
||||
<t t-esc="nextButton.text" />
|
||||
</t>
|
||||
<t t-else="">
|
||||
<i t-if="nextButton.command === 'deselect'" class="fa fa-trash"></i>
|
||||
<i t-if="nextButton.command === 'set'" class="fa fa-check"></i>
|
||||
<i
|
||||
t-if="nextButton.command === 'deselect'"
|
||||
class="fa fa-trash"
|
||||
/>
|
||||
<i
|
||||
t-if="nextButton.command === 'set'"
|
||||
class="fa fa-check"
|
||||
/>
|
||||
</t>
|
||||
</div>
|
||||
<div class="button back" t-on-click="back">
|
||||
<t t-if="!env.isMobile">Discard</t>
|
||||
<t t-else="">
|
||||
<i class="fa fa-undo"></i>
|
||||
<i class="fa fa-undo" />
|
||||
</t>
|
||||
</div>
|
||||
<div t-if="!state.detailIsShown" class="searchbox-client top-content-center">
|
||||
<input placeholder="Search Reservations" size="1" t-on-keyup="updateReservationList" />
|
||||
<span class="search-clear-client"></span>
|
||||
<div
|
||||
t-if="!state.detailIsShown"
|
||||
class="searchbox-client top-content-center"
|
||||
>
|
||||
<input
|
||||
placeholder="Search Reservations"
|
||||
size="1"
|
||||
t-on-keyup="updateReservationList"
|
||||
/>
|
||||
<span class="search-clear-client" />
|
||||
</div>
|
||||
</div>
|
||||
<section class="full-content">
|
||||
<div class="client-window">
|
||||
<section class="subwindow collapsed">
|
||||
<div class="subwindow-container collapsed">
|
||||
<div t-if="state.detailIsShown" class="client-details-contents subwindow-container-fix">
|
||||
<ReservationDetailsEdit t-props="state.editModeProps" t-on-cancel-edit="cancelEdit"/>
|
||||
<div
|
||||
t-if="state.detailIsShown"
|
||||
class="client-details-contents subwindow-container-fix"
|
||||
>
|
||||
<ReservationDetailsEdit
|
||||
t-props="state.editModeProps"
|
||||
t-on-cancel-edit="cancelEdit"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="subwindow list">
|
||||
<div class="subwindow-container">
|
||||
<div t-if="!state.detailIsShown" class="subwindow-container-fix scrollable-y">
|
||||
<div
|
||||
t-if="!state.detailIsShown"
|
||||
class="subwindow-container-fix scrollable-y"
|
||||
>
|
||||
<table class="client-list">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -51,12 +79,17 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="client-list-contents">
|
||||
<t t-foreach="reservations" t-as="reservation"
|
||||
t-key="reservation.id">
|
||||
<ReservationLine reservation="reservation"
|
||||
<t
|
||||
t-foreach="reservations"
|
||||
t-as="reservation"
|
||||
t-key="reservation.id"
|
||||
>
|
||||
<ReservationLine
|
||||
reservation="reservation"
|
||||
selectedReservation="state.selectedReservation"
|
||||
detailIsShown="state.detailIsShown"
|
||||
t-on-click-reservation="clickReservation" />
|
||||
t-on-click-reservation="clickReservation"
|
||||
/>
|
||||
</t>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user