mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD] pos_pms_link
This commit is contained in:
12
pos_pms_link/static/src/xml/ReservationSelectionButton.xml
Normal file
12
pos_pms_link/static/src/xml/ReservationSelectionButton.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="ReservationSelectionButton" owl="1">
|
||||
<div class="control-button">
|
||||
<i class="fa fa-sort" />
|
||||
<span> </span>
|
||||
<span>Reservation #</span>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?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">
|
||||
<xpath expr="//div[hasclass('paymentmethods')]" position="inside">
|
||||
<div class="button paymentmethod">
|
||||
<div class="payment-name" t-if="env.pos.config.pay_on_reservation" t-on-click="selectReservation">Reservation</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?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"/>
|
||||
<div class="client-details-box clearfix">
|
||||
<div class="client-details-left">
|
||||
<span class="detail client-partner-name" t-esc="props.reservation.partner_name"/><br/>
|
||||
<span class="detail client-aduls" t-esc="props.reservation.adults"/><br/>
|
||||
<span class="detail client-children" t-esc="props.reservation.children"/><br/>
|
||||
</div>
|
||||
<div class="client-details-right">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Service</th>
|
||||
<th>Lines</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<t t-foreach="props.reservation.service_ids" t-as="service" t-key="service.id">
|
||||
<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">
|
||||
<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']"/>
|
||||
</li>
|
||||
</t>
|
||||
</ul>
|
||||
</td>
|
||||
</t>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?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})">
|
||||
<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>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<t t-esc="props.reservation.partner_name" />
|
||||
</td>
|
||||
<td>
|
||||
<t t-esc="props.reservation.adults" />
|
||||
</td>
|
||||
<td>
|
||||
<t t-esc="props.reservation.children" />
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
@@ -0,0 +1,69 @@
|
||||
<?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="screen-content">
|
||||
<div class="top-content">
|
||||
<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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</div>
|
||||
</section>
|
||||
<section class="subwindow list">
|
||||
<div class="subwindow-container">
|
||||
<div t-if="!state.detailIsShown" class="subwindow-container-fix scrollable-y">
|
||||
<table class="client-list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Partner name</th>
|
||||
<th>Adults</th>
|
||||
<th>Children</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="client-list-contents">
|
||||
<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>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
Reference in New Issue
Block a user