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.
202 lines
12 KiB
202 lines
12 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<template id="website_customer_contact_request_form"
|
|
name="Contact Request Form">
|
|
<!-- This appears to be a website contact form written in HTML and a templating language.
|
|
The form includes various input fields for the user to enter information, such as
|
|
their name, job position, email, and phone number, as well as drop-down menus
|
|
for selecting the type of contact and the country. It also has a notes section for
|
|
the user to add any additional comments.-->
|
|
<t t-call="website.layout">
|
|
<div id="wrap" class="customer_contact_form">
|
|
<div class="oe_structure">
|
|
<div class="container">
|
|
<div class="contact_form mt-4">
|
|
<form class="w-100 float-left" role="form"
|
|
action="/contact_request_form/submit"
|
|
methods="POST">
|
|
<div class="form-group type">
|
|
<label for="type" name='type'
|
|
class="control-label">Type
|
|
</label>
|
|
<select name="type"
|
|
t-attf-class="form-control select_box_test"
|
|
required="">
|
|
<option value="contact">Contact
|
|
</option>
|
|
<option value="invoice">Invoice
|
|
Address
|
|
</option>
|
|
<option value="delivery">Delivery
|
|
Address
|
|
</option>
|
|
<option value="private">Private
|
|
Address
|
|
</option>
|
|
<option value="other">Other Address
|
|
</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group contact_name">
|
|
<label for="contact_name"
|
|
class="control-label">Name*
|
|
</label>
|
|
<input id="contact_name" type="text"
|
|
class="form-control" name="name"
|
|
required=""
|
|
placeholder="Name"/>
|
|
</div>
|
|
<div class="form-group job_position">
|
|
<label for="job_position"
|
|
class="control-label">Job Position
|
|
</label>
|
|
<input id="job_position" type="text"
|
|
class="form-control" name="function"
|
|
placeholder="Job Position"/>
|
|
</div>
|
|
<div class="form-group street"
|
|
style="display: none;">
|
|
<label for="street" class="control-label">
|
|
Address
|
|
</label>
|
|
<input id="street" type="text"
|
|
class="form-control" name="street"
|
|
placeholder="Address"/>
|
|
</div>
|
|
<div class="form-group street2"
|
|
style="display: none;">
|
|
<label for="street2" class="control-label">
|
|
Address2
|
|
</label>
|
|
<input id="street2" type="text"
|
|
class="form-control" name="street2"
|
|
placeholder="Address2"/>
|
|
</div>
|
|
<div class="form-group city"
|
|
style="display: none;">
|
|
<label for="city" class="control-label">
|
|
City
|
|
</label>
|
|
<input id="city" type="text"
|
|
class="form-control" name="city"
|
|
placeholder="City"/>
|
|
</div>
|
|
<div class="form-group zip"
|
|
style="display: none;">
|
|
<label for="zip" class="control-label">ZIP
|
|
</label>
|
|
<input id="zip" type="number"
|
|
class="form-control" name="zip"
|
|
placeholder="ZIP"/>
|
|
</div>
|
|
<div class="form-group state_id"
|
|
style="display: none;">
|
|
<label for="state_id"
|
|
class="control-label">
|
|
State
|
|
</label>
|
|
<select id="state_id" name="state_id"
|
|
class="form-control link-style state_select">
|
|
<option value=""/>
|
|
<t t-foreach="state_id" t-as="state">
|
|
<option t-esc="state.name"
|
|
t-att-data-id="state.country_id.name"
|
|
class="state_select_option"
|
|
t-att-value="state.id"/>
|
|
</t>
|
|
</select>
|
|
</div>
|
|
<div class="form-group country_id"
|
|
style="display: none;">
|
|
<label for="country_id"
|
|
class="control-label">Country
|
|
</label>
|
|
<select id="country_id" name="country_id"
|
|
class="form-control link-style country_select">
|
|
<option value=""/>
|
|
<t t-foreach="country_id"
|
|
t-as="country">
|
|
<option t-esc="country.name"
|
|
t-att-value="country.id"/>
|
|
</t>
|
|
</select>
|
|
</div>
|
|
<div class="form-group contact_title">
|
|
<label for="contact_title"
|
|
class="control-label">Title
|
|
</label>
|
|
<select id="contact_title" name="title"
|
|
class="form-control link-style">
|
|
<option value=""/>
|
|
<t t-foreach="contact_title"
|
|
t-as="title">
|
|
<option t-esc="title.name"
|
|
t-att-value="title.id"/>
|
|
</t>
|
|
</select>
|
|
</div>
|
|
<div class="form-group email">
|
|
<label for="email" class="control-label">
|
|
Email*
|
|
</label>
|
|
<input id="email" type="email"
|
|
class="form-control" name="email"
|
|
required=""
|
|
placeholder="Email"/>
|
|
</div>
|
|
<div class="form-group phone_number">
|
|
<label for="phone_number"
|
|
class="control-label">Phone*
|
|
</label>
|
|
<input id="phone_number" type="char"
|
|
class="form-control" name="phone"
|
|
required=""
|
|
placeholder="Phone"/>
|
|
</div>
|
|
<div class="form-group mobile_number">
|
|
<label for="mobile_number"
|
|
class="control-label">Mobile
|
|
</label>
|
|
<input id="mobile_number" type="char"
|
|
class="form-control" name="mobile"
|
|
placeholder="Mobile"/>
|
|
</div>
|
|
<div class="form-group notes">
|
|
<label for="notes" class="control-label">
|
|
Notes
|
|
</label>
|
|
<input id="notes" type="text"
|
|
class="form-control" name="comment"
|
|
placeholder="Notes"/>
|
|
</div>
|
|
<div class="clearfix oe_login_buttons" style="padding:0 45% 0 45%;
|
|
margin-top: 10px; margin-bottom: 10px;">
|
|
<button id="contact_request_form_submit"
|
|
class="btn btn-primary pull-left">
|
|
SUBMIT
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
<template id="website_customer_contact_request_form_completed">
|
|
<!--This template load a success page on success creation of contact or address-->
|
|
<t t-call="website.layout">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-12" style="text-align:center;">
|
|
<div class="alert alert-success contact-success"
|
|
role="status">
|
|
<span class="fa fa-check-circle"/>
|
|
Contact Created Successfully
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
</odoo>
|
|
|