Revision 31b247ee
Von Moritz Bunkus vor mehr als 7 Jahren hinzugefügt
SL/Controller/CsvImport.pm | ||
---|---|---|
333 | 333 |
|
334 | 334 |
$self->setup_help; |
335 | 335 |
|
336 |
$self->setup_render_inputs_action_bar; |
|
337 |
|
|
336 | 338 |
$self->render('csv_import/form', title => $title); |
337 | 339 |
} |
338 | 340 |
|
... | ... | |
726 | 728 |
[ grep { $_->{from} } @{ $::form->{mappings} || [] } ] |
727 | 729 |
} |
728 | 730 |
|
731 |
sub setup_render_inputs_action_bar { |
|
732 |
my ($self, %params) = @_; |
|
733 |
|
|
734 |
for my $bar ($::request->layout->get('actionbar')) { |
|
735 |
$bar->add( |
|
736 |
action => [ |
|
737 |
t8('Preview'), |
|
738 |
submit => [ '#form', { action => 'CsvImport/test' } ], |
|
739 |
accesskey => 'enter', |
|
740 |
not_if => ($self->profile && $self->profile->get('dont_edit_profile')), |
|
741 |
], |
|
742 |
action => [ |
|
743 |
t8('Import'), |
|
744 |
submit => [ '#form', { action => 'CsvImport/import' } ], |
|
745 |
disabled => t8('The test import has not been executed yet.'), |
|
746 |
id => 'action_import', |
|
747 |
], |
|
748 |
); |
|
749 |
} |
|
750 |
} |
|
751 |
|
|
729 | 752 |
1; |
locale/de/all | ||
---|---|---|
2179 | 2179 |
'Prepare bank collection via SEPA XML' => 'Einzug via SEPA XML vorbereiten', |
2180 | 2180 |
'Prepare bank transfer via SEPA XML' => 'Überweisung via SEPA XML vorbereiten', |
2181 | 2181 |
'Prepayment' => 'Vorauszahlung', |
2182 |
'Preview' => 'Druckvorschau',
|
|
2182 |
'Preview' => 'Vorschau',
|
|
2183 | 2183 |
'Preview Mode' => 'Vorschaumodus', |
2184 | 2184 |
'Previous transdate text' => 'wurde gespeichert am', |
2185 | 2185 |
'Previous transnumber text' => 'Letzte Buchung mit der Buchungsnummer', |
... | ... | |
2843 | 2843 |
'Template suggestions' => 'Vorschläge für Vorlagen', |
2844 | 2844 |
'Templates' => 'Vorlagen', |
2845 | 2845 |
'Terms missing in row ' => '+Tage fehlen in Zeile ', |
2846 |
'Test and preview' => 'Test und Vorschau', |
|
2847 | 2846 |
'Test database connectivity' => 'Datenbankverbindung testen', |
2848 | 2847 |
'Text block actions' => 'Textblockaktionen', |
2849 | 2848 |
'Text block picture actions' => 'Aktionen für Textblockbilder', |
... | ... | |
3111 | 3110 |
'The tax zone is in use and cannot be deleted.' => 'Die Steuerzone wird benutzt und kann nicht gelöscht werden', |
3112 | 3111 |
'The taxzone has been created.' => 'Die Steuerzone wurde erstellt.', |
3113 | 3112 |
'The taxzone has been saved.' => 'Die Steuerzone wurde gespeichert.', |
3113 |
'The test import has not been executed yet.' => 'Der Testimport wurde noch nicht durchgeführt.', |
|
3114 | 3114 |
'The third reason is that wrong (taxkey) settings for the credit / debit CSV-import were used.' => 'Der dritte Grund ist, dass fehlerhafte Einstellungen (Steuerschlüssel) beim Kreditoren / Debitoren CSV-Import benutzt worden sind.', |
3115 | 3115 |
'The third way is to download the module from the above mentioned URL and to install the module manually following the installations instructions contained in the source archive.' => 'Die dritte Variante besteht darin, das Paket von der oben genannten URL herunterzuladen und es manuell zu installieren. Beachten Sie dabei die im Paket enthaltenen Installationsanweisungen.', |
3116 | 3116 |
'The three columns "make_X", "model_X" and "lastcost_X" with the same number "X" are used to import vendor part numbers and vendor prices.' => 'Die drei Spalten "make_X", "model_X" und "lastcost_X" mit derselben Nummer "X" werden zum Import von Lieferantenartikelnummern und -preisen genutzt.', |
templates/webpages/csv_import/form.html | ||
---|---|---|
6 | 6 |
|
7 | 7 |
[%- INCLUDE 'common/flash.html' %] |
8 | 8 |
|
9 |
<form method="post" action="controller.pl" enctype="multipart/form-data"> |
|
9 |
<form method="post" action="controller.pl" enctype="multipart/form-data" id="form">
|
|
10 | 10 |
[% L.hidden_tag('form_sent', '1') %] |
11 | 11 |
[% L.hidden_tag('action', 'CsvImport/dispatch') %] |
12 | 12 |
[% L.hidden_tag('profile.type', SELF.profile.type) %] |
... | ... | |
329 | 329 |
</div> |
330 | 330 |
<hr> |
331 | 331 |
[%- END %][%# UNLESS SELF.worker.is_multiplexed %] |
332 |
[% L.submit_tag('action_test', LxERP.t8('Test and preview')) %] |
|
333 | 332 |
[%- END %][%# IF SELF.profile.get('dont_edit_profile') %] |
334 |
[% L.submit_tag('action_import', LxERP.t8('Import'), style='display:none') %] |
|
335 |
|
|
336 | 333 |
</form> |
337 | 334 |
|
338 | 335 |
<div id='results'> |
templates/webpages/csv_import/report.html | ||
---|---|---|
55 | 55 |
[%- PROCESS 'common/paginate.html' pages=SELF.pages, base_url = SELF.base_url %] |
56 | 56 |
|
57 | 57 |
<script type='text/javascript'> |
58 |
$(function(){ [%- IF SELF.reporterror %] kivi.clear_flash('info',0);kivi.display_flash('error','[% SELF.reporterror %]',0); [%- ELSE %][%- IF SELF.report.test_mode %] $('#action_import').show() [%- END %][%- END %] }); |
|
58 |
$(function(){ |
|
59 |
[%- IF SELF.reporterror %] |
|
60 |
kivi.clear_flash('info',0); |
|
61 |
kivi.display_flash('error','[% SELF.reporterror %]',0); |
|
62 |
[%- ELSIF SELF.report.test_mode %] |
|
63 |
kivi.ActionBar.Action('#action_import').enable(); |
|
64 |
[%- END %] |
|
65 |
}); |
|
59 | 66 |
</script> |
Auch abrufbar als: Unified diff
ActionBar: Verwendung beim CSV-Import