mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Show label-less input#file field in UploadField with canUpload=false
The field carries the configuration, and some non-upload functionality like "attach files" still relies on the fileupload jQuery plugin being initialized. Conflicts: templates/UploadField.ss
This commit is contained in:
parent
67c5db3320
commit
4da1af9c3f
@ -56,6 +56,8 @@
|
|||||||
<% _t('UploadField.FROMCOMPUTER', 'From your computer') %>
|
<% _t('UploadField.FROMCOMPUTER', 'From your computer') %>
|
||||||
<input id="$id" name="$getName" class="$extraClass ss-uploadfield-fromcomputer-fileinput" data-config="$configString" type="file"<% if $multiple %> multiple="multiple"<% end_if %> />
|
<input id="$id" name="$getName" class="$extraClass ss-uploadfield-fromcomputer-fileinput" data-config="$configString" type="file"<% if $multiple %> multiple="multiple"<% end_if %> />
|
||||||
</label>
|
</label>
|
||||||
|
<% else %>
|
||||||
|
<input style="display: none" id="$id" name="$getName" class="$extraClass ss-uploadfield-fromcomputer-fileinput" data-config="$configString" type="file"<% if $multiple %> multiple="multiple"<% end_if %> />
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
<button class="ss-uploadfield-fromfiles ss-ui-button ui-corner-all" title="<% _t('UploadField.FROMCOMPUTERINFO', 'Select from files') %>" data-icon="network-cloud"><% _t('UploadField.FROMFILES', 'From files') %></button>
|
<button class="ss-uploadfield-fromfiles ss-ui-button ui-corner-all" title="<% _t('UploadField.FROMCOMPUTERINFO', 'Select from files') %>" data-icon="network-cloud"><% _t('UploadField.FROMFILES', 'From files') %></button>
|
||||||
<% if not $autoUpload %>
|
<% if not $autoUpload %>
|
||||||
|
Loading…
Reference in New Issue
Block a user