47f63cfe22531279976077e02a6430f6b7f37c6a
[kivitendo-erp.git] / templates / mobile_webpages / file / upload_dialog.html
1 [%- USE L -%]
2 [%- USE P -%]
3 [%- USE T8 -%]
4 [%- USE LxERP -%]
5 [%- USE JavaScript -%]
6
7 <form method="post" id="upload_form" enctype="multipart/form-data" action="controller.pl">
8   [% SET multiple = 'true' %]
9   [% IF SELF.object_type == 'shop_image' %][% multiple = 'false' %][% END %]
10   <div class="row">
11     <div class="file-field input-field col s12">
12       <div class="btn s3">
13         <span>[% 'Filename' | $T8 %]</span>
14         <input
15           name="uploadfiles[]" type="file" [% IF multiple %]multiple[% END %]
16           id="upload_files" size="45" accept="[% SELF.accept_types %]" capture="camera"
17           onchange="kivi.File.allow_upload_submit();">
18       </div>
19       <div class="file-path-wrapper s9">
20         <input class="file-path validate" type="text">
21       </div>
22     </div>
23
24     <div class="s12">
25      [% P.M.button_tag(
26        P.escape_js_call("kivi.File.upload_selected_files", SELF.object_id, SELF.object_type, SELF.file_type, SELF.maxsize, SELF.is_global),
27        LxERP.t8("Upload file"),
28        id="upload_selected_button",
29        disabled=1)
30      %]
31      [% P.M.button_tag("kivi.File.reset_upload_form()", LxERP.t8('Reset'), flat=1) %]
32     </div>
33
34   </div>
35
36
37  <hr>
38
39  <div id="upload_result"></div>
40 </form>