2012-02-03 00:59:40 +01:00
|
|
|
window.tmpl.cache['ss-uploadfield-uploadtemplate'] = tmpl(
|
|
|
|
'{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %}' +
|
|
|
|
'<li class="ss-uploadfield-item template-upload{% if (file.error) { %} ui-state-error{% } %}">' +
|
|
|
|
'<div class="ss-uploadfield-item-preview preview"><span></span></div>' +
|
|
|
|
'<div class="ss-uploadfield-item-info">' +
|
|
|
|
'<label class="ss-uploadfield-item-name">' +
|
2012-05-11 04:43:17 +02:00
|
|
|
'<span class="name" title="{% if (file.name) { %}{%=file.name%}{% } else { %}' + ss.i18n._t('UploadField.NOFILENAME', 'Untitled') + '{% } %}">' +
|
|
|
|
'{% if (file.name) { %}{%=file.name%}{% } else { %}' + ss.i18n._t('UploadField.NOFILENAME', 'Untitled') + '{% } %}</span> ' +
|
2012-05-10 02:58:05 +02:00
|
|
|
'{% if (!file.error) { %}' +
|
|
|
|
'<div class="ss-uploadfield-item-status">0%</div>' +
|
|
|
|
'{% } else { %}' +
|
2012-05-11 04:43:17 +02:00
|
|
|
'<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-02-03 00:59:40 +01:00
|
|
|
'{% } %}' +
|
|
|
|
'<div class="clear"><!-- --></div>' +
|
|
|
|
'</label>' +
|
|
|
|
'<div class="ss-uploadfield-item-actions">' +
|
|
|
|
'{% if (!file.error) { %}' +
|
|
|
|
'<div class="ss-uploadfield-item-progress"><div class="ss-uploadfield-item-progressbar"><div class="ss-uploadfield-item-progressbarvalue"></div></div></div>' +
|
|
|
|
'{% if (!o.options.autoUpload) { %}' +
|
2012-05-13 21:11:53 +02:00
|
|
|
'<div class="ss-uploadfield-item-start start"><button class="icon icon-16" data-icon="navigation">' + ss.i18n._t('UploadField.START', 'Start') + '</button></div>' +
|
2012-02-03 00:59:40 +01:00
|
|
|
'{% } %}' +
|
|
|
|
'{% } %}' +
|
2012-05-22 08:18:31 +02:00
|
|
|
'<div class="ss-uploadfield-item-cancel cancel"><button data-icon="deleteLight" class="ss-uploadfield-item-cancel" title="' + ss.i18n._t('UploadField.CANCELREMOVE', 'Cancel/Remove') + '">' + ss.i18n._t('UploadField.CANCEL', 'Cancel') + '</button></div>' +
|
2012-02-03 00:59:40 +01:00
|
|
|
'</div>' +
|
|
|
|
'</div>' +
|
|
|
|
'</li>' +
|
|
|
|
'{% } %}'
|
2012-05-13 21:05:30 +02:00
|
|
|
);
|