[IMP] layout

bzr revid: abo@openerp.com-20120704145849-9n0o1ag7fd4yg9fh
This commit is contained in:
Antonin Bourguignon 2012-07-04 16:58:49 +02:00
parent 187dab2064
commit 74050c22be
2 changed files with 52 additions and 17 deletions

View File

@ -10,11 +10,27 @@
}
/* 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"] {
width: 40%;
}
/* 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 {
float: none;
display: block;
@ -22,8 +38,21 @@
margin-bottom: 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 */
.openerp .oe_portal_crm_contact .oe_portal_crm_team {
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;
}

View File

@ -10,17 +10,15 @@
<field name="arch" type="xml">
<form string="Contact wizard view" version="7.0">
<div class="oe_portal_crm_contact">
<h1>Contact us</h1>
<table>
<tr>
<td width="70%%">
<div class="oe_portal_crm_contact_form">
<h1>Contact us</h1>
<group>
<field name="contact_name" placeholder="Name"/>
<field name="partner_name" placeholder="Company"/>
<field name="email_from" placeholder="Email"/>
<field name="phone" placeholder="Phone"/>
</group>
<field name="contact_name" placeholder="Name"/>
<field name="partner_name" placeholder="Company"/>
<field name="email_from" placeholder="Email"/>
<field name="phone" placeholder="Phone"/>
<field name="description" placeholder="Your question"/>
<button string="Submit" name="submit" type="object"/>
</div>
@ -42,15 +40,24 @@
<t t-name="kanban-box">
<!-- <img t-att-src="kanban_image('res.partner', 'photo', record.id.value)" class="oe_avatar oe_kanban_avatar_toto"/> -->
<h4><field name="name"/></h4>
<field name="street"/><br/>
<field name="street2"/><br/>
<field name="zip"/>
<field name="city"/><br/>
<field name="country_id"/><br/>
<br/>
<a t-if="record.email.raw_value" title="Mail" t-att-href="'mailto:'+record.email.value">
<field name="email"/>
</a>
<ul class="oe_portal_crm_address">
<li t-if="record.street"><field name="street"/></li>
<li t-if="record.street2"><field name="street2"/></li>
<li t-if="record.zip"><field name="zip"/></li>
<li t-if="record.city"><field name="city"/></li>
<li t-if="record.country_id"><field name="country_id"/></li>
</ul>
<ul class="oe_portal_crm_contact_info">
<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>
</templates>
</kanban>
@ -75,7 +82,6 @@
<h4><a type="edit"><field name="name"/> (<field name="login"/>)</a></h4>
<ul>
<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.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>