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.
 
 
 
 
 

132 lines
6.2 KiB

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<!--This is used for creating a popup for booking orders-->
<t t-name="pos_book_order.BookOrderPopup">
<div class="popup popup-confirm">
<div class="modal-header">
<h4 class="modal-title title drag-handle">
<t t-esc="props.title"/>
</h4>
</div>
<main class="modal-body">
<t t-if="props.partner">
<label style="margin-right: 298px;">AMOUNT TOTAL</label>
<div>
<input class='form-control booking_field' name="amount"
type='text'
style="height:34px;border-radius:5px;"
t-att-value="order.get_total_with_tax()"
readonly="1"/>
</div>
<br/>
<br/>
<label style="margin-right: 333px;">CUSTOMER</label>
<div>
<input class='form-control booking_field' name="name"
type='text'
style="height:34px;border-radius:5px;"
t-att-value="props.partner.name" readonly="1"/>
</div>
<br/>
<br/>
<label style="margin-right: 185px;">PHONE CONTACT FOR DELIVERY(*)</label>
<div>
<input class='form-control booking_field' name="phone"
type='text' id="phone"
style="height:34px;border-radius:5px;"
t-att-value="props.partner.phone"
data-is-required="true"/>
</div>
</t>
<div class="radio"
style="width:100%;float: left;text-align: center;font-size: 23px;">
<label>Pickup</label>
<input type="radio" name="method" id="pickup"
style="width: auto;min-height: auto;margin-right: 28px;"
checked="checked" value="pickup" t-ref="pickup_radio"
t-on-click="showHide"/>
<label>Deliver</label>
<input type="radio" name="method" id="deliver"
style="width: auto;min-height: auto;"
value="deliver" t-ref="deliver_radio"
t-on-click="showHide"/>
</div>
<t t-if="order.pricelist">
<label style="margin-right: 324px;">PRICELIST(*)</label>
<div>
<input class='form-control booking_field'
name="pricelist" type='text'
style="height:34px;border-radius:5px;"
t-att-value="order.pricelist.display_name "
readonly="1"/>
</div>
<br/>
<br/>
</t>
<label style="margin-right: 293px;">BOOKING DATE(*)</label>
<div>
<input type="date" id='BookingDate' name="order_date"
class='form-control booking_field'
maxlength="10"
t-att-value="props.currentDate"/>
</div>
<br/>
<br/>
<label style="margin-right: 324px;">ORDER NOTE</label>
<div>
<textarea
t-ref="orderNote"
rows="1" cols="30" name="order_note"
class="form-control order_note"
placeholder="Enter your notes here..."/>
</div>
<br/>
<br/>
<div id="Method_pickup" t-ref="Method_pickup">
<label style="margin-right: 317px;">PICKUP DATE</label>
<div>
<input t-ref="pickUpDate"
name="pickup_date"
class='form-control booking_field'
id="pickup_date" type='date'
style="height:34px;border-radius:5px;"/>
</div>
</div>
<div id="Method_deliver" style="display:none"
t-ref="Method_deliver">
<label style="margin-right: 301px;">DELIVERY DATE</label>
<div>
<input t-ref="deliveryDate"
name="deliver_date"
class='form-control booking_field'
id="deliver_date" type='date'
style="height:34px;border-radius:5px;"/>
</div>
<br/>
<br/>
<t t-if="props.partner">
<label style="margin-right: 271px;">DELIVERY ADDRESS(*)</label>
<div>
<input class='form-control booking_field'
name="delivery_address" type='text'
id="delivery_address"
t-att-value="props.partner.address"
data-is-required="true"/>
</div>
</t>
</div>
</main>
<footer class="footer modal-footer">
<div class="button confirm btn btn-lg btn-primary"
t-on-click="confirm">
<t t-esc="props.confirmText"/>
</div>
<div class="button cancel btn btn-lg btn-secondary"
t-on-click="cancel">
<t t-esc="props.cancelText"/>
</div>
</footer>
</div>
</t>
</templates>