Massiv +
This commit is contained in:
@@ -1,21 +1,5 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<section class="card">
|
||||
<h1>{{ t('host_access_title') }}</h1>
|
||||
<p>{{ t('host_access_note') }}</p>
|
||||
</section>
|
||||
|
||||
{% if not unlocked %}
|
||||
<section class="card form-card">
|
||||
<form method="post" action="{{ url_for('host_area') }}" class="form-grid">
|
||||
<label>
|
||||
{{ t('host_password') }}
|
||||
<input type="password" name="host_password" required />
|
||||
</label>
|
||||
<button class="btn" type="submit">{{ t('host_access_submit') }}</button>
|
||||
</form>
|
||||
</section>
|
||||
{% else %}
|
||||
<section class="stats-grid">
|
||||
<article class="card stat-card">
|
||||
<h2>{{ t('total_guests') }}</h2>
|
||||
@@ -33,10 +17,6 @@
|
||||
<h2>{{ t('attending_open') }}</h2>
|
||||
<p>{{ stats.attending_open }}</p>
|
||||
</article>
|
||||
<article class="card stat-card">
|
||||
<h2>{{ t('plus_one_total') }}</h2>
|
||||
<p>{{ stats.plus_one_total }}</p>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
@@ -45,29 +25,31 @@
|
||||
<table class="guest-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ t('host_table_name') }}</th>
|
||||
<th>{{ t('host_table_group') }}</th>
|
||||
<th>{{ t('host_table_member') }}</th>
|
||||
<th>{{ t('host_table_status') }}</th>
|
||||
<th>{{ t('host_table_plus_one') }}</th>
|
||||
<th>{{ t('host_table_age') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for guest in guests %}
|
||||
{% for member in members %}
|
||||
<tr>
|
||||
<td>{{ guest["name"] }}</td>
|
||||
<td>{{ member["group_name"] }}</td>
|
||||
<td>{{ member["name"] }}</td>
|
||||
<td>
|
||||
{% if guest["attending"] == 1 %}
|
||||
{% if member["attending"] == 1 %}
|
||||
{{ t('status_yes') }}
|
||||
{% elif guest["attending"] == 0 %}
|
||||
{% elif member["attending"] == 0 %}
|
||||
{{ t('status_no') }}
|
||||
{% else %}
|
||||
{{ t('status_open') }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if guest["attending"] == 1 and guest["plus_one"] == 1 %}
|
||||
{{ t('yes') }}
|
||||
{% if member["child_age"] is not none %}
|
||||
{{ member["child_age"] }}
|
||||
{% else %}
|
||||
{{ t('no') }}
|
||||
-
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -76,5 +58,4 @@
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user