Mobile file: kleinere DOM fixes
authorSven Schöling <s.schoeling@googlemail.com>
Fri, 23 Apr 2021 15:07:03 +0000 (17:07 +0200)
committerSven Schöling <s.schoeling@googlemail.com>
Fri, 25 Jun 2021 13:51:32 +0000 (15:51 +0200)
templates/mobile_webpages/file/list.html
templates/mobile_webpages/file/upload_dialog.html

index b6d1bcd..30c493b 100644 (file)
@@ -12,7 +12,7 @@
    <tr>
   [%- SET checkname = source.chk_action %]
   [%- IF edit_attachments %]
-    <th>[% P.M.checkbox_tag(checkname _ '_checkall', label=source.chkall_title) %]
+    <th>[% P.M.checkbox_tag(checkname _ '_checkall', label=' ', checkall=checkname _ "[]") %]</th>
   [%- END %]
     <th>[% LxERP.t8('Date') | html %]</th>
     <th>[% source.file_title | html %]</th>
index 47f63cf..85df476 100644 (file)
@@ -7,21 +7,20 @@
 <form method="post" id="upload_form" enctype="multipart/form-data" action="controller.pl">
   [% SET multiple = 'true' %]
   [% IF SELF.object_type == 'shop_image' %][% multiple = 'false' %][% END %]
-  <div class="row">
     <div class="file-field input-field col s12">
-      <div class="btn s3">
+      <div class="btn m3 s12">
         <span>[% 'Filename' | $T8 %]</span>
         <input
           name="uploadfiles[]" type="file" [% IF multiple %]multiple[% END %]
           id="upload_files" size="45" accept="[% SELF.accept_types %]" capture="camera"
           onchange="kivi.File.allow_upload_submit();">
       </div>
-      <div class="file-path-wrapper s9">
+      <div class="file-path-wrapper m9 s12">
         <input class="file-path validate" type="text">
       </div>
     </div>
 
-    <div class="s12">
+    <div class="m12 s12">
      [% P.M.button_tag(
        P.escape_js_call("kivi.File.upload_selected_files", SELF.object_id, SELF.object_type, SELF.file_type, SELF.maxsize, SELF.is_global),
        LxERP.t8("Upload file"),
@@ -31,7 +30,6 @@
      [% P.M.button_tag("kivi.File.reset_upload_form()", LxERP.t8('Reset'), flat=1) %]
     </div>
 
-  </div>
 
 
  <hr>