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.
133 lines
6.9 KiB
133 lines
6.9 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="menu_venue_booking" model="website.menu">
|
|
<field name="name">Venue Booking</field>
|
|
<field name="url">/venue/booking</field>
|
|
<field name="parent_id" ref="website.main_menu"/>
|
|
<field name="sequence">200</field>
|
|
</record>
|
|
<!-- Template for the Venue booking page-->
|
|
<template id="venue_booking_page" name="Venue Booking">
|
|
<t t-call="website.layout">
|
|
<div id="wrap" class="wrap venue-booking-widget">
|
|
<div class="container">
|
|
<div class="col-md-6">
|
|
<h1 class="head">
|
|
<b>Venue Booking</b>
|
|
</h1>
|
|
<div class="image"/>
|
|
</div>
|
|
<div class="col-md-6 body" t-ref="body">
|
|
<form action="/booking/submit">
|
|
<div class="form-group">
|
|
<label>From Date</label>
|
|
<input type="date" id="from_date"
|
|
name="from_date"
|
|
class="form-control link-style"
|
|
required="true"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label>To Date</label>
|
|
<input type="date" id="to_date" name="to_date"
|
|
class="form-control link-style"
|
|
required="true"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<select name="venue_type" id="venue_type"
|
|
class="form-control link-style" required="true">
|
|
<option value="">Select Venue</option>
|
|
<t t-foreach="venue_ids" t-as="venue_type">
|
|
<option t-att-value="venue_type.id">
|
|
<t t-esc="venue_type.name"/>
|
|
</option>
|
|
</t>
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Booking Type</label>
|
|
<select name="booking_type"
|
|
class="form-control link-style"
|
|
required="true">
|
|
<option value="">Choose Booking Type
|
|
</option>
|
|
<option value="day">
|
|
Day
|
|
</option>
|
|
<option value="hour">
|
|
Hour
|
|
</option>
|
|
</select>
|
|
</div>
|
|
<button type="submit" id="next" class="button">
|
|
Next
|
|
</button>
|
|
<div id="customer" class="d-none">
|
|
<div class="form-group">
|
|
<label for="name">Name</label>
|
|
<input type="text" placeholder='Enter Name'
|
|
class="form-control link-style"
|
|
name="name" required="true"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="city">City</label>
|
|
<input type="text" placeholder='City'
|
|
class="form-control link-style"
|
|
name="city"
|
|
required="true"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="state">State</label>
|
|
<select name="state"
|
|
class="form-control link-style"
|
|
required="true">
|
|
<t t-foreach="state_ids"
|
|
t-as="state_id">
|
|
<option t-esc="state_id.name"
|
|
t-att-value="state_id.id"/>
|
|
</t>
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="country">Country</label>
|
|
<select name="country"
|
|
class="form-control link-style"
|
|
required="true">
|
|
<t t-foreach="country_ids"
|
|
t-as="country_id">
|
|
<option t-esc="country_id.name"
|
|
t-att-value="country_id.id"/>
|
|
</t>
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Enter Mobile No</label>
|
|
<input type="tel"
|
|
placeholder='Mobile Number'
|
|
class="form-control link-style"
|
|
name="mobile_no"/>
|
|
</div>
|
|
<button type="submit" class="button">Confirm
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
<!-- Template used to redirect the booking page into success-->
|
|
<template id="venue_booking_success_page" name="Truck Booking">
|
|
<t t-call="website.layout">
|
|
<div id="wrap">
|
|
<div class="container">
|
|
<div class="col-md-12">
|
|
<div class="success">
|
|
Booking have been Created Successfully.
|
|
</div>
|
|
</div>
|
|
<a href="/venue/booking" class="link">Back to Booking</a>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
</odoo>
|
|
|