X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Ffile%2Flist.html;h=2868d4f472be6b5569511cfe39a08e112b7cc812;hb=b293ff8ad52fc76ba0c44783e3982418114d6b08;hp=238fb12fe721577131dbe3d301f22e93de94e939;hpb=0bfbcce6e77e0f9d83e4f54f3fe9da7edcc866f3;p=kivitendo-erp.git diff --git a/templates/webpages/file/list.html b/templates/webpages/file/list.html index 238fb12fe..2868d4f47 100644 --- a/templates/webpages/file/list.html +++ b/templates/webpages/file/list.html @@ -1,101 +1,149 @@ -[%- USE LxERP -%][% USE L %][% USE HTML %] +[%- USE LxERP -%][% USE L %] +[% USE T8 %] +[% USE Base64 %] +[% USE HTML %] [%- IF ! json %] -
+
[%- END %]
[% title %]
-[%- SET can_rename = 0 %] -[%- FOREACH source = SOURCES %] - - - - - [%- SET checkname = source.chk_action %] - [%- IF is_global %] - [%- SET checkname = object_type _ '_' _ source.chk_action %] - [%- END %] - [%- IF edit_attachments %] - - - - [%- END %] - - - [%- IF file_type == 'image' %] - - - - [%- ELSE %] - - [%- END %] - - + [%- SET can_rename = 0 %] + [%- FOREACH source = SOURCES %] +
[% source.title %]
[% L.checkbox_tag(checkname _ '_checkall') %][% source.chkall_title %][% LxERP.t8('Date') %][% source.file_title %][% LxERP.t8('Title') %] - [% LxERP.t8('ImagePreview') %] - [% LxERP.t8('Description') %]
+ + + + [%- SET checkname = source.chk_action %] + [%- IF is_global %] + [%- SET checkname = object_type _ '_' _ source.chk_action %] + [%- END %] + [%- IF edit_attachments %] + + + + [%- END %] + + + + [%- IF file_type == 'image' %] + + + + [%- 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 %] + + + + [%- IF file_type == 'image' %] + + + + [%- ELSE %] + + [%- END %] + + [%- END # FOREACH file %] + +
[% source.title %]
[% L.checkbox_tag(checkname _ '_checkall') %][% source.chkall_title %][% LxERP.t8('Version') %][% LxERP.t8('Date') %][% source.file_title %][% LxERP.t8('Title') %] + [% LxERP.t8('ImagePreview') %] + [% LxERP.t8('Description') %][% LxERP.t8('ImagePreview') %]
- - [%- FOREACH file = source.files %] - - [%- IF edit_attachments %] - [%- IF file.newest %] - [%- L.checkbox_tag(checkname _ '[]', 'value'=file.id, 'class'=checkname) %] - [%- ELSE %] - - [%- END %] - - [%- END %] - [% file.mtime_as_timestamp_s %] - - [% file.file_name %] - [%- IF file_type == 'image' %] - [% file.title %] - - [% file.title %] - - [% file.description %] - [%- ELSE %] - - [%- END %] - - [%- END %] - - - [%- IF edit_attachments %] + [%- IF edit_attachments %] [%- IF source.can_import %] - [% L.button_tag("kivi.File.unimport(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ checkname _ "');",source.chk_title) %] + [% L.button_tag("kivi.File.unimport(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ checkname _ "');",source.chk_title) %] [%- ELSE %] + [%- IF source.can_delete %] [% L.button_tag("kivi.File.delete(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ checkname _ "'," _ is_global _ ");", source.chk_title) %] + [%- END %] [%- END %] - [%- END %] - [%- IF source.can_rename %] + [%- END %] + [%- IF source.can_rename %] [%- 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 %] + [%- 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 %] -
-[%- END %] -
-[% L.button_tag("kivi.File.update(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "'," _ is_global _ ");", LxERP.t8('Update')) %] + [%- 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 %] +
+
+ [% L.button_tag("kivi.File.update(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "'," _ is_global _ ");", LxERP.t8('Update')) %] +
+ [%- IF ! json %] -
-[%- UNLESS is_global %] -[%- IF can_rename %] -[% INCLUDE 'file/rename_dialog.html' -%] -[%- END %] -[%- END %] + + [%- UNLESS is_global %] + [%- IF can_rename %] + [% INCLUDE 'file/rename_dialog.html' -%] + [%- END %] + [%- END %] [%- END %] + +