Move to sane directory structure. Don't make 'cms' the top level of the silverstripe...
[silverstripe-elijah.git] / templates / Includes / AssetTableField.ss
blob7f531967d791a2a64a2abb27b440d9a0f60bfa9d
1 <div id="$id" class="$Classes">
2         <% include TableListField_PageControls %>
3         <table class="data">
4                 <thead>
5                         <tr>
6                                 <% if Markable %><th width="36">&nbsp;</th><% end_if %>
7                                 <% control Headings %>
8                                 <th class="$Name">$Title</th>
9                                 <% end_control %>
10                                 <th width="18">&nbsp;</th>
11                                 <% if Can(delete) %><th width="18">&nbsp;</th><% end_if %>
12                         </tr>
13                 </thead>
14                 <tbody>
15                         <% control Items %>
16                                 <tr id="record-$Parent.Name-$ID">
17                                         <% if Markable %><td width="36" class="markingcheckbox"><div class="dragfile" id="drag-$Parent.Name-$ID"><img id="drag-img-$Parent.Name-$ID" alt="Drag" title="Drag to folder on left to move file" src="sapphire/images/drag.gif" /></div> $MarkingCheckbox</td><% end_if %>
18                                         <% control Fields %>
19                                         <td>$Value</td>
20                                         <% end_control %>
21                                         <td width="18">
22                                                 <a class="popuplink editlink" href="$EditLink" target="_blank"><img src="cms/images/edit.gif" alt="edit" /></a>
23                                         </td>
24                                         <% if Can(delete) %>
25                                         <td width="18">
26                                                 <a class="deletelink" href="admin/assets/removefile/$ID" title="Delete this file"><img src="cms/images/delete.gif" alt="delete" /></a>
27                                         </td>
28                                         <% end_if %>
29                                 </tr>
30                         <% end_control %>
31                 </tbody>
32         </table>
33 </div>
34   <script type="text/javascript">
35     new CheckBoxRange(document.getElementById('Form_EditForm'), 'Files[]');
36   </script>