Changeset 79912 in spip-zone
- Timestamp:
- Jan 8, 2014, 1:33:48 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/emballe_medias/emballe_medias/branches/v1.3/inclure/upload_formulaire.html
r71282 r79912 12 12 <div class="time_remaining"></div> 13 13 <div class="statut"></div> 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 14 {% if (file.error) { %} 15 <div class="error message_erreur red"><span class="label label-important">{%=locale.fileupload.error%}</span> {%=locale.fileupload.errors[file.error] || file.error%}</div> 16 {% } else if (o.files.valid && !i) { %} 17 <div> 18 <div class="progress progress_container ui-progressbar .progress-animated progress-success progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"> 19 </div> 20 </div> 21 <div class="start">{% if (!o.options.autoUpload) { %} 22 <button class="btn btn-primary"> 23 <i class="icon-upload icon-white"></i> 24 <span>{%=locale.fileupload.start%}</span> 25 </button> 26 {% } %}</div> 27 {% }%} 28 <div class="cancel">{% if (!i) { %} 29 <button title="<:bouton_annuler:>" class="btn btn-warning "><span class="">{%=locale.fileupload.cancel%}</span></button> 30 {% } %}</div> 31 </div> 32 </div> 33 33 {% } %} 34 34 </script> … … 39 39 <script id="template-download" type="text/x-tmpl"> 40 40 {% for (var i=0, file; file=o.files[i]; i++) { %} 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 41 <tr class="template-download fade"> 42 {% if (file.error) { %} 43 <td></td> 44 <td class="name"><span>{%=file.name%}</span></td> 45 <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td> 46 <td class="error" colspan="2"><span class="label label-important">{%=locale.fileupload.error%}</span> {%=locale.fileupload.errors[file.error] || file.error%}</td> 47 {% } else { %} 48 <td class="preview">{% if (file.thumbnail_url) { %} 49 <a href="{%=file.url%}" title="{%=file.name%}" rel="gallery" download="{%=file.name%}"><img src="{%=file.thumbnail_url%}"></a> 50 {% } %}</td> 51 <td class="name"> 52 <a href="{%=file.url%}" title="{%=file.name%}" rel="{%=file.thumbnail_url&&'gallery'%}" download="{%=file.name%}">{%=file.name%}</a> 53 </td> 54 <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td> 55 <td colspan="2"></td> 56 {% } %} 57 <td class="delete"> 58 <button class="btn btn-danger" data-type="{%=file.delete_type%}" data-url="{%=file.delete_url%}"> 59 <i class="icon-trash icon-white"></i> 60 <span>{%=locale.fileupload.destroy%}</span> 61 </button> 62 <input type="checkbox" name="delete" value="1"> 63 </td> 64 </tr> 65 65 {% } %} 66 66 </script> … … 267 267 $('#fileupload').fileupload(); 268 268 $('#fileupload').fileupload('option',{ 269 270 271 269 paramName: 'Filedata', 270 done: function (e, data) { 271 var that = $(this).data('fileupload'); 272 272 isUploading = false; 273 273 if (data.context) { 274 274 var total = format_file_size(data.total); 275 275 data.context.find('.transfer').html(total+' / '+total); 276 277 278 279 276 data.context.find('.ui-progressbar').progressbar( 277 'value', 278 parseInt(100, 10) 279 ); 280 280 } 281 281 jQuery('.em_charger_fichiers').tabs('enable',1); … … 343 343 } 344 344 }); 345 345 }, 346 346 maxFileSize : [(#ENV{config_fichiers}|table_valeur{file_size_limit}|sinon{100}|mult{1024}|mult{1024})], 347 347 autoUpload : [(#ENV{file_upload_limite}|=={1}|?{true,false})], … … 433 433 </script> 434 434 <div id="fileupload" class="formulaire_spip jfupload ui-fileupload ui-widget ui-widget-content ui-corner-all"> 435 436 437 435 <form action="[(#VAL{emballe_medias_upload}|generer_url_action|url_absolue)]" method="POST" enctype="multipart/form-data"> 436 <input type="hidden" name="arg" value="#ENV{id_objet}" /> 437 <input type="hidden" name="objet" value="#ENV{objet}" /> 438 438 [<input type="hidden" name="id_rubrique" value="(#ENV{id_rubrique})" />] 439 439 [<input type="hidden" name="id_parent" value="(#ENV{id_parent,#ENV{id_rubrique}})" />] 440 440 [<input type="hidden" name="id_document" value="(#ENV{id_document})" />] 441 441 [<input type="hidden" name="action_document" value="(#ENV{action_document})" />] 442 443 444 445 446 447 448 449 450 451 442 <div class="fileupload-buttonbar ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"> 443 <div class="fileinput-button" id="fileinput-button"> 444 [<span>(#ENV{legende_upload,[(#ENV{file_upload_limite}|>{1}|?{<:emballe_medias:legend_mise_en_ligne_multiple:>,<:emballe_medias:legend_mise_en_ligne_unique:>})]})</span>] 445 <input type="file" name="files[]" id="fileupload_input" multiple> 446 </div> 447 <button type="submit" class="btn btn-primary start" style="display:none">Start upload</button> 448 <button type="reset" class="btn btn-warning cancel" style="display:none" title="<:bouton_annuler:>"><:emballe_medias:cancel_upload:></button> 449 </div> 450 </form> 451 <div class="fileupload-content fileupload-progress ui-fileupload-content"> 452 452 <div id="em_message_attente" class="explication"> 453 453 <:emballe_medias:verification_fichier:> … … 477 477 </p> 478 478 </div> 479 480 479 <div class="files"> 480 <div id="divSWFUploadUI" > 481 481 <div id="progress_bar_container"> 482 482 </div> 483 483 </div> 484 484 </div> 485 485 [(#ENV{file_upload_limite}|>{1}|oui) 486 487 488 489 490 486 <div class="progress progress-success progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100"> 487 </div> 488 <!-- The extended global progress information --> 489 <div class="progress-extended"> </div>] 490 </div> 491 491 </div>
Note: See TracChangeset
for help on using the changeset viewer.