From a9d7f9ea607df75e5e9ff6a320aafe210c904083 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20van=20der=20Essen?=
Date: Wed, 17 Oct 2012 18:56:46 +0200
Subject: [PATCH] [IMP] css: improved csv import css
bzr revid: fva@openerp.com-20121017165646-8u35781nm8skhulh
---
addons/base_import/static/src/css/import.css | 150 +++++++++++++++----
addons/base_import/static/src/xml/import.xml | 40 ++---
2 files changed, 145 insertions(+), 45 deletions(-)
diff --git a/addons/base_import/static/src/css/import.css b/addons/base_import/static/src/css/import.css
index 21e598ff707..07b193c3dc4 100644
--- a/addons/base_import/static/src/css/import.css
+++ b/addons/base_import/static/src/css/import.css
@@ -1,3 +1,54 @@
+.oe_import{
+ display: inline-block;
+ width: 600px;
+ padding: 16px;
+}
+.oe_import > p {
+ margin-left: 8px;
+ margin-right: 8px;
+ text-align: justify
+}
+
+/* ----------- IMPORT BOX ----------- */
+
+.oe_import .oe_import_box{
+ margin: 16px;
+ padding: 16px;
+ background: #F0EEEE;
+ border-radius: 3px;
+ border: solid 1px #dddddd;
+}
+.oe_import .oe_import_toggle{
+ margin-top: 8px;
+}
+.oe_import .oe_import_options{
+ margin-top: 8px;
+}
+.oe_import .oe_import_options input{
+ width: 150px;
+}
+
+.oe_import a.oe_import_toggle {
+ display: block;
+}
+.oe_import a.oe_import_toggle:before {
+ content: '+'
+}
+
+.oe_import .oe_import_options p {
+ margin: 0;
+ padding: 0;
+}
+.oe_import .oe_import_options label {
+ display: inline-block;
+ width: 100px;
+ height:32px;
+ line-height:32px;
+ text-align: right;
+}
+
+/* ----------- INITIAL SETUP ------------ */
+
.openerp .oe_list_buttons .oe_alternative {
visibility: visible;
}
@@ -25,38 +76,85 @@
display: block;
}
-.oe_import .oe_import_error_report ul .oe_import_report_error {
- background-color: #FFD9DB;
-}
-.oe_import .oe_import_error_report ul .oe_import_report_warning {
- background-color: #FEFFD9;
-}
-.oe_import .oe_import_error_report ul .oe_import_report_info {
- background-color: #d3ffd3;
-}
-
.oe_import .oe_import_noheaders {
color: #888;
}
-.oe_import a.oe_import_toggle {
- display: block;
-}
-.oe_import a.oe_import_toggle:before {
- content: '> '
-}
-
-.oe_import .oe_import_options p {
- margin: 0;
- padding: 0;
-}
-.oe_import .oe_import_options label {
- display: inline-block;
- width: 8em;
- text-align: right;
-}
.oe_import_selector ul,
.oe_import_selector li {
margin: 0; padding: 0;
}
+
+/* ------------- ERRORS AND WARNINGS REPORT ------------ */
+
+.oe_import .oe_import_error_report ul{
+ padding-left: 16px;
+}
+.oe_import .oe_import_report {
+ margin-right: 16px;
+ padding: 4px;
+ list-style: none;
+ border-bottom: solid 1px rgba(0,0,0,0.05);
+}
+.oe_import .oe_import_report:first-child{
+ border-top-left-radius: 3px;
+ border-top-right-radius: 3px;
+}
+.oe_import .oe_import_report:last-child{
+ border-bottom-left-radius:3px;
+ border-bottom-right-radius:3px;
+ border-bottom: none;
+}
+.oe_import .oe_import_report_error {
+ background-color: #FFD9DB;
+ color: #AF5F5E;
+}
+.oe_import .oe_import_report_error:last-of-type{
+ border-bottom:none;
+}
+.oe_import .oe_import_report_warning {
+ background-color: #FEFFD9;
+ color: #918743;
+}
+.oe_import .oe_import_report_warning:last-of-type{
+ border-bottom:none;
+}
+.oe_import .oe_import_report_info {
+ background-color: #d3ffd3;
+}
+.oe_import .oe_import_report_info:last-of-type{
+ border-bottom:none;
+}
+
+/* ------------- THE CSV TABLE ------------ */
+
+.oe_import .oe_import_grid{
+ margin: 16px;
+ border-radius:3px;
+ border: solid 1px #909090;
+}
+.oe_import .oe_import_grid tr{
+ height:16px;
+}
+.oe_import .oe_import_grid tr.oe_import_grid-header:first-child{
+ height: 24px;
+ background: #909090;
+ color: white;
+}
+.oe_import .oe_import_grid tr:nth-child(odd){
+ background: rgba(0,0,0,0.05);
+}
+.oe_import .oe_import_grid td{
+ padding: 2px;
+ padding-left: 4px;
+}
+.oe_import .oe_import_grid tr.oe_import_grid-header td:not(:last-child){
+ border-right: 1px solid #707070;
+}
+.oe_import .oe_import_grid td:not(:last-child){
+ border-right: 1px solid #D0D0D0;
+}
+
+
+
diff --git a/addons/base_import/static/src/xml/import.xml b/addons/base_import/static/src/xml/import.xml
index 1c57c40c9db..4f721032d1d 100644
--- a/addons/base_import/static/src/xml/import.xml
+++ b/addons/base_import/static/src/xml/import.xml
@@ -21,24 +21,26 @@
class="oe_import_csv" target="_blank">.CSV
file to import. If you need a sample importable file, you
can use the export tool to generate one.
-
-
-
-
-
- File Format Options…
-
-
-
-
-
-
+
+
+
+
+
@@ -54,7 +56,7 @@
simpler especially when the file has many columns.
-
+
Frequently Asked Questions