You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
3.5 KiB
70 lines
3.5 KiB
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<!-- Wb menu for the pre-booking-->
|
|
<record id="menu_service" model="website.menu">
|
|
<field name="name">Track PreBookings</field>
|
|
<field name="url">/my/prebookings</field>
|
|
<field name="parent_id" ref="website.main_menu"/>
|
|
<field name="sequence" type="int">31</field>
|
|
</record>
|
|
<!-- Template for the pre-booking order Track-->
|
|
<template id="my_booking_template">
|
|
<t t-call="portal.portal_layout">
|
|
<form action="/track/prebooking" enctype="multipart/form-data" method="post">
|
|
<div class="wrap" style="top:110px;">
|
|
<h6 style="text-align:center; margin-top:35mm;">TRACK YOUR BOOKING</h6>
|
|
<div class="search">
|
|
<input type="text" class="searchTerm" name="reference" required=""
|
|
placeholder="Enter your booking reference"/>
|
|
<button type="submit" class="searchButton">
|
|
<i class="fa fa-search"> </i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<t t-if="reference">
|
|
<table class="my_time_off_table" style="margin-top: 109px; width:100%; margin-left:20px;">
|
|
<thead style="display: table-row-group; background-color:#8DB2D7; border: 0.3rem solid #8DB2D7;
|
|
border-bottom: none;">
|
|
<tr>
|
|
<th class="" style="width: 20%; color: white;" scope="col">
|
|
Booking Reference
|
|
</th>
|
|
<th class="" style="width: 20%; color: white;" scope="col">
|
|
Product
|
|
</th>
|
|
<th class="" style="width: 20%; color: white;" scope="col">
|
|
Booking Date
|
|
</th>
|
|
<th class="" style="width: 20%; color: white;" scope="col">
|
|
Status
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<body>
|
|
<td style="border: 0.15rem solid black; border-top: none;">
|
|
<t t-esc="reference"/>
|
|
</td>
|
|
<td style="border: 0.15rem solid black; border-top: none;">
|
|
<t t-esc="product"/>
|
|
</td>
|
|
<td style="border: 0.15rem solid black; border-top: none;">
|
|
<t t-esc="date"/>
|
|
</td>
|
|
<td style="border: 0.15rem solid black; border-top: none;">
|
|
<t t-esc="status"/>
|
|
</td>
|
|
</body>
|
|
</table>
|
|
</t>
|
|
<t t-if="vals">
|
|
<div style="margin-top:109px; color: red;">
|
|
<h5 style="text-align:center;">No bookings found...!</h5>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
</form>
|
|
</t>
|
|
</template>
|
|
</odoo>
|
|
|
|
|