diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-04-08 12:11:07 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-04-09 11:02:24 +0100 |
commit | de953a4dd99320f42d7cb51bd34a12de5079789c (patch) | |
tree | 4a606f81d4943c207a176da72722b773843107dc | |
parent | 65b2c932c606278356ecbaee66b0a52106da3704 (diff) |
Make /admin/body/import_csv csv format clearer
- Use code tags to highlight field names
- Use pre tag to format example CSV as code
-rw-r--r-- | app/views/admin_public_body/import_csv.html.erb | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/app/views/admin_public_body/import_csv.html.erb b/app/views/admin_public_body/import_csv.html.erb index bf8d2cf4f..3c56f2005 100644 --- a/app/views/admin_public_body/import_csv.html.erb +++ b/app/views/admin_public_body/import_csv.html.erb @@ -36,20 +36,19 @@ %> </p> - <p><strong>CSV file format:</strong>The first row should be a list - of fields, starting with '#'. The fields 'name' and - 'request_email' are required; additionally, translated values are + <p><strong>CSV file format:</strong> The first row should be a list + of fields, starting with <code>#</code>. The fields <code>name</code> and + <code>request_email</code> are required; additionally, translated values are supported by adding the locale name to the field name, - e.g. 'name.es', 'name.de'... Example: + e.g. <code>name.es</code>, <code>name.de</code>…<br /> + <strong>Example:</strong> </p> - <blockquote> - <p> - #id,name,request_email,name.es,tag_string<br/> - 1,An Authority,a@example.com,Un organismo,a_tag another_tag<br/> - 2,Another One,another@example.com,Otro organismo,a_tag<br/> - <p> - </blockquote> + <pre> +#id,name,request_email,name.es,tag_string +1,An Authority,a@example.com,Un organismo,a_tag another_tag +2,Another One,another@example.com,Otro organismo,a_tag + </pre> <p><strong>Supported fields:</strong> <ul> |