updated: html files for jquery-file-upload

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1143 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2018-11-15 17:01:40 +00:00
parent 833c04776f
commit ebd7f85fdb
2 changed files with 106 additions and 117 deletions

View File

@@ -14,7 +14,12 @@
[# The file upload form used as target for the file upload widget]
<form id="fileupload" action="[doc_base_url][dir]/upload" method="POST" enctype="multipart/form-data">
[# The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload]
[if false]
<!-- Redirect browsers with JavaScript disabled to the origin page -->
<noscript><input type="hidden" name="redirect" value="https://blueimp.github.io/jQuery-File-Upload/"></noscript>
[end]
[# The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload]
<div class="fileupload-buttonbar">
<div class="fileupload-buttons">
[# The fileinput-button span is used to style the file input field as button]
@@ -41,7 +46,6 @@
<table role="presentation"><tbody class="files"></tbody></table>
</form>
[# The blueimp Gallery widget]
<div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls" data-filter=":even">
<div class="slides"></div>
@@ -55,58 +59,58 @@
[# The template to display files available for upload]
<script id="template-upload" type="text/x-tmpl">
\{% for (var i=0, file; file=o.files\[i\]; i++) \{ %\}
<tr class="template-upload fade">
<td>
<span class="preview"></span>
</td>
<td>
<p class="name">\{%=file.name%\}</p>
<strong class="error"></strong>
</td>
<td>
<p class="size">{upload_button_processing}</p>
<div class="progress"></div>
</td>
<td>
\{% if (!i && !o.options.autoUpload) \{ %\}
<button class="start" disabled>{upload_button_start}</button>
\{% \} %\}
\{% if (!i) \{ %\}
<button class="cancel">{upload_button_cancel}</button>
\{% \} %\}
</td>
</tr>
\{% \} %\}</script>
\{% for (var i=0, file; file=o.files\[i\]; i++) \{ %\}
<tr class="template-upload fade">
<td>
<span class="preview"></span>
</td>
<td>
<p class="name">\{%=file.name%\}</p>
<strong class="error"></strong>
</td>
<td>
<p class="size">Processing...</p>
<div class="progress"></div>
</td>
<td>
\{% if (!i && !o.options.autoUpload) \{ %\}
<button class="start" disabled>Start</button>
\{% \} %\}
\{% if (!i) \{ %\}
<button class="cancel">Cancel</button>
\{% \} %\}
</td>
</tr>
\{% \} %\}</script>
[# The template to display files available for download]
<script id="template-download" type="text/x-tmpl">
\{% for (var i=0, file; file=o.files\[i\]; i++) \{ %\}
<tr class="template-download fade">
<td>
<span class="preview">
\{% if (file.thumbnailUrl) \{ %\}
<a href="\{%=file.url%\}" title="\{%=file.name%\}" download="\{%=file.name%\}" data-gallery><img src="\{%=file.thumbnailUrl%\}"></a>
\{% \} %\}
</span>
</td>
<td>
<p class="name">
<a href="\{%=file.url%\}" title="\{%=file.name%\}" download="\{%=file.name%\}" \{%=file.thumbnailUrl?'data-gallery':''%\}>\{%=file.name%\}</a>
</p>
\{% if (file.error) \{ %\}
<div><span class="error">{upload_error}</span> \{%=file.error%\}</div>
\{% \} %\}
</td>
<td>
<span class="size">\{%=o.formatFileSize(file.size)%\}</span>
</td>
<td>
<button class="delete" data-type="\{%=file.deleteType%\}" data-url="\{%=file.deleteUrl%\}"\{% if (file.deleteWithCredentials) \{ %\} data-xhr-fields='\{"withCredentials":true\}'\{% \} %\}>{upload_button_delete}</button>
<input type="checkbox" name="delete" value="1" class="toggle">
</td>
</tr>
\{% \} %\}</script>
\{% for (var i=0, file; file=o.files\[i\]; i++) \{ %\}
<tr class="template-download fade">
<td>
<span class="preview">
\{% if (file.thumbnailUrl) \{ %\}
<a href="\{%=file.url%\}" title="\{%=file.name%\}" download="\{%=file.name%\}" data-gallery><img src="\{%=file.thumbnailUrl%\}"></a>
\{% \} %\}
</span>
</td>
<td>
<p class="name">
<a href="\{%=file.url%\}" title="\{%=file.name%\}" download="\{%=file.name%\}" \{%=file.thumbnailUrl?'data-gallery':''%\}>\{%=file.name%\}</a>
</p>
\{% if (file.error) \{ %\}
<div><span class="error">Error</span> \{%=file.error%\}</div>
\{% \} %\}
</td>
<td>
<span class="size">\{%=o.formatFileSize(file.size)%\}</span>
</td>
<td>
<button class="delete" data-type="\{%=file.deleteType%\}" data-url="\{%=file.deleteUrl%\}"\{% if (file.deleteWithCredentials) \{ %\} data-xhr-fields='\{"withCredentials":true\}'\{% \} %\}>Delete</button>
<input type="checkbox" name="delete" value="1" class="toggle">
</td>
</tr>
\{% \} %\}</script>
<script type="text/javascript">