X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=blobdiff_plain;f=templates%2Fmobile_webpages%2Ffile%2Flist.html;fp=templates%2Fmobile_webpages%2Ffile%2Flist.html;h=30c493b7b3f64d3c343829ed249d813385841cd3;hp=0000000000000000000000000000000000000000;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44
diff --git a/templates/mobile_webpages/file/list.html b/templates/mobile_webpages/file/list.html
new file mode 100644
index 000000000..30c493b7b
--- /dev/null
+++ b/templates/mobile_webpages/file/list.html
@@ -0,0 +1,75 @@
+[%- USE LxERP -%]
+[%- USE L %]
+[%- USE HTML %]
+[%- USE P %]
+
+
+[%- FOREACH source = SOURCES %]
+
+
+
+ [%- SET checkname = source.chk_action %]
+ [%- IF edit_attachments %]
+ [% P.M.checkbox_tag(checkname _ '_checkall', label=' ', checkall=checkname _ "[]") %] |
+ [%- END %]
+ [% LxERP.t8('Date') | html %] |
+ [% source.file_title | html %] |
+ [%- IF file_type == 'image' %]
+ [% LxERP.t8('Title') %] |
+ [% LxERP.t8('ImagePreview') %] |
+ [% LxERP.t8('Description') %] |
+ [%- ELSE %]
+ |
+ [%- END %]
+
+
+
+
+ [%- FOREACH file = source.files %]
+
+ [%- IF edit_attachments %]
+ [%- P.M.checkbox_tag(checkname _ '[]', value=file.id _ '_' _ file.version, class=checkname, label=' ') %] |
+ [%- END %]
+ [% file.mtime_as_timestamp_s %][% L.hidden_tag("version[]", file.version) %] |
+
+ [% file.file_name %] |
+ [%- IF file_type == 'image' %]
+ [% file.title %] |
+
+
+ |
+ [% file.description %] |
+ [%- ELSE %]
+ |
+ [%- END %]
+
+ [%- END %]
+
+
+
+ [%- IF edit_attachments %]
+ [%- IF source.can_import %]
+ [% P.M.button_tag("kivi.File.unimport(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ checkname _ "');", source.chk_title) %]
+ [%- ELSE %]
+ [%- IF source.can_delete %]
+ [% P.M.button_tag("kivi.File.delete(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ checkname _ "');", source.chk_title) %]
+ [%- END %]
+ [%- END %]
+ [%- END %]
+ [%- IF source.can_rename %]
+ [% P.M.button_tag("kivi.File.rename(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ checkname _ "');", source.rename_title ) %]
+ [%- END %]
+ [%- IF source.can_upload %]
+ [% P.M.button_tag("kivi.File.upload(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ source.upload_title _ "');", source.upload_title ) %]
+ [%- END %]
+ [%- IF source.can_import %]
+ [% P.M.button_tag("kivi.File.import(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ source.name _ "','" _ source.path _"');", source.import_title ) %]
+ [%- END %]
+
+[%- END %]
+
+[% P.M.button_tag("kivi.File.update(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "');", LxERP.t8('Update')) %]
+
+