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">' +
|
2015-10-19 06:27:27 +02:00
|
|
|
'<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') + '{% } %}">' +
|
2015-10-19 06:27:27 +02:00
|
|
|
'{% if (file.name) { %}{%=file.name%}{% } else { %}' + ss.i18n._t('UploadField.NOFILENAME', 'Untitled') + '{% } %}</span> ' +
|
2012-05-10 02:58:05 +02:00
|
|
|
'{% if (!file.error) { %}' +
|
2015-10-19 06:27:27 +02:00
|
|
|
'<div class="ss-uploadfield-item-status">0%</div>' +
|
2012-05-10 02:58:05 +02:00
|
|
|
'{% } else { %}' +
|
2015-10-19 06:27:27 +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>' +
|
|
|
|
'{% } %}' +
|
|
|
|
'<div class="clear"><!-- --></div>' +
|
2012-02-03 00:59:40 +01:00
|
|
|
'</label>' +
|
2015-10-19 06:27:27 +02:00
|
|
|
'<div class="ss-uploadfield-item-actions">' +
|
|
|
|
'{% if (!file.error) { %}' +
|
2012-02-03 00:59:40 +01:00
|
|
|
'<div class="ss-uploadfield-item-progress"><div class="ss-uploadfield-item-progressbar"><div class="ss-uploadfield-item-progressbarvalue"></div></div></div>' +
|
2015-10-19 06:27:27 +02:00
|
|
|
'{% if (!o.options.autoUpload) { %}' +
|
2015-10-05 17:26:21 +02:00
|
|
|
'<div class="ss-uploadfield-item-start start"><button type="button" class="icon icon-16" data-icon="navigation">' + ss.i18n._t('UploadField.START', 'Start') + '</button></div>' +
|
2012-02-03 00:59:40 +01:00
|
|
|
'{% } %}' +
|
2015-10-19 06:27:27 +02:00
|
|
|
'{% } %}' +
|
2013-05-27 05:22:59 +02:00
|
|
|
'<div class="ss-uploadfield-item-cancel cancel">' +
|
2015-10-05 17:26:21 +02:00
|
|
|
'<button type="button" class="icon icon-16" data-icon="minus-circle" title="' + ss.i18n._t('UploadField.CANCELREMOVE', 'Cancel/Remove') + '">' + ss.i18n._t('UploadField.CANCELREMOVE', 'Cancel/Remove') + '</button>' +
|
2013-05-27 05:22:59 +02:00
|
|
|
'</div>' +
|
2015-10-19 06:27:27 +02:00
|
|
|
'<div class="ss-uploadfield-item-overwrite hide ">' +
|
2015-10-05 17:26:21 +02:00
|
|
|
'<button type="button" data-icon="drive-upload" class="ss-uploadfield-item-overwrite-warning" title="' + ss.i18n._t('UploadField.OVERWRITE', 'Overwrite') + '">' + ss.i18n._t('UploadField.OVERWRITE', 'Overwrite') + '</button>' +
|
2013-05-27 05:22:59 +02:00
|
|
|
'</div>' +
|
2012-02-03 00:59:40 +01:00
|
|
|
'</div>' +
|
|
|
|
'</div>' +
|
2015-10-19 06:27:27 +02:00
|
|
|
'</li>' +
|
2012-02-03 00:59:40 +01:00
|
|
|
'{% } %}'
|
2013-05-27 05:22:59 +02:00
|
|
|
);
|