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.
 
 
 
 
 

172 lines
10 KiB

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Inheriting the products_item template to update the Wishlist Button -->
<template id="add_to_wishlist_perfume"
inherit_id="website_sale.products_item"
name="Wishlist Button"
priority="20">
<xpath expr="//div[hasclass('o_wsale_product_btn')]"
position="replace">
<div class="o_wsale_product_btn">
<t t-nocache="The wishlist depends on the user and must not be shared with other users. As this rendering is in the loop, the product value is set in the template, we must retain the id of the product on which we are."
t-nocache-product_template_id="product.id">
<t t-set="product"
t-value="products.filtered(lambda p: p.id == product_template_id)"/>
<t t-set="in_wish"
t-value="product._is_in_wishlist()"/>
<t t-set="product_variant_id"
t-value="product._get_first_possible_variant_id()"/>
<button t-if="product_variant_id" type="button"
role="button"
class="btn btn-outline-primary o_add_wishlist"
t-att-disabled='in_wish or None'
title="Add to Wishlist"
t-att-data-product-template-id="product.id"
t-att-data-product-product-id="product_variant_id"
data-action="o_wishlist">
<span class="fa fa-heart" role="img"
aria-label="Add to wishlist"/>
</button>
</t>
</div>
</xpath>
</template>
<!-- Inheriting the website.contactus template to update the contact us page-->
<template id="perfume_contact_us" inherit_id="website.contactus"
name="Contactus">
<xpath expr="//section[hasclass('s_parallax_is_fixed')]"
position="replace">
<section
class="s_title parallax s_parallax_is_fixed bg-black-50 pt24 pb24"
style="padding-bottom:200px !important" data-vcss="001"
data-snippet="s_title"
data-scroll-background-ratio="1">
<span class="s_Mediumparallax_bg oe_img_bg"
style="background-image: url('/web/image/cts_theme_perfume.perfume_banner_default_image'); background-position: 50% 0;"/>
<div class="o_we_bg_filter bg-black-50"/>
<div class="container">
<h1>Contact us</h1>
</div>
</section>
</xpath>
<xpath expr="//section[hasclass('s_website_form')]"
position="replace">
<section class="s_website_form" data-vcss="001"
data-snippet="s_website_form">
<div class="container">
<form id="contactus_form" action="/website/form/"
method="post" enctype="multipart/form-data"
class="o_mark_required" data-mark="*"
data-model_name="mail.mail"
data-success-mode="redirect"
data-success-page="/contactus-thank-you"
data-pre-fill="true">
<div class="s_website_form_rows row s_col_no_bgcolor">
<div class="col-12">
<h2 class="contact-title">Get in Touch</h2>
</div>
<div class="form-group col-12 s_website_form_field s_website_form_custom s_website_form_required"
data-type="text" data-name="Field">
<div class="row s_col_no_resize s_col_no_bgcolor">
<div class="col-sm">
<textarea id="contact6"
class="form-control s_website_form_input"
name="Description"
required="" cols="30"
rows="9"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter Message'"
placeholder=" Enter Message"/>
</div>
</div>
</div>
<div class="form-group col-12 s_website_form_field s_website_form_custom s_website_form_required"
data-type="char" data-name="Field">
<div class="row s_col_no_resize s_col_no_bgcolor">
<div class="col-sm">
<input id="contact1" type="text"
class="form-control s_website_form_input"
name="Name" required=""
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter your name'"
placeholder="Enter your name"/>
</div>
</div>
</div>
<div class="form-group col-12 s_website_form_field s_website_form_custom"
data-type="char" data-name="Field">
<div class="row s_col_no_resize s_col_no_bgcolor">
<div class="col-sm">
<input id="contact2" type="tel"
class="form-control s_website_form_input"
name="Phone"
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter Phone Number'"
placeholder=" Enter Phone Number"/>
</div>
</div>
</div>
<div class="form-group col-12 s_website_form_field s_website_form_required"
data-type="email" data-name="Field">
<div class="row s_col_no_resize s_col_no_bgcolor">
<div class="col-sm">
<input id="contact3" type="email"
class="form-control s_website_form_input"
name="email_from"
required=""
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter email address'"
placeholder="Email"/>
</div>
</div>
</div>
<div class="form-group col-12 s_website_form_field s_website_form_dnone">
<div class="row s_col_no_resize s_col_no_bgcolor">
<label class="col-form-label col-sm-auto s_website_form_label"
style="width: 200px"
for="contact7">
<span class="s_website_form_label_content">
Email
To
</span>
</label>
<div class="col-sm">
<input id="contact7" type="hidden"
class="form-control s_website_form_input"
name="email_to"/>
</div>
</div>
</div>
<div class="form-group col-12 s_website_form_field s_website_form_required"
data-type="char" data-name="Field">
<div class="row s_col_no_resize s_col_no_bgcolor">
<div class="col-sm">
<input id="contact5" type="text"
class="form-control s_website_form_input"
name="subject" required=""
onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter Subject'"
placeholder="Enter Subject"/>
</div>
</div>
</div>
<div class="form-group col-12 s_website_form_submit"
data-name="Submit Button">
<div style="width: 200px;"
class="s_website_form_label"/>
<a href="#" role="button"
class="btn btn-primary btn-lg s_website_form_send">
Send
</a>
<span id="s_website_form_result"/>
</div>
</div>
</form>
</div>
</section>
</xpath>
</template>
</odoo>