1 <?xml version="1.0" encoding="utf-8"?>
5 <template id="contactus_form" name="Contact Form" inherit_id="website.contactus" inherit_option_id="website.contactus">
6 <xpath expr="//div[@name='mail_button']" position="replace">
7 <form action="/crm/contactus" method="post" class="form-horizontal mt32" enctype="multipart/form-data">
8 <t t-foreach="kwargs" t-as="kwarg">
9 <input type="hidden" t-att-name="kwarg[0]" t-att-value="kwarg[1]"/>
11 <div t-attf-class="form-group #{error and 'contact_name' in error and 'has-error' or ''}">
12 <label class="col-md-3 col-sm-4 control-label" for="contact_name">Your Name</label>
13 <div class="col-md-7 col-sm-8">
14 <input type="text" class="form-control" name="contact_name" required="True" t-attf-value="#{contact_name or ''}"/>
17 <div t-attf-class="form-group #{error and 'phone' in error and 'has-error' or ''}">
18 <label class="col-md-3 col-sm-4 control-label" for="phone">Phone Number</label>
19 <div class="col-md-7 col-sm-8">
20 <input type="text" class="form-control" name="phone" placeholder="e.g. (+32).81.81.37.00" t-attf-value="#{phone or ''}"/>
23 <div name="email_from_container" t-attf-class="form-group #{error and 'email_from' in error and 'has-error' or ''}">
24 <label class="col-md-3 col-sm-4 control-label" for="email_from">Email</label>
25 <div class="col-md-7 col-sm-8">
26 <input type="email" class="form-control" name="email_from" required="True" t-attf-value="#{email_from or ''}"/>
29 <div t-attf-class="form-group #{error and 'name' in error and 'has-error' or ''}">
30 <label class="col-md-3 col-sm-4 control-label" for="name">Subject</label>
31 <div class="col-md-7 col-sm-8">
32 <input type="text" class="form-control" name="name" t-attf-value="#{name or ''}"/>
35 <div t-attf-class="form-group #{error and 'description' in error and 'has-error' or ''}">
36 <label class="col-md-3 col-sm-4 control-label" for="description">Your Question</label>
37 <div class="col-md-7 col-sm-8">
38 <textarea class="form-control" name="description" style="min-height: 120px" required="True"><t t-esc="description or ''"/></textarea>
41 <div class="form-group">
42 <div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7">
43 <button class="btn btn-primary btn-lg">Send</button>
50 <template id="contactus_form_company_name" name="Company Name" inherit_id="website_crm.contactus_form" inherit_option_id="website_crm.contactus_form">
51 <xpath expr="//div[@name='email_from_container']" position="after">
52 <div t-attf-class="form-group #{error and 'partner_name' in error and 'has-error' or ''}">
53 <label class="col-md-3 col-sm-4 control-label" for="partner_name">Your Company</label>
54 <div class="col-md-7 col-sm-8">
55 <input type="text" class="form-control" name="partner_name" required="True" t-attf-value="#{partner_name or ''}"/>
61 <template id="contactus_thanks" name="Contact us">
62 <t t-call="website.layout">
64 <div class="oe_structure"/>
65 <div class="container">
68 <div class="col-md-8">
69 <div class="alert alert-success">
70 Your message has been sent successfully.
71 <button type="button" class="close" data-dismiss="alert">&times;</button>
74 We will get back to you shortly.
76 If you have an emergency, do not hesitate to contact us by phone:
78 <ul class="list-unstyled">
79 <li><i class="fa fa-phone"></i> : <span t-field="res_company.phone"/></li>
80 <li><i class="fa fa-envelope"></i> : <span t-field="res_company.email"/></li>
83 <div class="col-md-4">
84 <t t-call="website.company_description"/>
88 <div class="oe_structure"/>