2012-02-03 00:59:40 +01: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">
|
|
|
|
<% if Top.isDisabled || Top.isReadonly %>
|
|
|
|
<% else %>
|
|
|
|
$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>
|
|
|
|
<% if isDisabled || isReadonly %>
|
2012-06-15 17:44:34 +02:00
|
|
|
<% if isSaveable %>
|
|
|
|
<% else %>
|
|
|
|
<div class="ss-uploadfield-item">
|
|
|
|
<em><% _t('FileIFrameField.ATTACHONCESAVED2', 'Files can be attached once you have saved the record for the first time.') %></em>
|
|
|
|
</div>
|
|
|
|
<% end_if %>
|
2012-02-03 00:59:40 +01:00
|
|
|
<% else %>
|
2012-12-14 02:04:47 +01:00
|
|
|
<div class="ss-uploadfield-item ss-uploadfield-addfile<% if $Items && $displayInput %> borderTop<% end_if %>" <% if not $displayInput %>style="display: none;"<% end_if %>>
|
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>
|
|
|
|
<div class="ss-uploadfield-item-info">
|
|
|
|
<label class="ss-uploadfield-item-name"><b>
|
|
|
|
<% if $multiple %>
|
|
|
|
<% _t('UploadField.ATTACHFILES', 'Attach files') %>
|
|
|
|
<% else %>
|
|
|
|
<% _t('UploadField.ATTACHFILE', 'Attach a file') %>
|
|
|
|
<% end_if %>
|
|
|
|
</b></label>
|
2012-11-30 12:16:02 +01:00
|
|
|
<label class="ss-uploadfield-fromcomputer ss-ui-button ui-corner-all" data-icon="drive-upload">
|
2012-02-17 00:35:10 +01:00
|
|
|
<% _t('UploadField.FROMCOMPUTER', 'From your computer') %>
|
2012-03-08 16:32:03 +01:00
|
|
|
<input id="$id" name="$getName" class="$extraClass ss-uploadfield-fromcomputer-fileinput" data-config="$configString" type="file"<% if $multiple %> multiple="multiple"<% end_if %> />
|
2012-02-03 00:59:40 +01:00
|
|
|
</label>
|
2012-11-30 12:16:02 +01:00
|
|
|
<button class="ss-uploadfield-fromfiles ss-ui-button ui-corner-all" data-icon="network-cloud"><% _t('UploadField.FROMFILES', 'From files') %></button>
|
2012-03-09 07:32:09 +01:00
|
|
|
<% if not $autoUpload %>
|
2012-11-30 12:16:02 +01:00
|
|
|
<button class="ss-uploadfield-startall ss-ui-button ui-corner-all" data-icon="navigation"><% _t('UploadField.STARTALL', 'Start all') %></button>
|
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 %>
|
2012-12-14 02:04:47 +01:00
|
|
|
<% if Description %><span class="description">$Description</span><% end_if %>
|