Rewrite edit blocs and themes

This commit is contained in:
2026-03-28 12:20:30 +01:00
parent 48c5c31818
commit cdf1d439f5
32 changed files with 627 additions and 373 deletions

View File

@@ -2,6 +2,7 @@
{% block css %}
{% include 'edit-tools/css/dropzone' %}
<link href="/static/css/edit-toolbar.css" rel="stylesheet">
{% endblock %}
@@ -13,16 +14,15 @@
{% for bloc in myblocs.values() %}
{% if blocEdit == bloc.name %}
{% include config.theme+'/_'+bloc.type+'-edit.html' %}
{% include config.theme+'/blocs/edit/_'+bloc.type+'.html' %}
{% else %}
{% include config.theme+'/_'+bloc.type+'.html' %}
{% include config.theme+'/blocs/_'+bloc.type+'.html' %}
<button class="btn btn-success btn-xl pull-right"
style="margin-top:-7rem; margin-right:1rem;"
hx-get="/edit/{{ bloc.name }}"
hx-target="#{{bloc.name}}"
hw-swap="none"
> Éditer </button>
hx-swap="oob"> Modifier </button>
{% endif %}
{% endfor %}