Revision f5594740
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
SL/Controller/CsvImport.pm | ||
---|---|---|
107 | 107 |
$self->$sub(($char_map{$type}->{$char} || [])->[0] || $char); |
108 | 108 |
} |
109 | 109 |
|
110 |
if ($self->type eq 'customers_vendors') { |
|
111 |
$self->render('csv_import/form_customers_vendors', title => $::locale->text('CSV import: customers and vendors')); |
|
110 |
my $title = $self->type eq 'customers_vendors' ? $::locale->text('CSV import: customers and vendors') |
|
111 |
: $self->type eq 'addresses' ? $::locale->text('CSV import: shipping addresses') |
|
112 |
: $self->type eq 'contacts' ? $::locale->text('CSV import: contacts') |
|
113 |
: $self->type eq 'parts' ? $::locale->text('CSV import: parts, services and assemblies') |
|
114 |
: die; |
|
112 | 115 |
|
113 |
} elsif ($self->type eq 'addresses') { |
|
114 |
$self->render('csv_import/form_addresses', title => $::locale->text('CSV import: shipping addresses')); |
|
115 |
|
|
116 |
} elsif ($self->type eq 'contacts') { |
|
117 |
$self->render('csv_import/form_contacts', title => $::locale->text('CSV import: contacts')); |
|
118 |
|
|
119 |
} elsif ($self->type eq 'parts') { |
|
120 |
$self->render('csv_import/form_parts', title => $::locale->text('CSV import: parts, services and assemblies')); |
|
121 |
|
|
122 |
} else { |
|
123 |
die; |
|
124 |
} |
|
116 |
$self->render('csv_import/form', title => $title); |
|
125 | 117 |
} |
126 | 118 |
|
127 | 119 |
sub test_and_import { |
Auch abrufbar als: Unified diff
form_customers_vendors.html nach form.html umbenannt; Kosmetik