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>
2012-05-10 06:47:52 +02:00
<div class= "ss-uploadfield-item-editform loading includeParent" >
2012-02-03 00:59:40 +01:00
<iframe frameborder= "0" src= "$UploadFieldEditLink" ></iframe>
</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 %>
<% _t ( 'UploadField . DROPFILES ', 'drop files ' ) %>
<% else %>
<% _t ( 'UploadField . DROPFILE ', 'drop a file ' ) %>
<% 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 %>
2013-05-13 16:53:02 +02:00
<b><% _t ( 'UploadField . ATTACHFILES ', 'Attach files ' ) %></b>
2012-02-03 00:59:40 +01:00
<% else %>
2013-05-13 16:53:02 +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 %>
2013-05-27 05:22:59 +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 ' ) %>
<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-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 %>
2013-05-27 05:22:59 +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 %>
<button class= "ss-uploadfield-startall ss-ui-button ui-corner-all" data-icon= "navigation" ><% _t ( 'UploadField . STARTALL ', 'Start all ' ) %></button>
<% 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 %>
2013-05-13 16:53:02 +02:00
<% if Description %><span class= "description" >$Description</span><% end_if %>