From 65a06b5759756e48e5cf30bd36ffcf9ea4b27522 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 26 Jan 2017 16:49:05 +0100 Subject: [PATCH] =?utf8?q?CSV-Import:=20Kommentare=20zu=20Formular=20hinzu?= =?utf8?q?gef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- templates/webpages/csv_import/form.html | 40 ++++++++++++------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/templates/webpages/csv_import/form.html b/templates/webpages/csv_import/form.html index c3cbcac2e..2fff25263 100644 --- a/templates/webpages/csv_import/form.html +++ b/templates/webpages/csv_import/form.html @@ -14,7 +14,7 @@ [%- IF SELF.profile.get('dont_edit_profile') %] [% L.hidden_tag('force_profile', 1) %] [% L.hidden_tag('profile.id', SELF.profile.id) %] - [%- ELSE %] + [%- ELSE %][%# IF SELF.profile.get('dont_edit_profile') %]

[%- LxERP.t8('Import profiles') %]

@@ -23,7 +23,7 @@ - [%- END %] + [%- END %][%# IF SELF.profile.id %] [%- IF SELF.all_profiles.size %] @@ -36,7 +36,7 @@ [% L.submit_tag('action_destroy', LxERP.t8('Delete profile'), confirm => LxERP.t8('Do you really want to delete this object?')) %] - [%- END %] + [%- END %][%# IF SELF.all_profiles.size %] @@ -65,7 +65,7 @@ [%- FOREACH p = SELF.worker.profile %] - [%- END %] + [%- END %][%# FOREACH SELF.worker.profile %] [%- FOREACH p = SELF.worker.profile %] @@ -82,13 +82,13 @@ - [%- END %] + [%- END %][%# FOREACH SELF.displayable_columns.$ri %]
[%- LxERP.t8('Current profile') %]: [%- HTML.escape(SELF.profile.name) %]
[%- LxERP.t8('Save settings as') %]:
[%- p.row_ident %]
[%- HTML.escape(row.name) %] [%- HTML.escape(row.description) %]
- [%- END %] + [%- END %][%# FOREACH SELF.worker.profile %] - [%- ELSE %] + [%- ELSE %][%# IF SELF.worker.is_multiplexed %] @@ -100,9 +100,9 @@ - [%- END %] + [%- END %][%# FOREACH SELF.displayable_columns %]
[%- LxERP.t8('Column name') %][%- HTML.escape(row.name) %] [%- HTML.escape(row.description) %]
- [%- END %] + [%- END %][%# SELF.worker.is_multiplexed %] [%- IF SELF.type == 'contacts' %]

@@ -150,7 +150,7 @@ [%- LxERP.t8('Amount and net amount are calculated by kivitendo. "verify_amount" and "verify_netamount" can be used for sanity checks.') %]
[%- LxERP.t8('If amounts differ more than "Maximal amount difference" (see settings), this item is marked as invalid.') %]

-[%- END %] +[%- END %][%# IF SELF.type == … %]

[%- L.submit_tag('action_download_sample', LxERP.t8('Download sample file')) %] @@ -190,7 +190,7 @@ [% IF SELF.sep_char == entry.first %] [% SET custom_sep_char = '' %] [%- END %] [% L.radio_button_tag('sep_char', value => entry.first, label => entry.last, checked => SELF.sep_char == entry.first) %] - [%- END %] + [%- END %][%# FOREACH SELF.all_sep_chars %] [% L.radio_button_tag('sep_char', value => 'custom', checked => custom_sep_char != '') %] @@ -206,7 +206,7 @@ [% IF SELF.quote_char == entry.first %] [% SET custom_quote_char = '' %] [%- END %] [% L.radio_button_tag('quote_char', value => entry.first, label => entry.last, checked => SELF.quote_char == entry.first) %] - [%- END %] + [%- END %][%# FOREACH SELF.all_quote_chars %] [% L.radio_button_tag('quote_char', value => 'custom', checked => custom_quote_char != '') %] @@ -222,7 +222,7 @@ [% IF SELF.escape_char == entry.first %] [% SET custom_escape_char = '' %] [%- END %] [% L.radio_button_tag('escape_char', value => entry.first, label => entry.last, checked => SELF.escape_char == entry.first) %] - [%- END %] + [%- END %][%# FOREACH SELF.all_escape_chars %] [% L.radio_button_tag('escape_char', value => 'custom', checked => custom_escape_char != '') %] @@ -239,7 +239,7 @@ [% FOREACH key = duplicate_fields.keys %] - [% END %] + [% END %][%# FOREACH duplicate_fields.keys %] @@ -253,7 +253,7 @@ [% L.select_tag('settings.duplicates', opts, default = SELF.profile.get('duplicates'), style = 'width: 300px') %] - [% END %] + [% END %][%# IF duplicate_fields.size %] [%- IF SELF.type == 'parts' %] [%- INCLUDE 'csv_import/_form_parts.html' %] @@ -290,7 +290,7 @@ [%- LxERP.t8('Existing file on server') %]: [%- LxERP.t8('Uploaded on #1, size #2 kB', SELF.file.displayable_mtime, LxERP.format_amount(SELF.file.size / 1024, 2)) %] - [%- END %] + [%- END %][%# IF SELF.file.exists %] @@ -319,7 +319,7 @@ [%- FOREACH row = SELF.mappings %] [% PROCESS 'csv_import/_mapping_item.html', item=row IF row.from %] -[%- END %] +[%- END %][%# FOREACH SELF.mappings %] [% PROCESS 'csv_import/_mapping_item.html', item={} %] @@ -328,9 +328,9 @@


-[%- END %] +[%- END %][%# UNLESS SELF.worker.is_multiplexed %] [% L.submit_tag('action_test', LxERP.t8('Test and preview')) %] -[%- END %] +[%- END %][%# IF SELF.profile.get('dont_edit_profile') %] [% L.submit_tag('action_import', LxERP.t8('Import'), style='display:none') %] @@ -338,7 +338,7 @@
[%- IF SELF.deferred %] [%- PROCESS 'csv_import/_deferred_results.html' %] - [%- END %] + [%- END %][%# IF SELF.deferred %]
-- 2.20.1