ninegitea/templates/Crop/crop01.html.twig

42 lines
1.0 KiB
Twig
Raw Normal View History

2021-07-20 13:04:47 +02:00
{% extends 'base.html.twig' %}
{% block encorelinktags %}
{{ encore_entry_link_tags('dropzone') }}
{% endblock encorelinktags %}
{% block body %}
<h3 class="page-header"></h3>
<button class="btn btn-secondary" onClick="closeModal();">Annuler</button>
2023-12-22 13:53:10 +01:00
<form
action="{{ oneup_uploader_endpoint(type) }}"
class="dropzone"
id="mydropzone"
data-acceptedMimeTypes="image/*"
data-maxFiles=1
style="margin-top:10px">
</form>
2021-07-20 13:04:47 +02:00
{% endblock %}
{% block encorescripttags %}
{{ encore_entry_script_tags('dropzone') }}
{% endblock %}
{% block localjavascript %}
window.parent.$(".modal-title").html("ETAPE 1 - Téléchargez votre image");
2023-12-22 13:53:10 +01:00
function dropzoneinit( elt) {
2021-07-20 13:04:47 +02:00
}
2023-12-22 13:53:10 +01:00
function dropzonesuccess( file, response ) {
$(location).attr('href',"{{ path('app_crop02', {"type": type, "reportinput": reportinput }) }}?file="+response["file"]);
}
2021-07-20 13:04:47 +02:00
function closeModal() {
window.parent.$("#mymodallarge").modal('hide');
}
{% endblock %}