mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-02 06:08:27 +02:00
3cae2fb249
Changes: * Remove the 'Move Files' button and enable multi-file drag and drop file moving * Position the 'Delete selected files' button under the checkboxes and make it turn red on hover * Add 'Ctrl' and 'Shift' range selection to file checkboxes * Add 'X' delete links to the right of each file * Rename the 'Save' button to 'Save folder name' and don't show it when listing 'assets' folder since it can't be renamed More info: http://www.silverstripe.com/google-summer-of-code-forum/flat/1607 (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41927 467b73ca-7a2a-4603-9d3b-597d59a354a9
37 lines
1.3 KiB
Scheme
Executable File
37 lines
1.3 KiB
Scheme
Executable File
<div id="$id" class="$Classes">
|
|
<% include TableListField_PageControls %>
|
|
<table class="data">
|
|
<thead>
|
|
<tr>
|
|
<% if Markable %><th width="36"> </th><% end_if %>
|
|
<% control Headings %>
|
|
<th class="$Name">$Title</th>
|
|
<% end_control %>
|
|
<th width="18"> </th>
|
|
<% if Can(delete) %><th width="18"> </th><% end_if %>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% control Items %>
|
|
<tr id="record-$Parent.Name-$ID">
|
|
<% if Markable %><td width="36" class="markingcheckbox"><div class="dragfile" id="drag-$Parent.Name-$ID"><img id="drag-img-$Parent.Name-$ID" lt="Drag to folder on left to move file" title="Drag to folder on left to move file" src="sapphire/images/drag.gif" /></div> $MarkingCheckbox</td><% end_if %>
|
|
<% control Fields %>
|
|
<td>$Value</td>
|
|
<% end_control %>
|
|
<td width="18">
|
|
<a class="popuplink editlink" href="$EditLink" target="_blank" title="Edit asset"><img src="cms/images/edit.gif" alt="edit" /></a>
|
|
</td>
|
|
<% if Can(delete) %>
|
|
<td width="18">
|
|
<a class="deletelink" href="$DeleteLink" title="Delete this file"><img src="cms/images/delete.gif" alt="delete" /></a>
|
|
</td>
|
|
<% end_if %>
|
|
</tr>
|
|
<% end_control %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<script type="text/javascript">
|
|
new CheckBoxRange(document.getElementById('Form_EditForm'), 'Files[]');
|
|
</script>
|