Dateimanagement: Controller zum Laden und Generierung der Dateien
[kivitendo-erp.git] / templates / webpages / file / import_dialog.html
1 [%- USE L -%][%- USE LxERP -%][%- USE JavaScript -%]
2
3 <form method="post" id="file_import_form" action="controller.pl">
4  <table>
5   <thead>
6    <tr>
7     <th class="listheading" width="3%">[% L.checkbox_tag(source.chk_action _ '_checkall') %]</th>
8     <th class="listheading" width="11%">[% source.chkall_title %]</th>
9      <th>[% LxERP.t8("Attached Filename") %]</th>
10    </tr>
11   </thead>
12   <tbody>
13    [%- FOREACH file = source.files %]
14    <tr class="listrow[% loop.count % 2 %]">
15    <td>[%- L.checkbox_tag(source.chk_action _ '[]', 'value'=file.name, 'class'=source.chk_action) %]</td>
16    <td></td>
17    <td><span id="[% "filename_" _ file.name %]">[% file.filename %]</span></td>
18    </tr>
19    [%- END %]
20   </tbody>
21  </table>
22
23  <p>
24    [%- 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") %]</td>
25    [%- L.button_tag("kivi.File.importclose();" , LxERP.t8('Cancel')  , class => "submit") %]</td></tr>
26  </p>
27
28 </form>
29
30 <script type="text/javascript">
31 <!--
32 $(function() {
33   $('#[% source.chk_action %]_checkall').checkall('INPUT[name="[% source.chk_action %][]"]');
34 });
35 -->
36 </script>