[IMP]Remove pager, Date is in grey after place, & description in div.
[odoo/odoo.git] / addons / website_hr_recruitment / views / website_hr_recruitment.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <record id="website_mail_jobs" model="mail.group">
5             <field name="name">Jobs</field>
6             <field name="public">public</field>
7             <field name="description">Job Posts on your website</field>
8         </record>
9
10         <template id="job_footer_custom" inherit_id="website.layout" name="Custom Footer Job">
11             <xpath expr="//header//ul[@id='top_menu']/li[@name='contactus']" position="before">
12                 <li><a href="/jobs">Jobs</a></li>
13             </xpath>
14             <xpath expr="//footer//div[@name='info']/ul" position="inside">
15                 <li><a href="/jobs">Jobs</a></li>
16             </xpath>
17         </template>
18
19         <template id="index" name="Departments" page="True">
20             <t t-call="website.layout">
21                 <t t-set="head">
22                     <t t-raw="head or ''"/>
23                 </t>
24                 <t t-set="title">Jobs</t>
25                 <div id="wrap">
26                     <div class="oe_structure"/>
27                     <div class="container oe_website_jobs">
28                         <!--<div class="row">
29                             <div class="col-sm-4">
30                                 <t t-call="website.pager">
31                                     <t t-set="classname">pull-left</t>
32                                 </t>
33                             </div>
34                         </div>-->
35                         <div class='row style_default mt16'>
36                             <div class="col-md-12" id="jobs_grid">
37                                 <ul class="media-list">
38                                     <li t-foreach="res_job" t-as="job" class="media" data-publish="">
39                                         <div class="media-body">
40                                             <span t-if="not job.no_of_recruitment" class="label label-default pull-right">No Vacancies.</span>
41                                             <t t-if="job.no_of_recruitment">
42                                                 <span class="label label-default pull-right label-info"><t t-esc="vals[job.id]['count']"/> Vacancies.</span>
43                                             </t>
44                                             <h4 class="media-heading"><a t-attf-href="/job/detail/#{ job.id }/"><span t-field="job.name"> </span></a></h4>
45                                             <div t-if="companies[0].country_id">
46                                                 <i class="icon-map-marker"></i> <span t-field="companies[0].city"> </span>  <span t-if="companies[0].state_id" t-field="companies[0].state_id.name"> </span>, <span t-field="companies[0].country_id.name"> </span>
47                                             </div>
48                                             <div class="text-muted">
49                                                 <i class="icon-time"></i> <span><t t-esc="vals[job.id]['date_recruitment']"/></span>
50                                             </div>
51                                         </div>
52                                     </li>
53                                 </ul>
54                             </div>
55                         </div>
56                     </div>
57                     <div class="oe_structure"/>
58                 </div>
59             </t>
60         </template>
61         <template id="detail">
62             <t t-call="website.layout">
63                 <t t-set="head">
64                     <script type="text/javascript" src="/website_hr_recruitment/static/src/js/recruitment.js"></script>
65                     <t t-raw="head or ''"/>
66                 </t>
67                 <t t-set="title">Job Detail</t>
68                 <div id="wrap">
69                     <div class="container">
70                         <div class="row">
71                             <div class="col-md-4">
72                                 <form action="./subscribe" method="POST" class="form-inline" t-if="not subscribe">
73                                     <div class="col-lg-7">
74                                         <input placeholder="Email Address" type="email" name="email" class="form-control" t-if="is_public_user"/>
75                                     </div>
76                                     <button type="submit" class="btn btn-primary" name="subscribe">Subscribe</button>
77                                 </form>
78                                 <form action="./unsubscribe" method="POST" class="form-inline" t-if="subscribe">
79                                     <input type="hidden" name="email" t-att-value="subscribe"/>
80                                     <button type="submit" class="btn btn-default" name="unsubscribe">Unsubscribe</button>
81                                 </form>
82                             </div>
83                             <t t-call="website.publish_management"><t t-set="object" t-value="job"/></t>
84                         </div>
85                     </div>
86                     <div class="oe_structure" style="clear:both;">
87                         <h1 class="text-center" t-field="job.name"></h1>
88                         <h5 class="text-center">
89                             <i class="icon-map-marker"></i> <span t-field="job.company_id.city"> </span>  <span t-if="job.company_id.state_id" t-field="job.company_id.state_id.name"> </span>, <span t-field="job.company_id.country_id.name"> </span></h5>
90                         <h5 class="text-center text-muted">
91                             <i class="icon-time"></i> <span><t t-esc="vals_date"/></span>
92                         </h5>
93
94                     </div>                      
95                     <div class="container oe_structure">
96                         <hr/>
97                         <div class="row">
98                             <div t-if="job.website_description">
99                                 <div t-field="job.website_description"></div>
100                                 <section snippet-id="cta" class="mt16 mb16">
101                                     <div class="container">
102                                         <div class="row">
103                                             <hr/>
104                                             <div class="col-md-12 text-center mt16 mb16">
105                                                 <a t-attf-href="/apply/#{ job.id }/" class="btn btn-primary btn-lg">Apply</a>
106                                             </div>
107                                         </div>
108                                     </div>
109                                 </section> 
110                             </div>
111                         </div>
112                     </div>
113                 </div>
114             </t>
115         </template>
116
117         <template id="applyjobpost">
118                 <t t-call="website.layout">
119             <t t-set="title">Apply Job</t>
120                 <div id="wrap">
121                     <div class="container">
122                         <h1>Apply</h1>
123                         <div class="row">
124             <section id="forms">
125                     <form class="form-horizontal mt32" action="/job/success" method="post" enctype="multipart/form-data">
126                         <input type="hidden" t-att-value="job.department_id.id" name="department_id"/>
127                         <input type="hidden" t-att-value="job.id" name="job_id"/>
128                         <input type="hidden" t-att-value="job.name" name="name"/>
129                         <div class="form-group">
130                             <label class="col-md-3 col-sm-4 control-label" for="partner_name">Name</label>
131                             <div class="col-md-7 col-sm-8">
132                                 <input type="text" class="form-control" name="partner_name" required="True" />
133                             </div>
134                         </div>
135                         <div class="form-group">
136                             <label class="col-md-3 col-sm-4 control-label" for="email_from">Email</label>
137                             <div class="col-md-7 col-sm-8">
138                                 <input type="email" class="form-control" name="email_from" required="True" />
139                             </div>
140                         </div>
141                         <div class="form-group">
142                             <label class="col-md-3 col-sm-4 control-label" for="description">Description</label>
143                             <div class="col-md-7 col-sm-8">
144                                 <textarea  class="form-control" name="description" style="min-height: 120px"/>
145                             </div>
146                         </div>
147                         <div class="form-group">
148                             <label class="col-md-3 col-sm-4 control-label" for="ufile">Upload File</label>
149                             <div class="col-md-7 col-sm-8">
150                                 <input class="input-file" id="fileInput" type="file" name="ufile" required="true"/>
151                             </div>
152                         </div>
153                         <div class="form-group">
154                             <div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7">
155                                 <button type="submit" class="btn btn-primary">Save</button>
156                             </div>
157                         </div>
158                     </form>
159             </section>
160                 </div>
161                 </div>
162         </div>
163         </t>
164         </template>
165         <template id="thankyou">
166             <t t-call="website.layout">
167                 <t t-set="title">Thank You!</t>
168                 <div id="wrap">
169                     <div class="container">
170                         <h1>You have successfully applied for job.</h1>
171                     </div>
172                 </div>
173             </t>
174         </template>
175         <template id="job_departments" inherit_option_id="website_hr_recruitment.index" name="Job Departments">
176                 <xpath expr="//div[@id='jobs_grid']" position="before">
177                     <div class="col-md-3">
178                         <ul class="nav nav-pills nav-stacked mt16">
179                             <li t-att-class=" '' if active else 'active' "><a href="/jobs">All Departments</a></li>
180                             <t t-foreach="departments" t-as="department">
181                                 <li t-att-class="department.id == active and 'active' or ''">
182                                     <a t-attf-href="/department/#{ department.id }/" ><t t-field="department.name"/></a>
183                                 </li>
184                             </t>
185                         </ul>
186                     </div>
187                 </xpath>
188                 <xpath expr="//div[@id='jobs_grid']" position="attributes">
189                     <attribute name="class">col-md-9</attribute>
190                 </xpath>
191                 <xpath expr="//div[@class='row']/div" position="before">
192                     <div class="col-md-4">
193                         <h1>Departments</h1>
194                     </div>
195                 </xpath>
196         </template>
197      </data>
198 </openerp>