Keine Weiche für mt940 in SL/Controller/CsvImport.pm mehr
[kivitendo-erp.git] / templates / webpages / bankimport / form.html
diff --git a/templates/webpages/bankimport/form.html b/templates/webpages/bankimport/form.html
new file mode 100644 (file)
index 0000000..1c3d672
--- /dev/null
@@ -0,0 +1,24 @@
+[%- USE HTML %]
+[%- USE LxERP %]
+[%- USE L %]
+[%- USE T8 %]
+
+ <div class="listtop">[% FORM.title %]</div>
+
+ [% IF profile %]
+ <p>
+ [% "Import a MT940 file:" | $T8 %]
+ </p>
+
+ <form method="post" action="controller.pl" enctype="multipart/form-data">
+  [% L.hidden_tag('action', 'BankImport/import_mt940') %]
+
+    [% L.input_tag('file', '', type => 'file', accept => '*') %]
+    [% L.submit_tag('action_import_mt940', LxERP.t8('Import')) %]
+
+ </form>
+ [% ELSE %]
+ <p>
+ [% "Please create a CSV import profile called \"MT940\" for the import type bank transactions:" | $T8 %] <a href="[% SELF.url_for(controller => 'CsvImport', action => 'new', 'profile.type' => 'bank_transactions' ) %]">CsvImport</a>
+ </p>
+ [% END %]