Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / file / import_dialog.html
diff --git a/templates/webpages/file/import_dialog.html b/templates/webpages/file/import_dialog.html
new file mode 100644 (file)
index 0000000..1e95de4
--- /dev/null
@@ -0,0 +1,36 @@
+[%- USE L -%][%- USE LxERP -%]
+
+<form method="post" id="file_import_form" action="controller.pl">
+ <table>
+  <thead>
+   <tr>
+    <th class="listheading" width="3%">[% L.checkbox_tag(source.chk_action _ '_checkall') %]</th>
+    <th class="listheading" width="11%">[% source.chkall_title %]</th>
+    <th>[% LxERP.t8("Attached Filename") %]</th>
+   </tr>
+  </thead>
+  <tbody>
+   [%- FOREACH file = source.files %]
+    <tr class="listrow[% loop.count % 2 %]">
+     <td>[%- L.checkbox_tag(source.chk_action _ '[]', 'value'=file.name, 'class'=source.chk_action) %]</td>
+     <td></td>
+     <td><span id="[% "filename_" _ file.name %]">[% file.filename %]</span></td>
+    </tr>
+   [%- END %]
+  </tbody>
+ </table>
+
+ <p>
+  [%- L.button_tag("kivi.File.importaction(" _ SELF.object_id _ ",'" _ SELF.object_type _ "','" _ SELF.file_type _ "','" _ source.name _ "','" _ source.path _ "','"_ source.chk_action _ "');", LxERP.t8('Continue'), id => "import_cont_btn") %]
+  [%- L.button_tag("kivi.File.importclose();" , LxERP.t8('Cancel')  , class => "submit") %]
+ </p>
+
+</form>
+
+<script type="text/javascript">
+ <!--
+  $(function() {
+   $('#[% source.chk_action %]_checkall').checkall('INPUT[name="[% source.chk_action %][]"]');
+  });
+ -->
+</script>