X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Ffile%2Flist.html;h=04b476581e953a7b2e3df8671f6309378cff16e7;hb=cecc0509e2a2abeaca123ab95a2364eb98d0a380;hp=238fb12fe721577131dbe3d301f22e93de94e939;hpb=0bfbcce6e77e0f9d83e4f54f3fe9da7edcc866f3;p=kivitendo-erp.git
diff --git a/templates/webpages/file/list.html b/templates/webpages/file/list.html
index 238fb12fe..04b476581 100644
--- a/templates/webpages/file/list.html
+++ b/templates/webpages/file/list.html
@@ -44,14 +44,10 @@ $(function() {
[%- FOREACH file = source.files %]
[%- IF edit_attachments %]
- [%- IF file.newest %]
- [%- L.checkbox_tag(checkname _ '[]', 'value'=file.id, 'class'=checkname) %] |
- [%- ELSE %]
- |
- [%- END %]
+ [%- L.checkbox_tag(checkname _ '[]', 'value'=file.id _ '_' _ file.version, 'class'=checkname) %] |
|
[%- END %]
- [% file.mtime_as_timestamp_s %] |
+ [% file.mtime_as_timestamp_s %][% L.hidden_tag("version[]", file.version) %] |
[% file.file_name %] |
[%- IF file_type == 'image' %]
@@ -72,7 +68,9 @@ $(function() {
[%- IF source.can_import %]
[% L.button_tag("kivi.File.unimport(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ checkname _ "');",source.chk_title) %]
[%- ELSE %]
- [% L.button_tag("kivi.File.delete(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ checkname _ "'," _ is_global _ ");", source.chk_title) %]
+ [%- 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 %]