{% extends 'index.html.tpl' %}

{% block css %}
{% include  'edit-tools/css/dropzone' %}

{% endblock %}

{% block body %}

{% include config.theme+'/_nav.html' %}
{% include config.theme+'/_navtool.html' %}

{% for bloc in myblocs.values() %}

{% if blocEdit == bloc.name %}
{% include config.theme+'/_'+bloc.type+'-edit.html' %}
{% else %}
{% include config.theme+'/_'+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>

{% endif %}
{% endfor %}
{% include '_flash_msgs.html' %} 

{% endblock %}

{% block js %}

{% endblock %}
