{% extends 'events/management/base.html' %} {% from 'message_box.html' import message_box %} {% block title %} {% trans %}Groups{% endtrans %} {% endblock %} {% block subtitle %} {{ regform.title }} {% endblock %} {% block content %}
{# The one e-mail an organizer sends by hand. It opens a dialog rather than firing on a confirmation, because the wording is theirs to edit before it goes out; the count is in the label so the button says how much it is about to do before it is pressed. A disabled button never fires, so with nothing forming there is nothing to open. #} {% trans %}Settings{% endtrans %} {% trans %}Balances due{% endtrans %}
{% if not groups %} {% call message_box('info') %} {% trans %}Nobody has created a group on this form yet.{% endtrans %} {% endcall %} {% else %} {# Sorting is client-side, through the tablesorter core already loads on every management page. Columns whose text is not what they should sort by carry the sort key in `data-text`, which the default extraction reads before the cell's content: seats sort by members, plans by seat count, states in lifecycle order rather than alphabetically, and dates by timestamp. #} {% for group in groups %} {% set plan = group.pricing_plan %} {%- if group.leader_registration %} {%- else %} {%- endif %} {% endfor %}
{% trans %}Group{% endtrans %} {% trans %}Code{% endtrans %} {% trans %}Leader{% endtrans %} {% trans %}Plan{% endtrans %} {% trans %}Seats{% endtrans %} {% trans %}State{% endtrans %} {% trans %}Created{% endtrans %}
{{ group.name }} {{ group.formatted_code }}{{ group.leader_registration.full_name }} {% trans %}None{% endtrans %} {{- plan.label if plan else _('Standard rate') -}} {%- if group.state.name == 'short' and group.plan_id != group.effective_plan_id %} ({% trans label=group.chosen_plan.label if group.chosen_plan else '?' -%} aimed for {{ label }} {%- endtrans %}) {% endif %} {{ group.member_count }} / {{ group.target_size }} {{ group.state.title }} {{ group.created_dt | format_date(timezone=event.tzinfo) }} {% if group.state.name == 'forming' %} {% endif %} {% if group.state.name != 'dissolved' %} {% endif %}
{# A bare ` {% endif %} {% endblock %}