{% from 'message_box.html' import message_box %} {% macro render_group_panel(membership, group, registration, from_management=false, switchable_plans=()) %} {% set plan = group.pricing_plan %} {% set chosen = group.chosen_plan %} {% set is_leader = group.leader_registration_id == registration.id %} {% set join_url = url_for_plugin('group_registration.join_link', group.registration_form, join_uuid=group.join_uuid, _external=true) %} {# The hook this macro answers is rendered *inside* `
|
{% trans name=group.name %}Group: {{ name }}{% endtrans %}
{% if group.state.name == 'forming' %}
{% trans seats=group.seats_left, target=group.target_size, label=chosen.label if chosen else '' -%} Your group needs {{ seats }} more member(s) to reach {{ target }} and confirm the "{{ label }}" rate. Share the code or the link below -- it will confirm itself the moment the last seat is filled. {%- endtrans %} {% elif group.state.name == 'confirmed' %}{% trans label=chosen.label if chosen else '' -%} This group is confirmed on the "{{ label }}" rate. The amount you pay will not change. {%- endtrans %} {% elif group.state.name == 'short' %}{% if plan %} {% trans aimed=chosen.label if chosen else '', label=plan.label -%} This group did not reach the "{{ aimed }}" seat count by the deadline, so the "{{ label }}" rate was applied instead. {%- endtrans %} {% else %} {% trans aimed=chosen.label if chosen else '' -%} This group did not reach the "{{ aimed }}" seat count by the deadline and does not qualify for a group rate, so the standard rate now applies. {%- endtrans %} {% endif %} {% if membership.balance_due > 0 %} {# `i-callout` is not an Indico class; this is the one it really has. #} {% call message_box('warning') %} {% trans balance=format_currency(membership.balance_due, registration.currency) -%} You have an outstanding balance of {{ balance }}. Please contact the organizers to settle it. {%- endtrans %} {% trans -%} Until it is settled your registration stays on "awaiting payment". The checkout cannot take the difference on its own, so please arrange it with the organizers rather than paying again here. {%- endtrans %} {% endcall %} {% endif %} {% elif group.state.name == 'dissolved' %}{% trans %}This group has been dissolved by the organizers and no group rate applies.{% endtrans %} {% endif %} {% if group.state.name == 'forming' %}{% trans %}Send these to the people you want in your group however you like -- we do not e-mail them for you.{% endtrans %} {% endif %}
|
|||||