From 05371d278a7b537df62b1196c9683cfb27fcc94d Mon Sep 17 00:00:00 2001 From: Antonin Bourguignon Date: Fri, 29 Jun 2012 19:20:11 +0200 Subject: [PATCH] [IMP] introduce kanban view for the employees section and a dedicated css bzr revid: abo@openerp.com-20120629172011-7p5u6nyni8lffobh --- addons/portal_crm/__openerp__.py | 5 +- .../portal_crm/static/src/css/portal_crm.css | 12 ++ addons/portal_crm/wizard/contact_view.xml | 103 +++++++++++++----- 3 files changed, 89 insertions(+), 31 deletions(-) create mode 100644 addons/portal_crm/static/src/css/portal_crm.css diff --git a/addons/portal_crm/__openerp__.py b/addons/portal_crm/__openerp__.py index 044f3280ce3..55320cb0a40 100644 --- a/addons/portal_crm/__openerp__.py +++ b/addons/portal_crm/__openerp__.py @@ -26,7 +26,7 @@ 'category': 'Tools', 'complexity': "easy", 'description': """ -This module adds crm menu and features (contact form) to your portal if crm and +This module adds crm menu and features (contact form) to your portal if crm and portal are installed. """, 'author': 'OpenERP SA', @@ -38,6 +38,9 @@ portal are installed. 'installable': True, 'auto_install':True, 'category':'Hidden', + 'css': [ + 'static/src/css/portal_crm.css', + ], } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_crm/static/src/css/portal_crm.css b/addons/portal_crm/static/src/css/portal_crm.css new file mode 100644 index 00000000000..b4098bfdfc9 --- /dev/null +++ b/addons/portal_crm/static/src/css/portal_crm.css @@ -0,0 +1,12 @@ +/* Main container */ +.openerp .oe_portal_crm_contact { + width: 960px; + margin: 0 auto; +} + +/* */ +.openerp .oe_portal_crm_contact .oe_portal_crm_office .oe_fold_column.oe_kanban_record { + float: none; + display: block; + width: 100%; +} \ No newline at end of file diff --git a/addons/portal_crm/wizard/contact_view.xml b/addons/portal_crm/wizard/contact_view.xml index 3e4afa067f6..33cfb4bca7d 100644 --- a/addons/portal_crm/wizard/contact_view.xml +++ b/addons/portal_crm/wizard/contact_view.xml @@ -8,23 +8,61 @@ portal_crm.crm_contact_us form -
-
+ +
- - - + + - + + +
- - - - - - - +
+

Get in touch

+ + + + + + +
+
+

Our office

@@ -38,20 +76,24 @@ -
- - -

- - - -
+ +

+
+
+ +
+
+
+ + +
-
@@ -67,9 +109,9 @@ 99
- @@ -80,9 +122,10 @@ - Contact Us + Contact portal_crm.crm_contact_us form + inline