Revision 6261d6ca
Von Martin Helmling martin.helmling@octosoft.eu vor mehr als 7 Jahren hinzugefügt
templates/webpages/csv_import/form.html | ||
---|---|---|
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) %] |
13 |
[% L.hidden_tag('csv_import_access', SELF.csv_import_access) %] |
|
13 | 14 |
|
15 |
[%- IF SELF.csv_import_access %] |
|
16 |
[% L.hidden_tag('force_profile', 1) %] |
|
17 |
[% L.hidden_tag('profile.id', SELF.profile.id) %] |
|
18 |
[%- ELSE %] |
|
14 | 19 |
<h2>[%- LxERP.t8('Import profiles') %]</h2> |
15 | 20 |
|
16 | 21 |
<table> |
... | ... | |
323 | 328 |
|
324 | 329 |
</div> |
325 | 330 |
<hr> |
331 |
[%- END %] |
|
326 | 332 |
[%- END %] |
327 | 333 |
[% L.submit_tag('action_test', LxERP.t8('Test and preview')) %] |
328 | 334 |
[% L.submit_tag('action_import', LxERP.t8('Import'), style='display:none') %] |
Auch abrufbar als: Unified diff
Spezifisches Recht für CSV-Import
Da immer mehr Bewegungsdaten per CSV-Import eingelesen werden,
ist es sinnvoll, dies ohne 'config' Recht durchführen zu können.
In diesem Falle sind default Import-Profile vorzuhalten, da die Nutzer dann keine Anpassungen machen dürfen.
Die Default Profile haben das flag is_default gesetzt und als login "default" eingetragen.
Zur Übergabe dieses Rechts dient der neue Parameter csv_import_access,
der entsprechend weiterzugeben ist.
Diese Änderung wird erstmalig für den MT940 Bankimport eingesetzt
Voraussetzung für #5193.1