2012-07-31 04:24:35 +02:00
<ul class= "ss-uploadfield-files files" >
<% if $Items %>
<% loop $Items %>
<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" >
<label class= "ss-uploadfield-item-name" >
<b> { $Title } . { $Extension } </b>
<span>$Size</span>
<div class= "clear" ><!-- --></div>
</label>
<div class= "ss-uploadfield-item-actions" >
2017-05-02 04:49:41 +02:00
<% if $Top . isDisabled || $Top . isReadonly %>
2012-07-31 04:24:35 +02:00
<% else %>
$UploadFieldFileButtons
<% end_if %>
</div>
</div>
<div class= "ss-uploadfield-item-editform loading includeParent" >
<iframe frameborder= "0" src= "$UploadFieldEditLink" ></iframe>
</div>
</li>
<% end_loop %>
<% end_if %>
</ul>
2017-05-02 04:49:41 +02:00
<% if $isDisabled || $isReadonly %>
<% if $isSaveable %>
2012-07-31 04:24:35 +02:00
<% else %>
<div class= "ss-uploadfield-item" >
2017-05-02 04:49:41 +02:00
<em><%t FileIFrameField . ATTACHONCESAVED2 "Files can be attached once you have saved the record for the first time." %></em>
2012-07-31 04:24:35 +02:00
</div>
<% end_if %>
<% else %>
<div class= "ss-uploadfield-item ss-uploadfield-addfile<% if $Items && $displayInput %> borderTop<% end_if %>" <% if not $displayInput %>style= "display: none;" <% end_if %>>
<div class= "ss-uploadfield-item-preview ss-uploadfield-dropzone ui-corner-all" >
2012-07-31 04:43:40 +02:00
<% _t ( 'UploadField . DROPFILE ', 'drop a file ' ) %>
2012-07-31 04:24:35 +02:00
</div>
<div class= "ss-uploadfield-item-info" >
<label class= "ss-uploadfield-item-name" ><b>
2012-07-31 04:43:40 +02:00
<% _t ( 'UploadField . ATTACHFILE ', 'Attach a file ' ) %>
2012-07-31 04:24:35 +02:00
</b></label>
2017-05-02 04:49:41 +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 ' %>
2012-07-31 04:24:35 +02:00
<input id= "$id" name= "$getName" class= "$extraClass ss-uploadfield-fromcomputer-fileinput" data-config= "$configString" type= "file" <% if $multiple %> multiple= "multiple" <% end_if %> />
</label>
<div class= "clear" ><!-- --></div>
</div>
<div class= "clear" ><!-- --></div>
</div>
<% end_if %>