6 <h4>[% source.title | html %]</h4>
9 [%- FOREACH source = SOURCES %]
10 <table class="highlight striped">
13 [%- SET checkname = source.chk_action %]
14 [%- IF edit_attachments %]
15 <th>[% P.M.checkbox_tag(checkname _ '_checkall', label=' ', checkall=checkname _ "[]") %]</th>
17 <th>[% LxERP.t8('Date') | html %]</th>
18 <th>[% source.file_title | html %]</th>
19 [%- IF file_type == 'image' %]
20 <th>[% LxERP.t8('Title') %]</th>
21 <th>[% LxERP.t8('ImagePreview') %]</th>
22 <th>[% LxERP.t8('Description') %]</th>
30 [%- FOREACH file = source.files %]
32 [%- IF edit_attachments %]
33 <td>[%- P.M.checkbox_tag(checkname _ '[]', value=file.id _ '_' _ file.version, class=checkname, label=' ') %]</td>
35 <td>[% file.mtime_as_timestamp_s %][% L.hidden_tag("version[]", file.version) %]</td>
36 <td><a href="controller.pl?action=File/download&id=[% file.id %][%- IF file.version %]&version=[%- file.version %][%- END %]">
37 <span id="[% "filename_" _ file.id %][%- IF file.version %]_[% file.version %][%- END %]">[% file.file_name %]</span></a></td>
38 [%- IF file_type == 'image' %]
39 <td>[% file.title %]</td>
41 <img src="controller.pl?action=File/download&id=[% file.id %][%- IF file.version %]&version=[%- file.version %][%- END %]" alt="[% file.title %]" width="64px">
43 <td>[% file.description %]</td>
52 [%- IF edit_attachments %]
53 [%- IF source.can_import %]
54 [% P.M.button_tag("kivi.File.unimport(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ checkname _ "');", source.chk_title) %]
56 [%- IF source.can_delete %]
57 [% P.M.button_tag("kivi.File.delete(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ checkname _ "');", source.chk_title) %]
61 [%- IF source.can_rename %]
62 [% P.M.button_tag("kivi.File.rename(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ checkname _ "');", source.rename_title ) %]
64 [%- IF source.can_upload %]
65 [% P.M.button_tag("kivi.File.upload(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ source.upload_title _ "');", source.upload_title ) %]
67 [%- IF source.can_import %]
68 [% P.M.button_tag("kivi.File.import(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ source.name _ "','" _ source.path _"');", source.import_title ) %]
73 [% P.M.button_tag("kivi.File.update(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "');", LxERP.t8('Update')) %]