add Menu edit
This commit is contained in:
18
app/templates/edit-tools/css/toolbar.css
Normal file
18
app/templates/edit-tools/css/toolbar.css
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
<style>
|
||||
.msginfo
|
||||
{
|
||||
color: white;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.msginfo .success
|
||||
{
|
||||
background-color: green;
|
||||
|
||||
}
|
||||
|
||||
.msginfo .error{
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
17
app/templates/edit-tools/css/toolbar.css~
Normal file
17
app/templates/edit-tools/css/toolbar.css~
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
|
||||
.msginfo
|
||||
{
|
||||
color: white;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.msginfo .success
|
||||
{
|
||||
background-color: green;
|
||||
|
||||
}
|
||||
|
||||
.msginfo .error{
|
||||
background-color: red
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
|
||||
<script>
|
||||
window.onload = function () {
|
||||
|
||||
var dropzoneOptions = {
|
||||
dictDefaultMessage: 'Déposez vos images ici !',
|
||||
paramName: "file",
|
||||
maxFilesize: 8, // MB
|
||||
acceptedFiles: "image/*",
|
||||
url: "/upload-gallery/{{ bloc.name }}",
|
||||
chunking: true,
|
||||
forceChunking: true,
|
||||
chunkSize: 1000000,
|
||||
autoProcessQueue: true,
|
||||
init: function () {
|
||||
this.on("success", function (file) {
|
||||
console.log("success > " + file.name);
|
||||
setTimeout(() => { this.removeFile(file); }, 2000);
|
||||
});
|
||||
}
|
||||
};
|
||||
var uploader = document.querySelector('#uploader');
|
||||
var myDropzone = new Dropzone(uploader, dropzoneOptions);
|
||||
console.log("Loaded");
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
18
app/templates/edit-tools/toolbar.html
Normal file
18
app/templates/edit-tools/toolbar.html
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
<style>
|
||||
.msginfo
|
||||
{
|
||||
color: white;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.msginfo .success
|
||||
{
|
||||
background-color: green;
|
||||
|
||||
}
|
||||
|
||||
.msginfo .error{
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user