]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/file/upload_dialog.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / file / upload_dialog.html
1 [% USE L %]
2 [% USE LxERP %]
3
4 <form method="post" id="upload_form" enctype="multipart/form-data" action="controller.pl">
5 [% SET multiple = 'true' %]
6 [% IF SELF.object_type == 'shop_image' %][% multiple = 'false' %][% END %]
7
8
9 <table class="tbl-horizontal">
10   <tbody>
11     <tr>
12       <th>[% LxERP.t8("Filename") %]:</th>
13       <td><input type="file" name="uploadfiles[]" multiple="[% multiple %]" id="upload_files" size="45" accept="[% SELF.accept_types %]" onchange="kivi.File.allow_upload_submit();"></td>
14     </tr>
15     [% IF SELF.object_type == 'shop_image' %]
16     <tr>
17       <th>[% LxERP.t8("Title") %]</th>
18       <td>[% L.input_tag("title",'') %]</td>
19     </tr>
20     <tr>
21       <th>[% LxERP.t8("Description") %]</th>
22       <td>[% L.input_tag("description",'') %]</td>
23     </tr>
24     [% END %]
25   </tbody>
26 </table>
27
28 <div class="buttons">
29 <input value="[% LxERP.t8("Upload file") %]" id="upload_selected_button" onclick="kivi.File.upload_selected_files([% SELF.object_id %],'[% SELF.object_type %]','[% SELF.file_type %]',[% SELF.maxsize %],[% SELF.is_global %]);" type="button" disabled >
30 <a href="#" onclick="kivi.File.reset_upload_form();" class="button neutral">[% LxERP.t8("Reset") %]</a>
31 <a href="#" onclick="$('#files_upload').dialog('close');" class="button neutral">[% LxERP.t8("Cancel") %]</a>
32 </div>
33
34 <div id="upload_result"><p></p></div>
35
36 </form>