{% extends "base.html" %} {% block main_class %}grid-page{% endblock %} {% block content %} {% set unit_opts = rows|map(attribute='unit')|select|unique|sort %} {% set nat_opts = rows|map(attribute='nationality')|select|unique|sort %}
| {{ t('col_unit') }} | {{ t('col_sheetno') }} | {{ t('col_lastname') }} | {{ t('col_firstname') }} | {{ t('col_birth') }} | {{ t('col_residence') }} | {{ t('col_room') }} | {{ t('col_arrival') }} | {{ t('col_departure') }} | {{ t('col_days') }} | {{ t('col_tourism_liable') }} | {{ t('col_nationality') }} | {{ t('col_document') }} | {{ t('col_docnr') }} | {{ t('col_profession') }} | {{ t('col_address') }} | {{ t('col_postcode') }} | {{ t('col_city') }} | {{ t('col_country') }} | {{ t('col_phone') }} | {{ t('col_employer') }} | {{ t('col_employer_address') }} | {{ t('col_notes_long') }} | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {% if r.unit %}{{ r.unit }}{% endif %} | {{ r.sheet_number or '' }} | {{ r.last_name or '' }} | {{ r.first_name or '' }} | {{ r.birth_date|date }} | {{ 'HWS' if r.hauptwohnsitz == 1 else ('NWS' if r.hauptwohnsitz == 0 else '') }} | {{ r.room or '' }} | {#- the weekday before the date; data-k = the ISO date, or the column would sort by "Mo/Di/Mi" -#}{{ r.arrival|datewd }} | {{ r.departure|datewd }} | {{ r.days if r.days is not none else '' }} | {{ 'Ja' if r.tourism_liable == 1 else ('-' if r.tourism_liable == 0 else '') }} | {{ r.nationality or '' }} | {{ r.doc_type or '' }} | {{ r.doc_number or '' }} | {{ r.profession or '' }} | {{ r.home_street or '' }} | {{ r.home_postcode or '' }} | {{ r.home_city or '' }} | {{ r.home_country or '' }} | {{ r.phone or '' }} | {{ r.employer or '' }} | {{ r.employer_address or '' }} | {{ r.notes or '' }} | {{ t('btn_edit') }} | |
| {{ t('no_results') }} | ||||||||||||||||||||||||