odoo/addons/website_hr_recruitment/views/website_hr_recruitment.xml

146 lines
8.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="job_footer_custom" inherit_id="website.layout" name="Custom Footer Job">
<xpath expr="//body/footer//h5[@name='info_title']" position="after">
<a href="/jobs">Jobs</a>
</xpath>
</template>
<template id="index" name="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-if="no_of_jobs &gt; 0">
<t t-foreach="companies" t-as="company">
<div class="page-header">
<h2 class="text-center"><t t-field="company.name"/></h2>
</div>
<table class="table">
<thead>
<tr>
<th><h4>Post Name</h4></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/>
<span t-if="job.department_id" t-esc="job.department_id.name"/><br/>
<i class="icon-time"></i> <span t-esc="job.write_date"/><br/>
<span><t t-if="job.no_of_recruitment &gt; 0"><i class="icon-group"></i> <t t-esc="job.no_of_recruitment"/></t><t t-if="job.no_of_recruitment &lt; 1">Right now no recruitment is going on.</t></span><br/>
<span><t t-if="job.no_of_recruitment &gt; 0"><i class="icon-map-marker"></i> <t t-esc="res_company.city"/> <t t-esc="res_company.state_id.name"/> <t t-esc="res_company.country_id.name"/><br/>
&amp;#x2706; <t t-esc="res_company.phone"/></t></span>
<div t-if="job.no_of_recruitment &lt; 1">
<strong>You may also be interested in our others job positions, for which we don't have availabilities right now.<br/>
Follow the positions that interests you and we will send you an email when the position is available.</strong><br/><br/>
<form action="/jobs/subscribe" method="POST" class="form-inline span8" t-if="not subscribe">
<input placeholder="Email Address" type="email" name="email" class="input-medium"/>
<button type="submit" class="btn btn-primary" name="subscribe">Subscribe</button>
</form>
<form class="span8" action="/jobs/unsubscribe" method="POST" t-if="subscribe">
<div class="alert alert-success">
<button type="button" class="close" data-dismiss="alert">×</button>
<strong>Oh great!</strong> You are successfully subscribed email notifications for a <b><t t-esc="job.name"/></b> job.
</div>
<input type="hidden" name="email" t-att-value="subscribe"/>
<button type="submit" class="btn" name="unsubscribe">Unsubscribe</button>
</form>
</div>
</td>
<td>
<!-- <t t-call="website.publish"><t t-set="object" t-value="job_id"/></t> -->
</td>
</tr>
</t>
</tbody>
</table>
</t>
</t>
<t t-if="no_of_jobs &lt; 1">
<h3>"Thank you for your interest, but right now there is no job openings available in our company."</h3>
</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-field="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="email" 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">All Jobs</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>