Add images to gallery
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
|
||||
<script>
|
||||
window.onload = function () {
|
||||
|
||||
htmx.onLoad(function(elt){
|
||||
if (Dropzone.instances.length == 0){
|
||||
initDropzone();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function initDropzone () {
|
||||
var dropzoneOptions = {
|
||||
dictDefaultMessage: 'Déposez vos fichiers ici!',
|
||||
paramName: "file",
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
<form id="uploader" methods="POST" class="dropzone dz-clickable"></form>
|
||||
|
||||
<section class="p-0" id="{{ bloc.name }}">
|
||||
<div class="container-fluid p-0">
|
||||
<div class="row no-gutters ">
|
||||
@@ -34,4 +37,4 @@
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
{% include '_js_dropzone.html' %}
|
||||
|
||||
Reference in New Issue
Block a user