{{ _(form_mode == 'edit' and 'device_edit_title' or 'device_add_title') }}

{{ _(form_mode == 'edit' and 'device_edit_subtitle' or 'device_add_subtitle') }}

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %} {% if form_mode == 'edit' %}
{{ _('device_id_label') or _('device_serial_label') }} {{ device.serial_number }}
{% endif %}
{% set dt_label = _('device_type_label') %}
{% if device and device.device_type == 'server' %} {{ _('server_ip_readonly') }} {% endif %}
{% if form_mode == 'edit' %} {% endif %} {{ _('back_to_devices') }}