2014-04-05 18:54:50 +02:00
|
|
|
window.tmpl.cache['colymba-bulkuploaddownloadtemplate'] = tmpl(
|
2013-06-23 15:22:25 +02:00
|
|
|
'{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %}' +
|
2014-04-06 14:51:15 +02:00
|
|
|
'<li class="ss-uploadfield-item template-download{% if (file.error) { %} ui-state-error{% }else{ %} done{% } %}" data-fileid="{%=file.id%}" data-recordid="{%=file.record.id%}">' +
|
2013-06-23 15:22:25 +02:00
|
|
|
'<div class="ss-uploadfield-item-preview preview"><span>' +
|
|
|
|
'<img src="{%=file.thumbnail_url%}" alt="" />' +
|
|
|
|
'</span></div>' +
|
|
|
|
'<div class="ss-uploadfield-item-info">' +
|
|
|
|
'{% if (!file.error) { %}' +
|
|
|
|
'<input type="hidden" name="{%=file.fieldname%}[Files][]" value="{%=file.id%}" />' +
|
|
|
|
'{% } %}' +
|
|
|
|
'<label class="ss-uploadfield-item-name">' +
|
|
|
|
'<span class="name" title="{%=file.name%}">{%=file.name%}</span> ' +
|
|
|
|
'<span class="size">{%=o.formatFileSize(file.size)%}</span>' +
|
2013-06-02 20:07:00 +02:00
|
|
|
'{% if (!file.error) { %}' +
|
2013-06-23 15:22:25 +02:00
|
|
|
'<div class="ss-uploadfield-item-status ui-state-success-text" title="'+ss.i18n._t('UploadField.Uploaded', 'Uploaded')+'">'+ss.i18n._t('UploadField.Uploaded', 'Uploaded')+'</div>' +
|
|
|
|
'{% } else { %}' +
|
|
|
|
'<div class="ss-uploadfield-item-status ui-state-error-text" title="{%=o.options.errorMessages[file.error] || file.error%}">{%=o.options.errorMessages[file.error] || file.error%}</div>' +
|
2012-07-16 22:39:01 +02:00
|
|
|
'{% } %}' +
|
2013-06-23 15:22:25 +02:00
|
|
|
'<div class="clear"><!-- --></div>' +
|
|
|
|
'</label>' +
|
|
|
|
'{% if (file.error) { %}' +
|
|
|
|
'<div class="ss-uploadfield-item-actions">' +
|
|
|
|
'<div class="ss-uploadfield-item-cancel ss-uploadfield-item-cancelfailed delete"><button class="icon icon-16" data-icon="delete" title="' + ss.i18n._t('UploadField.CANCELREMOVE', 'Cancel/Remove') + '">' + ss.i18n._t('UploadField.CANCELREMOVE', 'Cancel/Remove') + '</button></div>' +
|
|
|
|
'</div>' +
|
|
|
|
'{% } else { %}' +
|
|
|
|
'{% } %}' +
|
|
|
|
'</div>' +
|
|
|
|
'</li>' +
|
|
|
|
'{% } %}'
|
2014-05-11 12:32:21 +02:00
|
|
|
);
|