Contains a new ajax post function that comes from mdo's original code and that I was not able to get rid of.
95 lines
5.4 KiB
XML
95 lines
5.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<template id="contactus_form" name="Contact Form" inherit_id="website.contactus" customize_show="True">
|
|
<xpath expr="//div[@name='mail_button']" position="replace">
|
|
<div>
|
|
<form action="/website_form/" method="post" data-model_name="crm.lead" data-success_page="/page/website_crm.contactus_thanks" class="s_website_form form-horizontal container-fluid mt32" enctype="multipart/form-data">
|
|
<div class="form-group form-field o_website_form_required_custom">
|
|
<label class="col-md-3 col-sm-4 control-label" for="contact_name">Your Name</label>
|
|
<div class="col-md-7 col-sm-8">
|
|
<input type="text" class="form-control o_website_form_input" name="contact_name" required=""/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group form-field">
|
|
<label class="col-md-3 col-sm-4 control-label" for="phone">Phone Number</label>
|
|
<div class="col-md-7 col-sm-8">
|
|
<input type="text" class="form-control o_website_form_input" placeholder="e.g. (+32).81.81.37.00" name="phone"/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group form-field o_website_form_required_custom">
|
|
<label class="col-md-3 col-sm-4 control-label" for="email_from">Email</label>
|
|
<div class="col-md-7 col-sm-8">
|
|
<input type="text" class="form-control o_website_form_input" name="email_from" required=""/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group form-field o_website_form_required_custom">
|
|
<label class="col-md-3 col-sm-4 control-label" for="partner_name">Your Company</label>
|
|
<div class="col-md-7 col-sm-8">
|
|
<input type="text" class="form-control o_website_form_input" name="partner_name" required=""/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group form-field o_website_form_required">
|
|
<label class="col-md-3 col-sm-4 control-label" for="name">Subject</label>
|
|
<div class="col-md-7 col-sm-8">
|
|
<input type="text" class="form-control o_website_form_input" name="name" required=""/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group form-field o_website_form_required_custom">
|
|
<label class="col-md-3 col-sm-4 control-label" for="description">Your Question</label>
|
|
<div class="col-md-7 col-sm-8">
|
|
<textarea class="form-control o_website_form_input" name="description" required=""></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7">
|
|
<button class="btn btn-primary btn-lg o_website_form_send">Send</button>
|
|
<span id="o_website_form_result"></span>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="contactus_thanks" name="Contact us">
|
|
<t t-call="website.layout">
|
|
<div id="wrap">
|
|
<div class="oe_structure"/>
|
|
<div class="container">
|
|
<h1>Thanks!</h1>
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<div class="alert alert-success">
|
|
Your message has been sent successfully.
|
|
<button type="button" class="close" data-dismiss="alert">&times;</button>
|
|
</div>
|
|
<p>
|
|
We will get back to you shortly.
|
|
</p><p class="mt64">
|
|
If you have an emergency, do not hesitate to contact us by phone:
|
|
</p>
|
|
<ul class="list-unstyled">
|
|
<li><i class="fa fa-phone"></i> : <span t-field="res_company.phone"/></li>
|
|
<li><i class="fa fa-envelope"></i> : <span t-field="res_company.email"/></li>
|
|
</ul>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<t t-call="website.company_description"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="oe_structure"/>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
|
|
<template id="website_crm_tests" name="Website CRM Tests" inherit_id="web.assets_common">
|
|
<xpath expr="." position="inside">
|
|
<script type="text/javascript" src="/website_crm/static/src/js/website_crm_tour.js"></script>
|
|
</xpath>
|
|
</template>
|
|
|
|
</data>
|
|
</openerp>
|