692 lines
36 KiB
XML
692 lines
36 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Inherit and Override Catalog Page -->
|
|
<template id="rental_catalog_template_inherit" inherit_id="event_rental.rental_catalog_template">
|
|
<xpath expr="//div[@id='wrap']" position="replace">
|
|
<!-- Inject Custom Styles and Google Fonts -->
|
|
<style>
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Playball&display=swap');
|
|
|
|
#wrap {
|
|
background-color: #FAF8F5 !important;
|
|
font-family: 'Inter', sans-serif !important;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6, .display-4, .display-3 {
|
|
font-family: 'Outfit', sans-serif !important;
|
|
font-weight: 600;
|
|
color: #1A1519;
|
|
}
|
|
|
|
/* Signature Accent Font */
|
|
.aakriti-cursive {
|
|
font-family: 'Playball', cursive !important;
|
|
color: #C5A880 !important;
|
|
font-size: 2.2rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* Brand colors */
|
|
.text-brand-plum {
|
|
color: #714B67 !important;
|
|
}
|
|
.bg-brand-plum {
|
|
background-color: #714B67 !important;
|
|
color: #ffffff !important;
|
|
}
|
|
.text-brand-gold {
|
|
color: #C5A880 !important;
|
|
}
|
|
.bg-brand-gold {
|
|
background-color: #C5A880 !important;
|
|
color: #ffffff !important;
|
|
}
|
|
|
|
/* Hero Slider Style Banner */
|
|
.aakriti-hero {
|
|
position: relative;
|
|
background: linear-gradient(rgba(113, 75, 103, 0.8), rgba(26, 21, 25, 0.9)),
|
|
url('https://images.unsplash.com/photo-1519167758481-83f550bb49b3?q=80&w=1920') no-repeat center center;
|
|
background-size: cover;
|
|
color: white;
|
|
padding: 90px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.aakriti-hero h1 {
|
|
color: #ffffff !important;
|
|
font-weight: 800;
|
|
letter-spacing: -1px;
|
|
}
|
|
|
|
.aakriti-hero p {
|
|
font-weight: 300;
|
|
color: #F3EFF2;
|
|
max-width: 700px;
|
|
margin: 15px auto 0;
|
|
font-size: 1.1rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Sidebar Filter Styling */
|
|
.filter-card {
|
|
background: #ffffff;
|
|
border: 1px solid #EAE5E8;
|
|
border-radius: 16px;
|
|
box-shadow: 0 4px 20px rgba(113, 75, 103, 0.03);
|
|
}
|
|
|
|
.filter-title {
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.5px;
|
|
border-bottom: 2px solid #F3EFF2;
|
|
padding-bottom: 15px;
|
|
color: #714B67;
|
|
}
|
|
|
|
.list-group-item {
|
|
border: none !important;
|
|
padding: 12px 16px !important;
|
|
border-radius: 8px !important;
|
|
margin-bottom: 4px;
|
|
font-size: 0.95rem;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.list-group-item:hover {
|
|
background-color: #FAF4F8 !important;
|
|
color: #714B67 !important;
|
|
transform: translateX(3px);
|
|
}
|
|
|
|
.list-group-item.active-category {
|
|
background-color: #714B67 !important;
|
|
color: #ffffff !important;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Search Bar Styling */
|
|
.search-input {
|
|
border-radius: 30px !important;
|
|
border: 1.5px solid #EAE5E8 !important;
|
|
padding: 24px 20px !important;
|
|
font-size: 1rem !important;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.search-input:focus {
|
|
border-color: #714B67 !important;
|
|
box-shadow: 0 4px 15px rgba(113, 75, 103, 0.1) !important;
|
|
}
|
|
|
|
.search-btn {
|
|
border-radius: 30px !important;
|
|
background-color: #714B67 !important;
|
|
border: none !important;
|
|
padding: 12px 28px !important;
|
|
font-weight: 600;
|
|
letter-spacing: 0.5px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.search-btn:hover {
|
|
background-color: #59294C !important;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(113, 75, 103, 0.3) !important;
|
|
}
|
|
|
|
/* Product Card Styling */
|
|
.premium-card {
|
|
background: #ffffff;
|
|
border: 1px solid #EAE5E8;
|
|
border-radius: 16px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 20px rgba(113, 75, 103, 0.03);
|
|
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
}
|
|
|
|
.premium-card:hover {
|
|
transform: translateY(-8px);
|
|
box-shadow: 0 12px 30px rgba(113, 75, 103, 0.08);
|
|
border-color: #C5A880;
|
|
}
|
|
|
|
.img-container {
|
|
position: relative;
|
|
height: 220px;
|
|
overflow: hidden;
|
|
background-color: #F8F5F7;
|
|
}
|
|
|
|
.img-container img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.5s ease;
|
|
}
|
|
|
|
.premium-card:hover .img-container img {
|
|
transform: scale(1.08);
|
|
}
|
|
|
|
.card-price {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: #C5A880; /* Champagne Gold color */
|
|
}
|
|
|
|
.card-action-btn {
|
|
border-radius: 20px;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
border: 1.5px solid #714B67;
|
|
color: #714B67;
|
|
background: transparent;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.card-action-btn:hover {
|
|
background-color: #714B67 !important;
|
|
color: white !important;
|
|
}
|
|
</style>
|
|
|
|
<div id="wrap" class="oe_structure oe_empty">
|
|
<!-- Premium Hero Section -->
|
|
<div class="aakriti-hero">
|
|
<div class="container">
|
|
<span class="aakriti-cursive mb-2 d-block">Aakriti Design | Events</span>
|
|
<h1 class="display-4 text-white">Transforming Venues, Creating Memories</h1>
|
|
<p>Bespoke event decoration and luxury equipment rentals curated with elegance, cultural understanding, and impeccable detail.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Main Section -->
|
|
<div class="container py-5">
|
|
<div class="row">
|
|
<!-- Filters (Left Sidebar) -->
|
|
<div class="col-lg-3 mb-4">
|
|
<div class="filter-card p-4">
|
|
<h5 class="filter-title mb-4">RENTAL CATEGORIES</h5>
|
|
<div class="list-group">
|
|
<a t-att-href="'/rentals' + (search and ('?search=' + search) or '')"
|
|
t-att-class="'list-group-item list-group-item-action ' + (not current_category and 'active-category' or '')">
|
|
All Collections
|
|
</a>
|
|
<t t-foreach="categories" t-as="cat">
|
|
<a t-att-href="'/rentals?category=' + str(cat.id) + (search and ('&search=' + search) or '')"
|
|
t-att-class="'list-group-item list-group-item-action ' + (current_category == cat.id and 'active-category' or '')">
|
|
<span t-field="cat.name"/>
|
|
</a>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Catalog Grid (Right Panel) -->
|
|
<div class="col-lg-9">
|
|
<!-- Premium Search -->
|
|
<div class="mb-5">
|
|
<form action="/rentals" method="get" class="d-flex">
|
|
<input type="hidden" name="category" t-att-value="current_category" t-if="current_category"/>
|
|
<input type="text" name="search" class="form-control search-input" placeholder="Search our premium inventory..." t-att-value="search"/>
|
|
<button type="submit" class="btn btn-primary search-btn ml-2">Search</button>
|
|
</form>
|
|
</div>
|
|
|
|
<!-- Products Grid -->
|
|
<div class="row" t-if="products">
|
|
<t t-foreach="products" t-as="product">
|
|
<div class="col-md-4 col-sm-6 mb-4">
|
|
<div class="premium-card h-100 d-flex flex-column">
|
|
<a t-att-href="'/rentals/%s' % slug(product)">
|
|
<div class="img-container">
|
|
<img t-if="product.image_1920" t-att-src="image_data_uri(product.image_1920)"/>
|
|
<div t-else="" class="d-flex align-items-center justify-content-center h-100 text-muted bg-light">
|
|
<i class="fa fa-picture-o fa-3x"></i>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
<div class="card-body d-flex flex-column p-4">
|
|
<h5 class="font-weight-bold mb-2" style="font-size: 1.05rem; line-height: 1.4; min-height: 44px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;">
|
|
<a t-att-href="'/rentals/%s' % slug(product)" class="text-dark text-decoration-none" t-field="product.name"/>
|
|
</h5>
|
|
<p class="text-muted flex-grow-1 mb-3" style="font-size: 0.85rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;" t-out="product.description_sale or 'Luxury styling and bespoke design options.'"/>
|
|
<div class="d-flex justify-content-between align-items-center pt-3 border-top mt-auto">
|
|
<div>
|
|
<span class="card-price">
|
|
<span t-field="product.rental_price_per_day" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
|
</span>
|
|
<span class="text-muted" style="font-size: 0.75rem;">/day</span>
|
|
</div>
|
|
<a t-att-href="'/rentals/%s' % slug(product)" class="btn btn-sm card-action-btn px-3">Rent</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
<div t-else="" class="text-center py-5 filter-card p-5">
|
|
<i class="fa fa-search fa-3x text-muted mb-3"></i>
|
|
<h4 class="font-weight-bold">No rental items found</h4>
|
|
<p class="text-muted">Modify your filter categories or search query.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
|
|
<!-- Inherit and Override Product Detail Page -->
|
|
<template id="rental_product_detail_template_inherit" inherit_id="event_rental.rental_product_detail_template">
|
|
<xpath expr="//div[@id='wrap']" position="replace">
|
|
<style>
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Playball&display=swap');
|
|
|
|
#wrap {
|
|
background-color: #FAF8F5 !important;
|
|
font-family: 'Inter', sans-serif !important;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-family: 'Outfit', sans-serif !important;
|
|
font-weight: 700;
|
|
color: #1A1519;
|
|
}
|
|
|
|
.aakriti-cursive {
|
|
font-family: 'Playball', cursive !important;
|
|
color: #C5A880 !important;
|
|
}
|
|
|
|
.breadcrumb-link {
|
|
color: #714B67;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.detail-card {
|
|
background: #ffffff;
|
|
border: 1px solid #EAE5E8;
|
|
border-radius: 16px;
|
|
box-shadow: 0 4px 25px rgba(113, 75, 103, 0.02);
|
|
}
|
|
|
|
.detail-price {
|
|
font-size: 2.5rem;
|
|
font-weight: 800;
|
|
color: #714B67;
|
|
}
|
|
|
|
.detail-action-btn {
|
|
border-radius: 30px !important;
|
|
background-color: #714B67 !important;
|
|
border: none !important;
|
|
padding: 16px 24px !important;
|
|
font-weight: 700;
|
|
letter-spacing: 0.5px;
|
|
font-size: 1rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.detail-action-btn:hover {
|
|
background-color: #59294C !important;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 18px rgba(113, 75, 103, 0.3) !important;
|
|
}
|
|
|
|
.terms-title {
|
|
font-size: 1.4rem;
|
|
border-left: 4px solid #C5A880;
|
|
padding-left: 12px;
|
|
color: #714B67;
|
|
}
|
|
</style>
|
|
|
|
<div id="wrap" class="py-5">
|
|
<div class="container">
|
|
<div class="row">
|
|
<!-- Product Gallery -->
|
|
<div class="col-md-6 mb-4">
|
|
<div class="detail-card p-3">
|
|
<div style="height: 450px; overflow: hidden; border-radius: 10px; background-color: #F8F5F7;">
|
|
<img t-if="product.image_1920" t-att-src="image_data_uri(product.image_1920)" class="w-100 h-100" style="object-fit: cover;"/>
|
|
<div t-else="" class="d-flex align-items-center justify-content-center h-100 text-muted bg-light">
|
|
<i class="fa fa-picture-o fa-5x"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Product Purchase Details -->
|
|
<div class="col-md-6">
|
|
<div class="detail-card p-4 p-md-5 h-100 d-flex flex-column">
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb bg-transparent p-0 mb-4" style="font-size: 0.85rem;">
|
|
<li class="breadcrumb-item"><a href="/rentals" class="breadcrumb-link">Collections</a></li>
|
|
<li class="breadcrumb-item active text-muted" aria-current="page">
|
|
<span t-field="product.name"/>
|
|
</li>
|
|
</ol>
|
|
</nav>
|
|
<span class="aakriti-cursive mb-1 d-block" style="font-size: 1.5rem;">Bespoke Design Collection</span>
|
|
<h1 class="display-5 mb-3" style="font-size: 2.2rem;" t-field="product.name"/>
|
|
|
|
<div class="mb-4">
|
|
<span t-if="product.qty_available > 0" class="badge badge-pill badge-success p-2 px-3" style="background-color: #28a745; font-size: 0.8rem; font-weight: 600;">In Stock & Available</span>
|
|
<span t-else="" class="badge badge-pill badge-warning p-2 px-3" style="font-size: 0.8rem; font-weight: 600;">Custom Order - Checking Dates</span>
|
|
</div>
|
|
|
|
<div class="my-4 py-3 border-top border-bottom d-flex align-items-baseline">
|
|
<span class="detail-price">
|
|
<span t-field="product.rental_price_per_day" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
|
</span>
|
|
<span class="text-muted ml-2 font-weight-normal lead" style="font-size: 1.15rem;">/ Day</span>
|
|
</div>
|
|
|
|
<h5 class="font-weight-bold mb-2" style="font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px; color: #714B67;">Product Description</h5>
|
|
<p class="text-muted mb-5" style="line-height: 1.6; font-size: 0.95rem;" t-field="product.description_sale"/>
|
|
|
|
<div class="mt-auto">
|
|
<a t-att-href="'/rental/request?product_id=%s' % product.product_variant_id.id" class="btn btn-primary btn-lg btn-block detail-action-btn shadow-sm">
|
|
Request Booking Quotation
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mt-5" t-if="product.rental_terms">
|
|
<div class="col-12">
|
|
<div class="detail-card p-5 bg-white">
|
|
<h4 class="font-weight-bold terms-title mb-4">RESERVATION TERMS & GENERAL POLICIES</h4>
|
|
<div class="text-muted" style="line-height: 1.7; font-size: 0.95rem;" t-field="product.rental_terms"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
|
|
<!-- Inherit and Override Request Form Template -->
|
|
<template id="rental_request_form_template_inherit" inherit_id="event_rental.rental_request_form_template">
|
|
<xpath expr="//div[@id='wrap']" position="replace">
|
|
<style>
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Playball&display=swap');
|
|
|
|
#wrap {
|
|
background-color: #FAF8F5 !important;
|
|
font-family: 'Inter', sans-serif !important;
|
|
}
|
|
|
|
h2, h4, h5 {
|
|
font-family: 'Outfit', sans-serif !important;
|
|
font-weight: 700;
|
|
color: #1A1519;
|
|
}
|
|
|
|
.aakriti-cursive {
|
|
font-family: 'Playball', cursive !important;
|
|
color: #C5A880 !important;
|
|
}
|
|
|
|
.form-container {
|
|
background: #ffffff;
|
|
border: 1px solid #EAE5E8;
|
|
border-radius: 20px;
|
|
box-shadow: 0 4px 30px rgba(113, 75, 103, 0.03);
|
|
}
|
|
|
|
.section-header {
|
|
color: #714B67;
|
|
border-left: 4px solid #C5A880;
|
|
padding-left: 12px;
|
|
font-size: 1.15rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.5px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.form-control {
|
|
border-radius: 8px !important;
|
|
border: 1.5px solid #EAE5E8 !important;
|
|
padding: 12px 16px !important;
|
|
font-size: 0.95rem !important;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.form-control:focus {
|
|
border-color: #714B67 !important;
|
|
box-shadow: 0 0 0 3px rgba(113, 75, 103, 0.1) !important;
|
|
}
|
|
|
|
.form-group label {
|
|
font-weight: 600;
|
|
color: #4A3E48;
|
|
font-size: 0.9rem;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.submit-btn {
|
|
border-radius: 30px !important;
|
|
background-color: #714B67 !important;
|
|
border: none !important;
|
|
padding: 16px 24px !important;
|
|
font-weight: 700;
|
|
letter-spacing: 0.5px;
|
|
font-size: 1.05rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.submit-btn:hover {
|
|
background-color: #59294C !important;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 18px rgba(113, 75, 103, 0.3) !important;
|
|
}
|
|
|
|
.upload-box {
|
|
border: 2px dashed #C5A880;
|
|
padding: 20px;
|
|
border-radius: 12px;
|
|
background: #FAF8F5;
|
|
text-align: center;
|
|
transition: all 0.2s ease;
|
|
}
|
|
</style>
|
|
|
|
<div id="wrap" class="py-5">
|
|
<div class="container col-lg-8 col-md-10">
|
|
<div class="form-container p-4 p-md-5 bg-white">
|
|
<div class="text-center mb-5">
|
|
<span class="aakriti-cursive d-block" style="font-size: 1.8rem;">Let's Design Together</span>
|
|
<h2 class="display-5" style="font-size: 2rem;">Inquire About Your Event</h2>
|
|
<p class="text-muted" style="max-width: 600px; margin: 8px auto 0; font-size: 0.95rem;">Enter details below. Our reservations engine will instantly check stock availability and generate an itemized quote.</p>
|
|
</div>
|
|
|
|
<!-- Error Alert -->
|
|
<div class="alert alert-danger p-3 mb-4" role="alert" style="border-radius: 10px;" t-if="error_message">
|
|
<i class="fa fa-exclamation-circle mr-2"></i> <t t-out="error_message"/>
|
|
</div>
|
|
|
|
<form action="/rental/request" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
|
|
|
|
<!-- Customer Details -->
|
|
<h5 class="section-header mb-4">1. Customer Information</h5>
|
|
<div class="row">
|
|
<div class="form-group col-md-6 mb-3">
|
|
<label for="customer_name">Full Name <span class="text-danger">*</span></label>
|
|
<input type="text" name="customer_name" id="customer_name" class="form-control" required="1" t-att-value="post.get('customer_name', '')"/>
|
|
</div>
|
|
<div class="form-group col-md-6 mb-3">
|
|
<label for="customer_email">Email Address <span class="text-danger">*</span></label>
|
|
<input type="email" name="customer_email" id="customer_email" class="form-control" required="1" t-att-value="post.get('customer_email', '')"/>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="form-group col-md-6 mb-3">
|
|
<label for="customer_phone">Mobile Number <span class="text-danger">*</span></label>
|
|
<input type="tel" name="customer_phone" id="customer_phone" class="form-control" required="1" t-att-value="post.get('customer_phone', '')"/>
|
|
</div>
|
|
<div class="form-group col-md-6 mb-3">
|
|
<label for="company_name">Company Name <span class="text-muted">(Optional)</span></label>
|
|
<input type="text" name="company_name" id="company_name" class="form-control" t-att-value="post.get('company_name', '')"/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group mb-4">
|
|
<label for="customer_address">Full Delivery Address</label>
|
|
<textarea name="customer_address" id="customer_address" rows="2" class="form-control" placeholder="Provide complete delivery address..."><t t-out="post.get('customer_address', '')"/></textarea>
|
|
</div>
|
|
|
|
<hr class="my-4" style="border-top: 1px solid #FAF4F8;"/>
|
|
|
|
<!-- Event Details -->
|
|
<h5 class="section-header mb-4">2. Event & Schedule Details</h5>
|
|
<div class="row">
|
|
<div class="form-group col-md-6 mb-3">
|
|
<label for="start_date">Rental Start Date & Time <span class="text-danger">*</span></label>
|
|
<input type="datetime-local" name="start_date" id="start_date" class="form-control" required="1" t-att-value="post.get('start_date', '')"/>
|
|
</div>
|
|
<div class="form-group col-md-6 mb-3">
|
|
<label for="end_date">Rental End Date & Time <span class="text-danger">*</span></label>
|
|
<input type="datetime-local" name="end_date" id="end_date" class="form-control" required="1" t-att-value="post.get('end_date', '')"/>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="form-group col-md-6 mb-3">
|
|
<label for="location">Event Venue Location <span class="text-danger">*</span></label>
|
|
<input type="text" name="location" id="location" class="form-control" required="1" t-att-value="post.get('location', '')" placeholder="City or Venue Hall name"/>
|
|
</div>
|
|
<div class="form-group col-md-6 mb-3">
|
|
<label for="event_type">Event Type <span class="text-danger">*</span></label>
|
|
<select name="event_type" id="event_type" class="form-control" required="1">
|
|
<option value="wedding" t-att-selected="post.get('event_type') == 'wedding'">Wedding</option>
|
|
<option value="birthday" t-att-selected="post.get('event_type') == 'birthday'">Birthday</option>
|
|
<option value="corporate" t-att-selected="post.get('event_type') == 'corporate'">Corporate Event</option>
|
|
<option value="stage" t-att-selected="post.get('event_type') == 'stage'">Stage Setup</option>
|
|
<option value="festival" t-att-selected="post.get('event_type') == 'festival'">Festival</option>
|
|
<option value="exhibition" t-att-selected="post.get('event_type') == 'exhibition'">Exhibition</option>
|
|
<option value="other" t-att-selected="post.get('event_type') == 'other' or not post.get('event_type')">Other</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<hr class="my-4" style="border-top: 1px solid #FAF4F8;"/>
|
|
|
|
<!-- Product Details -->
|
|
<h5 class="section-header mb-4">3. Rental Item Selected</h5>
|
|
<div class="row">
|
|
<div class="form-group col-md-8 mb-3">
|
|
<label for="product_id">Selected Product / Service <span class="text-danger">*</span></label>
|
|
<select name="product_id" id="product_id" class="form-control" required="1">
|
|
<t t-foreach="all_products" t-as="prod">
|
|
<option t-att-value="prod.id" t-att-selected="(selected_product and selected_product.id == prod.id) or (post.get('product_id') == str(prod.id))">
|
|
<t t-out="prod.display_name"/>
|
|
</option>
|
|
</t>
|
|
</select>
|
|
</div>
|
|
<div class="form-group col-md-4 mb-3">
|
|
<label for="quantity">Quantity Required <span class="text-danger">*</span></label>
|
|
<input type="number" name="quantity" id="quantity" class="form-control" min="1" step="1" required="1" t-att-value="post.get('quantity', '1')"/>
|
|
</div>
|
|
</div>
|
|
|
|
<hr class="my-4" style="border-top: 1px solid #FAF4F8;"/>
|
|
|
|
<!-- Document Upload -->
|
|
<h5 class="section-header mb-4">4. Document Verification</h5>
|
|
<div class="row">
|
|
<div class="form-group col-md-6 mb-3">
|
|
<label for="doc_type">Government ID Proof <span class="text-danger">*</span></label>
|
|
<select name="doc_type" id="doc_type" class="form-control" required="1">
|
|
<option value="aadhaar" t-att-selected="post.get('doc_type') == 'aadhaar'">Aadhaar Card</option>
|
|
<option value="driving_license" t-att-selected="post.get('doc_type') == 'driving_license'">Driving License</option>
|
|
<option value="passport" t-att-selected="post.get('doc_type') == 'passport'">Passport</option>
|
|
<option value="voter_id" t-att-selected="post.get('doc_type') == 'voter_id'">Voter ID</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group col-md-6 mb-3">
|
|
<label class="d-block mb-2">Upload File (PDF, JPG, PNG) <span class="text-danger">*</span></label>
|
|
<div class="upload-box">
|
|
<i class="fa fa-cloud-upload fa-2x text-brand-plum mb-2"></i>
|
|
<input type="file" name="id_proof" id="id_proof" class="form-control-file d-block mx-auto" accept=".pdf,.jpg,.jpeg,.png" required="1" style="font-size: 0.85rem; max-width: 200px;"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary btn-lg btn-block submit-btn mt-4 shadow-sm">
|
|
Submit Rental Request
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
|
|
<!-- Inherit and Override Success Confirmation Page -->
|
|
<template id="rental_request_success_template_inherit" inherit_id="event_rental.rental_request_success_template">
|
|
<xpath expr="//div[@id='wrap']" position="replace">
|
|
<style>
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Playball&display=swap');
|
|
|
|
#wrap {
|
|
background-color: #FAF8F5 !important;
|
|
font-family: 'Inter', sans-serif !important;
|
|
}
|
|
|
|
h2, h4 {
|
|
font-family: 'Outfit', sans-serif !important;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.success-card {
|
|
background: #ffffff;
|
|
border: 1px solid #EAE5E8;
|
|
border-radius: 20px;
|
|
box-shadow: 0 4px 30px rgba(113, 75, 103, 0.03);
|
|
text-align: center;
|
|
}
|
|
|
|
.reference-badge {
|
|
padding: 12px 20px;
|
|
background-color: #FAF4F8;
|
|
border-radius: 30px;
|
|
display: inline-block;
|
|
border: 1px dashed #C5A880;
|
|
}
|
|
|
|
.success-icon {
|
|
color: #C5A880;
|
|
}
|
|
</style>
|
|
|
|
<div id="wrap" class="py-5">
|
|
<div class="container text-center">
|
|
<div class="success-card p-5 col-lg-6 col-md-8 mx-auto bg-white">
|
|
<div class="mb-4">
|
|
<i class="fa fa-envelope-o fa-5x success-icon"></i>
|
|
</div>
|
|
<h2 class="display-5 text-brand-plum mb-3" style="font-size: 2rem;">Inquiry Registered!</h2>
|
|
<p class="lead text-muted mb-4" style="font-size: 1rem;">We have successfully registered your event rental inquiry in our booking database.</p>
|
|
|
|
<div class="reference-badge mb-4">
|
|
<span class="text-muted" style="font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px;">Reference Number</span><br/>
|
|
<h4 class="font-weight-bold text-brand-plum mb-0 mt-1" t-out="name"/>
|
|
</div>
|
|
|
|
<p class="text-muted mb-4" style="font-size: 0.9rem; line-height: 1.6;">Our operations team is evaluating real-time stock allocations. You will receive an email and WhatsApp message shortly with a portal checkout link to review and pay the quotation.</p>
|
|
<a href="/rentals" class="btn btn-primary bg-brand-plum border-0 py-2 px-5 font-weight-bold shadow-sm" style="border-radius: 30px; font-size: 0.95rem;">Back to Catalog</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|