aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cabo <david@calibea.com>2011-08-11 19:30:44 +0200
committerDavid Cabo <david@calibea.com>2011-08-12 10:16:24 +0200
commit5a501861810fca5c9cea46b5787b671ccff4131e (patch)
tree582c5b58531f11567f1d2f82df6bc6a71735bd3a
parenteb616008189c6db73e88a65505e57eabfbfe453c (diff)
Improve description of CSV file format on upload page
-rw-r--r--app/views/admin_public_body/import_csv.rhtml17
1 files changed, 14 insertions, 3 deletions
diff --git a/app/views/admin_public_body/import_csv.rhtml b/app/views/admin_public_body/import_csv.rhtml
index 75981a501..50a4b951a 100644
--- a/app/views/admin_public_body/import_csv.rhtml
+++ b/app/views/admin_public_body/import_csv.rhtml
@@ -17,10 +17,21 @@
</p>
<p>
- <label for="csv_file">CSV file (no header rows; unused first column; name second column; email third column):</label>
- <br/>
- <%= file_field_tag :csv_file, :size => 60 %>
+ <label for="csv_file">CSV file:</label>
+ <%= file_field_tag :csv_file, :size => 40 %>
</p>
+
+ <p><strong>CSV file format:</strong> A first row with the list of fields,
+ starting with '#', is optional but highly recommended. The fields 'name'
+ and 'email' are required; additionaly, translated values are supported by
+ adding the locale name to the field name, e.g. 'name.es', 'name.de'... Example:
+ </p>
+
+ <blockquote>
+ #id,name,email,name.es<br/>
+ 1,An Authority,a@example.com,Un organismo<br/>
+ 2,Another One,another@example.com,Otro organismo<br/>
+ </blockquote>
<p><strong>Note:</strong> Choose <strong>dry run</strong> to test, without
actually altering the database. Choose <strong>upload</strong> to actually