{% extends "base_template.html" %} {# action is a logic value ("Create"/"Edit") coming from the route; translate it only where it is shown. #} {% set action_label = _('Edit') if action == 'Edit' else _('Create') %} {% block title %}{{ action_label }} {{ model_name }} - {{ _('Admin') }}{% endblock %} {% block breadcrumb %} {% endblock %} {% block content %}