Add upload form to admin media area

This commit is contained in:
2023-05-21 13:56:03 +10:00
parent 44160de6b7
commit a01b3c5843
3 changed files with 2302 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -13,6 +13,10 @@
md_gallery({
"class_name": "grid gap-4 grid-cols-2 prose-img:m-0"
});
htmx.on('#media_form', 'htmx:xhr:progress', function(evt) {
htmx.find('#progress').setAttribute('value', evt.detail.loaded/evt.detail.total * 100)
});
});
// mapboxgl.accessToken = 'pk.eyJ1IjoiZG5pdHphIiwiYSI6ImNsZWIyY3ZzaTE0cjUzdm4xdnZ6czRlYjUifQ.FRETOXYRID6T2IoB7qqRLg';
// var map = new mapboxgl.Map({