{% extends 'creative/_layout.html' %}

{% block body %}

{% include 'creative/_nav.html' %}
{% include 'creative/_navtool.html' %}


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

{% if blocEdit == bloc.name %}
  {% include 'creative/_'+bloc.type+'-edit.html' %}
{% else %}

{% include 'creative/_'+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 %}



{% endblock %}
