X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Ffile%2Flist.html;h=2868d4f472be6b5569511cfe39a08e112b7cc812;hb=a6e0a7f493d24aec0eebede85eeaa5e724bd2e11;hp=16b4b85e0f98b4cd8726c383b2894ffc73b412f2;hpb=a00404d94d61fc16aedc24c7fa0929ab81ac077a;p=kivitendo-erp.git diff --git a/templates/webpages/file/list.html b/templates/webpages/file/list.html index 16b4b85e0..2868d4f47 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 %] @@ -9,7 +12,7 @@ [%- FOREACH source = SOURCES %] - + [%- SET checkname = source.chk_action %] [%- IF is_global %] @@ -26,6 +29,7 @@ [%- END %] + [%- IF file_type == 'image' %] @@ -35,19 +39,31 @@ [%- ELSE %] - + [%- END %] [%- FOREACH file = source.files %] - + [%- is_other_version = 1 IF last_id == file.id %] + [%- last_id = file.id %] + [%- IF !is_other_version %] + [%- row_cnt = row_cnt + 1 %] + + [%- ELSE %] + + [%- END %] [%- IF edit_attachments %] [%- END %] - + + [%- ELSE %] - + [%- END %] [%- END # FOREACH file %] @@ -81,12 +110,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 %]
@@ -103,3 +140,10 @@ [%- END %] [%- END %] [%- END %] + +
[% source.title %]
[% source.title %]
[% L.checkbox_tag(checkname _ '_checkall') %] [% source.chkall_title %][% LxERP.t8('Version') %] [% LxERP.t8('Date') %] [% source.file_title %] [% LxERP.t8('Description') %][% LxERP.t8('ImagePreview') %]