{% extends "base.html" %} {% block content %} {% set g = (stay.guest if stay else {}) or {} %} {% set sg = suggest|default({}) %}

{{ t('form_room_change') if room_change else t('form_edit_stay') if stay else t('form_new_stay') }}

{% for v in sg.nationality|default([]) %} {% for v in sg.doc_type|default([]) %} {% for v in sg.profession|default([]) %} {% for v in sg.city|default([]) %} {% for v in sg.country|default([]) %} {% for v in sg.client|default([]) %}
{# 'or ""' matters: '{{ x if stay }}' renders the STRING 'None' for an empty field, which then gets saved back as literal text on the next submit #}
{% if stay and stay.id %} {# a room change: same person and number, a new sheet in another room from the departure day #} {% endif %} {{ t('btn_cancel') }}
{% if stay and stay.id %}
{% endif %} {% endblock %}