mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
7f057ce343
Fixed regression from1e5d40474d
(UploadField::canPreviewFolder). Merged in pull request #2009 - (6018bdd631
). Merged pull request #1259 (34bfc862ee
).
18 lines
1.2 KiB
Scheme
18 lines
1.2 KiB
Scheme
<% if canEdit %>
|
|
<button class="ss-uploadfield-item-edit ss-ui-button ui-corner-all" title="<% _t('UploadField.EDITINFO', 'Edit this file') %>" data-icon="pencil">
|
|
<% _t('UploadField.EDIT', 'Edit') %>
|
|
<span class="toggle-details">
|
|
<span class="toggle-details-icon"></span>
|
|
</span>
|
|
</button>
|
|
<% end_if %>
|
|
<button class="ss-uploadfield-item-remove ss-ui-button ui-corner-all" title="<% _t('UploadField.REMOVEINFO', 'Remove this file from here, but do not delete it from the file store') %>" data-icon="plug-disconnect-prohibition">
|
|
<% _t('UploadField.REMOVE', 'Remove') %></button>
|
|
<% if canDelete %>
|
|
<button data-href="$UploadFieldDeleteLink" class="ss-uploadfield-item-delete ss-ui-button ui-corner-all" title="<% _t('UploadField.DELETEINFO', 'Permanently delete this file from the file store') %>" data-icon="minus-circle"><% _t('UploadField.DELETE', 'Delete from files') %></button>
|
|
<% end_if %>
|
|
<% if UploadField.canAttachExisting %>
|
|
<button class="ss-uploadfield-item-choose-another ss-uploadfield-fromfiles ss-ui-button ui-corner-all" title="<% _t('UploadField.CHOOSEANOTHERINFO', 'Replace this file with another one from the file store') %>" data-icon="network-cloud">
|
|
<% _t('UploadField.CHOOSEANOTHERFILE', 'Choose another file') %></button>
|
|
<% end_if %>
|