{% extends "base_template.html" %} {% block title %}{{ 'Edit project' if project else 'Add project' }}{% endblock %} {% block content %} {#- After a refusal the form shows what was typed (submitted), otherwise the stored project, or nothing for a new one. #} {%- set values = submitted or project %}

{{ 'Edit project' if project else 'Add project' }}

← Back to projects
{% with messages = get_flashed_messages(with_categories=true) %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endwith %}
{% endblock %}