[IMP] layout
bzr revid: abo@openerp.com-20120704145849-9n0o1ag7fd4yg9fh
This commit is contained in:
parent
187dab2064
commit
74050c22be
|
@ -10,11 +10,27 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Contact form section */
|
/* Contact form section */
|
||||||
|
.openerp .oe_portal_crm_contact .oe_portal_crm_contact_form {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
.openerp .oe_portal_crm_contact .oe_portal_crm_contact_form input[type="text"] {
|
.openerp .oe_portal_crm_contact .oe_portal_crm_contact_form input[type="text"] {
|
||||||
width: 40%;
|
width: 40%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Offices list section */
|
/* Offices list section */
|
||||||
|
.openerp .oe_portal_crm_contact .oe_portal_crm_office {
|
||||||
|
background: #DDD;
|
||||||
|
-moz-border-radius: 4px;
|
||||||
|
-webkit-border-radius: 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
|
||||||
|
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
|
||||||
|
-o-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
|
||||||
|
-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
|
||||||
|
}
|
||||||
|
.openerp .oe_portal_crm_contact .oe_portal_crm_office * {
|
||||||
|
background: transparent !important;
|
||||||
|
}
|
||||||
.openerp .oe_portal_crm_contact .oe_portal_crm_office .oe_fold_column.oe_kanban_record {
|
.openerp .oe_portal_crm_contact .oe_portal_crm_office .oe_fold_column.oe_kanban_record {
|
||||||
float: none;
|
float: none;
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -22,8 +38,21 @@
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
.openerp .oe_portal_crm_contact .oe_portal_crm_office li:last-child {
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
.openerp .oe_portal_crm_contact .oe_portal_crm_office ul:last-child li:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Employees list section */
|
/* Employees list section */
|
||||||
.openerp .oe_portal_crm_contact .oe_portal_crm_team {
|
.openerp .oe_portal_crm_contact .oe_portal_crm_team {
|
||||||
padding: 8px 0 0 0;
|
padding: 8px 0 0 0;
|
||||||
}
|
}
|
||||||
|
.openerp .oe_portal_crm_contact .oe_portal_crm_team .oe_employee_details {
|
||||||
|
width: 170px;
|
||||||
|
}
|
||||||
|
.openerp .oe_portal_crm_contact .oe_portal_crm_team .oe_employee_image {
|
||||||
|
width: 65px;
|
||||||
|
height: 65px;
|
||||||
|
}
|
||||||
|
|
|
@ -10,17 +10,15 @@
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form string="Contact wizard view" version="7.0">
|
<form string="Contact wizard view" version="7.0">
|
||||||
<div class="oe_portal_crm_contact">
|
<div class="oe_portal_crm_contact">
|
||||||
|
<h1>Contact us</h1>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td width="70%%">
|
<td width="70%%">
|
||||||
<div class="oe_portal_crm_contact_form">
|
<div class="oe_portal_crm_contact_form">
|
||||||
<h1>Contact us</h1>
|
<field name="contact_name" placeholder="Name"/>
|
||||||
<group>
|
<field name="partner_name" placeholder="Company"/>
|
||||||
<field name="contact_name" placeholder="Name"/>
|
<field name="email_from" placeholder="Email"/>
|
||||||
<field name="partner_name" placeholder="Company"/>
|
<field name="phone" placeholder="Phone"/>
|
||||||
<field name="email_from" placeholder="Email"/>
|
|
||||||
<field name="phone" placeholder="Phone"/>
|
|
||||||
</group>
|
|
||||||
<field name="description" placeholder="Your question"/>
|
<field name="description" placeholder="Your question"/>
|
||||||
<button string="Submit" name="submit" type="object"/>
|
<button string="Submit" name="submit" type="object"/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -42,15 +40,24 @@
|
||||||
<t t-name="kanban-box">
|
<t t-name="kanban-box">
|
||||||
<!-- <img t-att-src="kanban_image('res.partner', 'photo', record.id.value)" class="oe_avatar oe_kanban_avatar_toto"/> -->
|
<!-- <img t-att-src="kanban_image('res.partner', 'photo', record.id.value)" class="oe_avatar oe_kanban_avatar_toto"/> -->
|
||||||
<h4><field name="name"/></h4>
|
<h4><field name="name"/></h4>
|
||||||
<field name="street"/><br/>
|
<ul class="oe_portal_crm_address">
|
||||||
<field name="street2"/><br/>
|
<li t-if="record.street"><field name="street"/></li>
|
||||||
<field name="zip"/>
|
<li t-if="record.street2"><field name="street2"/></li>
|
||||||
<field name="city"/><br/>
|
<li t-if="record.zip"><field name="zip"/></li>
|
||||||
<field name="country_id"/><br/>
|
<li t-if="record.city"><field name="city"/></li>
|
||||||
<br/>
|
<li t-if="record.country_id"><field name="country_id"/></li>
|
||||||
<a t-if="record.email.raw_value" title="Mail" t-att-href="'mailto:'+record.email.value">
|
</ul>
|
||||||
<field name="email"/>
|
<ul class="oe_portal_crm_contact_info">
|
||||||
</a>
|
<li t-if="record.phone"><field name="phone"/></li>
|
||||||
|
<li t-if="record.email.raw_value">
|
||||||
|
<a title="Mail" t-att-href="'mailto:'+record.email.value">
|
||||||
|
<field name="email"/>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li t-if="record.website">
|
||||||
|
<a t-att-href="record.website"><field name="website"/></a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</t>
|
</t>
|
||||||
</templates>
|
</templates>
|
||||||
</kanban>
|
</kanban>
|
||||||
|
@ -75,7 +82,6 @@
|
||||||
<h4><a type="edit"><field name="name"/> (<field name="login"/>)</a></h4>
|
<h4><a type="edit"><field name="name"/> (<field name="login"/>)</a></h4>
|
||||||
<ul>
|
<ul>
|
||||||
<li t-if="record.job_id.raw_value"><field name="job_id"/></li>
|
<li t-if="record.job_id.raw_value"><field name="job_id"/></li>
|
||||||
<li t-if="record.work_location.raw_value"><field name="work_location"/></li>
|
|
||||||
<li t-if="record.work_phone.raw_value">Tel: <field name="work_phone"/></li>
|
<li t-if="record.work_phone.raw_value">Tel: <field name="work_phone"/></li>
|
||||||
<li t-if="record.mobile_phone.raw_value">Mobile: <field name="mobile_phone"/></li>
|
<li t-if="record.mobile_phone.raw_value">Mobile: <field name="mobile_phone"/></li>
|
||||||
<li t-if="record.work_email.raw_value"><a t-attf-href="mailto:#{record.work_email.value}"><field name="work_email"/></a></li>
|
<li t-if="record.work_email.raw_value"><a t-attf-href="mailto:#{record.work_email.value}"><field name="work_email"/></a></li>
|
||||||
|
|
Loading…
Reference in New Issue