{% 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 %}
{% 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. #}| {% 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 }} |
{%- if group.leader_registration %}
{{ group.leader_registration.full_name }} | {%- else %}{% trans %}None{% endtrans %} | {%- endif %}{{- 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 %} |