[ADD] convert bzrignore to gitignore
[odoo/odoo.git] / addons / website_crm / views / website_crm.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3 <data>
4
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]"/>
10             </t>
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 ''}"/>
15                 </div>
16             </div>
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 ''}"/>
21                 </div>
22             </div>
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 ''}"/>
27                 </div>
28             </div>
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 ''}"/>
33                 </div>
34             </div>
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>
39                 </div>
40             </div>
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>
44                 </div>
45             </div>
46         </form>
47     </xpath>
48 </template>
49
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 ''}"/>
56             </div>
57         </div>
58     </xpath>
59 </template>
60
61 <template id="contactus_thanks" name="Contact us">
62     <t t-call="website.layout">
63       <div id="wrap">
64         <div class="oe_structure"/>
65         <div class="container">
66             <h1>Thanks!</h1>
67             <div class="row">
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">&amp;times;</button>
72                     </div>
73                     <p>
74                         We will get back to you shortly.
75                     </p><p class="mt64">
76                         If you have an emergency, do not hesitate to contact us by phone:
77                     </p>
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>
81                     </ul>
82                 </div>
83                 <div class="col-md-4">
84                     <t t-call="website.company_description"/>
85                 </div>
86             </div>
87         </div>
88         <div class="oe_structure"/>
89       </div>
90     </t>
91 </template>
92
93 </data>
94 </openerp>