{% extends 'base.html' %} {% block title %}Éditer {{ texte.titre }} - Administration{% endblock %} {% block styles %} {% endblock %} {% block content %}

Éditer la méthodologie : {{ texte.titre }}

Informations de base

{# Add CSRF token if using Flask-WTF #}

Blocs de contenu

Organisez votre contenu en blocs distincts. Chaque bloc peut contenir un titre, du texte riche et une image. Vous pouvez réorganiser les blocs en les faisant glisser ().

{# Add CSRF token if using Flask-WTF #}
{% for block in blocks %}

Bloc #{{ loop.index }}

{{ block.content|safe if block.content else '' }}
{% if block.image %} {{ block.image.alt or 'Prévisualisation' }} {% else %} {% endif %}
{# Hide position if no image #}
{% endfor %}

Ajouter une nouvelle image (Galerie)

{# Action points to a dedicated route #} {# Add CSRF token if using Flask-WTF #} {# Removed 'action' hidden input, handled by route #} {# Removed texte_id hidden input, not needed for general upload #}
{# For AJAX feedback #}
{% endblock %} {% block scripts %} {% endblock %}