odoo/addons/website_hr_recruitment/views/website_hr_recruitment.xml

130 lines
6.3 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="footer_website_hr_recruitment" model="ir.ui.view">
<field name="name">footer_website_hr_recruitment</field>
<field name="inherit_id" ref="website.footer"/>
<field name="arch" type="xml">
<data>
<xpath expr="//a[@href='/page/website.contactus']" position="after">
<li><a href="/jobs">Jobs</a></li>
</xpath>
</data>
</field>
</record>
<template id="jobs">
<t t-call="website.layout">
<t t-set="title">Jobs</t>
<div class="container">
<div class="page-header">
<h1>Job Position</h1>
</div>
<t t-foreach="companies" t-as="company">
<div class="page-header">
<h1 class="text-center"><t t-esc="company.name"/></h1>
</div>
<table class="table">
<thead>
<tr>
<th>Post Name</th>
</tr>
</thead>
<tbody>
<t t-foreach="res_job" t-as="job">
<tr t-if="job.company_id.id==company.id">
<td>
<a t-att-href="'/job/detail/%%s' %% job.id"><span class="lead" t-field="job.name"/></a><br/>
<b><span t-if="job.department_id" t-esc="job.department_id.name"/></b><br/>
<span><b>No of Position:</b> <t t-esc="int(job.no_of_recruitment)"/></span><br/>
<span t-esc="job.write_date"/>
</td>
<td>
<span><b>Location:</b> <t t-esc="res_company.city+','"/> <t t-esc="res_company.state_id.name+','"/> <t t-esc="res_company.country_id.name+'.'"/></span><br/>
<span>&amp;#x2706; <t t-esc="res_company.phone+'.'"/></span>
</td>
</tr>
</t>
</tbody>
</table>
</t>
</div>
</t>
</template>
<template id="detail">
<t t-call="website.layout">
<t t-set="title">Job Detail</t>
<div class="span4 pull-right">
<ul class="pager">
<li><a t-att-href="'/jobs'">All Jobs</a></li>
</ul>
</div>
<div class="container">
<div class="page-header">
<h1><t t-field="job.name"/></h1>
</div>
<div class="row">
<div class="span12">
<t t-if="job.description">
<h3>Description</h3>
<p t-if="job.description"><t t-esc="job.description"/></p>
</t>
</div>
</div>
<t t-call="website_hr_recruitment.applyjobpost"/>
</div>
</t>
</template>
<template id="applyjobpost">
<t t-set="title">Apply Job</t>
<section id="forms">
<div class="page-header">
<h1>Apply</h1>
</div>
<div class="row">
<form class="form-horizontal well" action="/job/success" method="post" enctype="multipart/form-data">
<fieldset>
<input type="hidden" t-att-value="job.department_id.id" name="department_id"/>
<input type="hidden" t-att-value="job.id" name="job_id"/>
<input type="hidden" t-att-value="job.name" name="name"/>
<div class="control-group">
<input type="text" class="input-xlarge" id="nametxt" name="partner_name" required="true" placeholder="Name..."/>
</div>
<div class="control-group">
<input type="text" class="input-xlarge" id="emailtxt" name="email_from" required="true" placeholder="Email..."/>
</div>
<div class="control-group">
<textarea class="span8" style="margin-top:5px; height: 140px;" name="description" placeholder="Enter your comment..."> </textarea>
</div>
<div class="control-group">
<input class="input-file" id="fileInput" type="file" name="ufile" required="true"/>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Save</button>
<button type="reset" class="btn"><a t-att-href="'/jobs'">Cancel</a></button>
</div>
</fieldset>
</form>
</div>
</section>
</template>
<template id="thankyou">
<t t-call="website.layout">
<t t-set="title">Thank You!</t>
<div class="span4 pull-right">
<ul class="pager">
<li><a t-att-href="'/job/detail/%%s' %% jobid">Back</a></li>
</ul>
</div>
<section id="typography">
<div class="container">
<div class="row">
<h2 class="oe_slogan">You have successfully applied for job.</h2>
</div>
</div>
</section>
</t>
</template>
</data>
</openerp>