{% extends 'layouts/seating_admin.html' %}
{% from 'macros/admin.html' import render_extra_in_heading %}
{% from 'macros/pagination.html' import render_pagination_nav %}
{% set current_page_party = party %}
{% set current_tab = 'areas' %}
{% set title = '%s - Bereiche'|format(party.title) %}

{% block body %}

  <h1>Bereiche {{ render_extra_in_heading(areas.total) }}</h1>
  <table class="index wide">
    <thead>
      <tr>
        <th>Titel<br>Slug</th>
        <th>Hintergrundbild<br>Größe</th>
        <th class="centered">Plätze</th>
      </tr>
    </thead>
    <tbody>
      {%- for area in areas.items %}
      <tr>
        <td>
          {{ area.title }}<br>
          {{ area.slug|dim }}
        </td>
        <td>
          {{ area.image_filename }}<br>
          {{ '%d &times; %d Pixel'|format(area.image_width, area.image_height)|dim }}
        </td>
        <td class="centered bignumber">{{ seat_total_per_area[area.id] }}</td>
      </tr>
      {%- endfor %}
      <tr>
    </tbody>
  </table>

{{ render_pagination_nav(areas, '.index_for_party', {'party_id': party.id}) }}

{%- endblock %}

{% extends 'layouts/seating_admin.html' %}
{% from 'macros/admin.html' import render_extra_in_heading %}
{% from 'macros/pagination.html' import render_pagination_nav %}
{% set current_page_party = party %}
{% set current_tab = 'areas' %}
{% set title = '%s - Bereiche'|format(party.title) %}

{% block body %}

  <h1>Bereiche {{ render_extra_in_heading(areas.total) }}</h1>
  <table class="index wide">
    <thead>
      <tr>
        <th>Titel<br>Slug</th>
        <th>Hintergrundbild<br>Größe</th>
        <th class="centered">Plätze</th>
      </tr>
    </thead>
    <tbody>
      {%- for area in areas.items %}
      <tr>
        <td>
          {{ area.title }}<br>
          {{ area.slug|dim }}
        </td>
        <td>
          {%- if area.image_filename %}
          {{ area.image_filename }}<br>
          {{ '%d &times; %d Pixel'|format(area.image_width, area.image_height)|dim }}
          {%- else %}
          {{ 'nicht angegeben'|dim }}
          {%- endif %}
        </td>
        <td class="centered bignumber">{{ seat_total_per_area[area.id] }}</td>
      </tr>
      {%- endfor %}
      <tr>
    </tbody>
  </table>

{{ render_pagination_nav(areas, '.index_for_party', {'party_id': party.id}) }}

{%- endblock %}

Set fallback for seating area image in admin list
Set fallback for seating area image in admin list
