2012-02-03 00:59:40 +01:00
<ul class= "ss-uploadfield-files files" >
2013-05-27 05:22:59 +02:00
<% if $CustomisedItems %>
<% loop $CustomisedItems %>
2012-02-03 00:59:40 +01:00
<li class= "ss-uploadfield-item template-download" data-fileid= "$ID" >
<div class= "ss-uploadfield-item-preview preview" ><span>
<img alt= "$hasRelation" src= "$UploadFieldThumbnailURL" />
</span></div>
<div class= "ss-uploadfield-item-info" >
2013-05-27 05:22:59 +02:00
<input type= 'hidden ' value= '$ID ' name= ' { $Top . Name } [ Files ] [ ] ' />
2012-02-03 00:59:40 +01:00
<label class= "ss-uploadfield-item-name" >
2013-05-27 05:22:59 +02:00
<span class= "name" >$Name . XML</span>
<span class= "size" >$Size</span>
2012-02-03 00:59:40 +01:00
<div class= "clear" ><!-- --></div>
</label>
<div class= "ss-uploadfield-item-actions" >
2013-07-13 13:00:46 +02:00
<% if $Top . isActive %>
2012-02-03 00:59:40 +01:00
$UploadFieldFileButtons
<% end_if %>
</div>
</div>
2013-12-12 14:17:57 +01:00
<div class= "ss-uploadfield-item-editform includeParent" >
<iframe frameborder= "0" data-src= "$UploadFieldEditLink" src= "about:blank" ></iframe>
2012-02-03 00:59:40 +01:00
</div>
</li>
<% end_loop %>
<% end_if %>
</ul>
2013-07-13 13:00:46 +02:00
<% if $canUpload || $canAttachExisting %>
2013-05-27 05:22:59 +02:00
<div class= "ss-uploadfield-item ss-uploadfield-addfile<% if $CustomisedItems %> borderTop<% end_if %>" >
2013-01-09 11:34:02 +01:00
<% if canUpload %>
2012-02-03 00:59:40 +01:00
<div class= "ss-uploadfield-item-preview ss-uploadfield-dropzone ui-corner-all" >
<% if $multiple %>
2015-07-22 14:51:34 +02:00
<%t UploadField . DROPFILES 'drop files ' %>
2012-02-03 00:59:40 +01:00
<% else %>
2015-07-22 14:51:34 +02:00
<%t UploadField . DROPFILE 'drop a file ' %>
2012-02-03 00:59:40 +01:00
<% end_if %>
</div>
2013-01-09 11:34:02 +01:00
<% end_if %>
2012-02-03 00:59:40 +01:00
<div class= "ss-uploadfield-item-info" >
2013-05-13 16:53:02 +02:00
<label class= "ss-uploadfield-item-name" >
2012-02-03 00:59:40 +01:00
<% if $multiple %>
2015-07-22 14:51:34 +02:00
<b><%t UploadField . ATTACHFILES 'Attach files ' %></b>
2012-02-03 00:59:40 +01:00
<% else %>
2015-07-22 14:51:34 +02:00
<b><%t UploadField . ATTACHFILE 'Attach a file ' %></b>
2012-02-03 00:59:40 +01:00
<% end_if %>
2013-07-13 13:00:46 +02:00
<% if $canPreviewFolder %>
2013-05-13 16:53:02 +02:00
<small> ( <%t UploadField . UPLOADSINTO 'saves into / { path } ' path=$FolderName %> ) </small>
<% end_if %>
</label>
2013-07-13 13:00:46 +02:00
<% if $canUpload %>
2015-07-22 14:51:34 +02:00
<label class= "ss-uploadfield-fromcomputer ss-ui-button ui-corner-all" title= "<%t UploadField.FROMCOMPUTERINFO 'Upload from your computer' %>" data-icon= "drive-upload" >
<%t UploadField . FROMCOMPUTER 'From your computer ' %>
2013-05-27 05:22:59 +02:00
<input id= "$id" name= "{$Name}[Uploads][]" class= "$extraClass ss-uploadfield-fromcomputer-fileinput" data-config= "$configString" type= "file" <% if $multiple %> multiple= "multiple" <% end_if %> />
</label>
2013-10-17 10:55:11 +02:00
<% else %>
<input id= "$id" name= "{$Name}[Uploads][]" class= "$extraClass ss-uploadfield-fromcomputer-fileinput" data-config= "$configString" type= "hidden" />
2013-01-09 11:34:02 +01:00
<% end_if %>
2013-01-11 05:33:06 +01:00
2013-07-13 13:00:46 +02:00
<% if $canAttachExisting %>
2015-07-22 14:51:34 +02:00
<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>
2013-01-11 05:33:06 +01:00
<% end_if %>
2013-07-13 13:00:46 +02:00
<% if $canUpload %>
2013-05-27 05:22:59 +02:00
<% if not $autoUpload %>
2015-07-22 14:51:34 +02:00
<button class= "ss-uploadfield-startall ss-ui-button ui-corner-all" data-icon= "navigation" ><%t UploadField . STARTALL 'Start all ' %></button>
2013-05-27 05:22:59 +02:00
<% end_if %>
2012-02-03 00:59:40 +01:00
<% end_if %>
<div class= "clear" ><!-- --></div>
</div>
<div class= "clear" ><!-- --></div>
</div>
2012-04-19 01:58:06 +02:00
<% end_if %>