X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/a00404d94d61fc16aedc24c7fa0929ab81ac077a..2370c9a551d71745ef24ec8cb788fd4515303b5b:/templates/webpages/file/list.html
diff --git a/templates/webpages/file/list.html b/templates/webpages/file/list.html
index 16b4b85e0..1bcf073a6 100644
--- a/templates/webpages/file/list.html
+++ b/templates/webpages/file/list.html
@@ -1,4 +1,7 @@
[%- USE LxERP -%][% USE L %]
+[% USE T8 %]
+[% USE Base64 %]
+[% USE HTML %]
[%- IF ! json %]
[%- END %]
@@ -35,7 +38,7 @@
[% LxERP.t8('Description') %] |
[%- ELSE %]
-
|
+
[% LxERP.t8('ImagePreview') %] |
[%- END %]
@@ -60,7 +63,19 @@
[% file.description %] |
[%- ELSE %]
-
|
+
+ [%- IF file.thumbnail %]
+
+ ![[% file.file_name %]](data:[% HTML.escape(file.thumbnail.thumbnail_img_content_type) %];base64,[% file.thumbnail.thumbnail_img_content.encode_base64 %])
+ ![]()
+
+ [%- ELSE %]
+ -
+ [%- END %]
+ |
[%- END %]
[%- END # FOREACH file %]
@@ -81,12 +96,20 @@
[%- can_rename = 1 %]
[% L.button_tag("kivi.File.rename(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ checkname _ "'," _ is_global _ ");", source.rename_title ) %]
[%- END %]
- [%- IF source.can_upload %]
- [% L.button_tag("kivi.File.upload(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ source.upload_title _ "'," _ is_global _ ");", source.upload_title ) %]
- [%- END %]
[%- IF source.can_import %]
[% L.button_tag("kivi.File.import(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ source.name _ "','" _ source.path _"');", source.import_title ) %]
[%- END %]
+ [%- IF source.can_upload %]
+ [% L.button_tag("kivi.File.upload(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ source.upload_title _ "'," _ is_global _ ");", source.upload_title ) %]
+
+ [% 'Drag and drop files here' | $T8 %]
+
+ [%- END %]
[%- END # FOREACH source %]