[IMP] On the job position page, add a right column with information like

the location, contact data.

bzr revid: psa@tinyerp.com-20130812132745-dahx6q4k10cd1v84
This commit is contained in:
Paramjit Singh Sahota 2013-08-12 18:57:45 +05:30
parent 4e989de98d
commit d55226555b
2 changed files with 7 additions and 2 deletions

View File

@ -10,7 +10,7 @@ class website_hr_recruitment(http.Controller):
@http.route(['/jobs'], type='http', auth="public")
def career(self, **post):
website = request.registry['website']
jobpost_ids = request.registry['hr.job'].search(request.cr, request.uid, [("state", "=", 'open')])
jobpost_ids = request.registry['hr.job'].search(request.cr, request.uid, [("state", "=", 'recruit')])
request.cr.execute("select distinct(com.id) from hr_job job, res_company com where com.id=job.company_id")
ids = []
for i in request.cr.fetchall():

View File

@ -35,9 +35,14 @@
<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"/>
<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>