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