{% from 'message_box.html' import message_box %} {% set has_codes = codes|selectattr('code')|any %} {% macro render_row(object, code, unused, object_type) %} {% if unused %}

{% trans %} Some placeholders returned an empty string.
Make sure their corresponding objects already have program codes assigned. {% endtrans %}

{% trans %}Empty placeholders:{% endtrans %}

{% endif %} {{ object.full_title or object.title }} {%- if object_type in ('contributions', 'subcontributions') and object.speakers -%} {%- endif -%} {% if show_dates %} {{ object.start_dt|format_datetime('short', timezone=event.timezone) }} {% endif %} {% if has_codes %} {{ object.code }} {% endif %} {% endmacro %} {% if not codes %} {% call message_box('info', fixed_width=true) %} {% trans %} There are no objects of this type in the event. {% endtrans %} {% endcall %} {% else %}
{% if hidden_post_field %} {% for value in request.form.getlist(hidden_post_field) %} {% endfor %} {% endif %} {% call message_box('info', fixed_width=true) %} {% trans %} Please verify the program codes that will be assigned.
You may edit them before finishing the assignment, but any custom changes here will be overwritten if you assign codes again at a later point. {% endtrans %} {% endcall %}
{% if show_dates %} {% endif %} {% if has_codes %} {% endif %} {% for object, (code, unused) in codes.items() %} {{ render_row(object, code, unused, object_type) }} {% endfor %}
{% trans %}Title{% endtrans %}{% trans %}Date{% endtrans %}{% trans %}Current code{% endtrans %}{% trans %}New code{% endtrans %}
{% endif %}