[FIX] website_hr_recruitment, website_blog
bzr revid: chm@openerp.com-20131203171714-fym4y602l7gfylfw
This commit is contained in:
parent
642fce4a5b
commit
63a9616138
|
@ -2,6 +2,7 @@
|
|||
import logging
|
||||
import traceback
|
||||
|
||||
import werkzeug
|
||||
import werkzeug.routing
|
||||
|
||||
import openerp
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<a t-href="/blogpost/#{ slug(blog_post) }/?#{ tag and 'tag=%s' % tag.id or '' }#{tag and date and '&' or ''}#{ date and 'date=%s' % date or ''}" t-field="blog_post.name"></a>
|
||||
</h2>
|
||||
<p class="post-meta text-muted text-center" name='blog_post_data'>
|
||||
<span class="fa fa-calendar"> <span t-field="blog_post.create_date"/> &nbsp;</span>
|
||||
<span class="fa fa-calendar oe_date"> <span t-field="blog_post.create_date"/> &nbsp;</span>
|
||||
<span t-if="len(blog_post.message_ids) > 0" class="fa fa-comment-o">
|
||||
<a t-href="/blogpost/#{ slug(blog_post) }/?#{ tag and 'tag=%s' % tag.id or '' }#{tag and date and '&' or ''}#{ date and 'date=%s' % date or ''}#comment">
|
||||
<t t-if="len(blog_post.message_ids) <= 1" ><t t-esc="len(blog_post.message_ids)"/> comment</t>
|
||||
|
@ -132,7 +132,7 @@
|
|||
<!-- Options: Blog Post Summary: hide author -->
|
||||
<template id="opt_blog_post_short_author" name="Author"
|
||||
inherit_option_id="website_blog.blog_post_short">
|
||||
<xpath expr="//span[@class='fa-calendar']" position="after">
|
||||
<xpath expr="//span[@class*='oe_date']" position="after">
|
||||
<span class="fa fa-user"> By <span t-field="blog_post.create_uid"/> &nbsp;</span>
|
||||
</xpath>
|
||||
</template>
|
||||
|
@ -235,7 +235,7 @@
|
|||
<!-- Options: Blog Post: hide author -->
|
||||
<template id="opt_blog_post_complete_author" name="Authors"
|
||||
inherit_option_id="website_blog.blog_post_complete">
|
||||
<xpath expr="//span[@class='fa-calendar']" position="after">
|
||||
<xpath expr="//span[@class*='oe_date']" position="after">
|
||||
<span class="fa fa-user"> By <span t-field="blog_post.create_uid"/> &nbsp;</span>
|
||||
</xpath>
|
||||
</template>
|
||||
|
@ -243,7 +243,7 @@
|
|||
<!-- Options: Blog Post: show category -->
|
||||
<template id="opt_blog_post_complete_category" name="Blog Category"
|
||||
inherit_option_id="website_blog.blog_post_complete">
|
||||
<xpath expr="//span[@class='fa-calendar']" position="after">
|
||||
<xpath expr="//span[@class*='oe_date']" position="after">
|
||||
<span class="fa fa-folder-open"> In <span t-field="blog_post.category_id"/> &nbsp;</span>
|
||||
</xpath>
|
||||
</template>
|
||||
|
|
|
@ -81,7 +81,7 @@ class website_hr_recruitment(http.Controller):
|
|||
return request.website.render("website_hr_recruitment.thankyou", {})
|
||||
|
||||
@website.route(['/job/apply'], type='http', auth="public", multilang=True)
|
||||
def applyjobpost(self, job):
|
||||
def applyjobpost(self, job=None):
|
||||
[job_object] = request.registry['hr.job'].browse(
|
||||
request.cr, request.uid, [int(job)], context=request.context)
|
||||
|
||||
|
@ -89,11 +89,6 @@ class website_hr_recruitment(http.Controller):
|
|||
'job': job_object
|
||||
})
|
||||
|
||||
@website.route('/job/publish', type='json', auth="admin", multilang=True)
|
||||
def publish(self, id, object):
|
||||
res = controllers.publish(id, object)
|
||||
return res
|
||||
|
||||
@website.route('/job/add_job_offer/', type='http', auth="user", multilang=True, methods=['POST'])
|
||||
def add_job_offer(self, **kwargs):
|
||||
Job = request.registry.get('hr.job')
|
||||
|
|
Loading…
Reference in New Issue