[IMP] website_hr: usability improvements
- Added module description - Added public_info field to employee form view - Fixed bootstrap columns height issue on About Us page
This commit is contained in:
committed by
David Monjoie
parent
36e6292466
commit
67a74ebe2b
@@ -8,7 +8,7 @@ class hr_employee(osv.osv):
|
||||
_inherit = ['hr.employee', 'website.published.mixin']
|
||||
|
||||
_columns = {
|
||||
'public_info': fields.text('Public Info'),
|
||||
'public_info': fields.char('Public Info'),
|
||||
}
|
||||
|
||||
def _website_url(self, cr, uid, ids, field_name, arg, context=None):
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<section class="oe_container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2 class="oe_slogan">Our Team Page</h2>
|
||||
<h3 class="oe_slogan">Share your employees details on website</h3>
|
||||
<div class="oe_span6">
|
||||
<div class="oe_big_img">
|
||||
<img class="oe_picture oe_screenshot" src="team_page.png">
|
||||
</div>
|
||||
</div>
|
||||
<div class="oe_span6">
|
||||
<p class="oe_mt32">
|
||||
Publish your employees public information on your "About Us" website page.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 492 KiB |
@@ -0,0 +1,4 @@
|
||||
|
||||
.o_avatar_info_container {
|
||||
height: 250px;
|
||||
}
|
||||
@@ -2,6 +2,11 @@
|
||||
<openerp>
|
||||
<data>
|
||||
<!-- Page -->
|
||||
<template id="assets_frontend" inherit_id="website.assets_frontend" name="website_hr_assets">
|
||||
<xpath expr="." position="inside">
|
||||
<link rel='stylesheet' type="text/less" href='/website_hr/static/src/less/website_hr.less'/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="aboutus" inherit_id="website.aboutus" customize_show="True" name="Our Team">
|
||||
<xpath expr="//div[@class='oe_structure']" position="after">
|
||||
@@ -9,8 +14,8 @@
|
||||
<div class="col-sm-12 text-center" t-if="len(employee_ids)">
|
||||
<h2>Our Team</h2>
|
||||
</div>
|
||||
<div t-foreach="employee_ids" t-as="employee" class="col-sm-3 col-lg-2 mt16 text-center colsize">
|
||||
<t t-call="website.publish_management">
|
||||
<div t-foreach="employee_ids" t-as="employee" class="col-sm-3 col-lg-2 mt16 text-center o_avatar_info_container">
|
||||
<t t-call="website.publish_management" class="text-center">
|
||||
<t t-set="object" t-value="employee"/>
|
||||
<t t-set="publish_edit" t-value="True"/>
|
||||
</t>
|
||||
@@ -20,7 +25,7 @@
|
||||
<strong t-field="employee.name"></strong>
|
||||
</div>
|
||||
<div t-field="employee.job_id"/>
|
||||
<div t-field="employee.public_info" class="text-muted mt16"/>
|
||||
<div t-field="employee.public_info" class="text-muted mt16 center-block"/>
|
||||
</div>
|
||||
</section>
|
||||
</xpath>
|
||||
|
||||
@@ -13,6 +13,11 @@
|
||||
<field name="website_published" widget="website_button"/>
|
||||
</button>
|
||||
</div>
|
||||
<xpath expr="//page[@name='public']/group" position="inside">
|
||||
<group>
|
||||
<field name="public_info"/>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user