{% from 'forms/_form.html' import simple_form, form_fieldset, form_rows, form_row %} {% from 'message_box.html' import message_box %} {% if registrations != all_registrations %} {% call message_box('warning') -%} {% trans count=(all_registrations|length - registrations|length), total=all_registrations|length -%} Tickets are currently not available for the selected registration. {%- pluralize total -%} Tickets are currently not available for {{ count }} out of the {{ total }} selected registrations. {%- endtrans %} {%- endcall %} {% endif %} {% if registrations %} {% call simple_form(settings_form, form_header_kwargs={'id': 'badge-settings-form'}, back=_('Cancel'), submit=_("Download PDF"), disabled_until_change=false, disable_if_locked=false) %} {{ form_row(settings_form.template) }} {% call form_fieldset(_('Page configuration')) %} {{ form_rows(settings_form, fields=('save_values', 'dashed_border', 'page_size', 'page_orientation', 'page_layout')) }} {% endcall %}
{{ form_row(settings_form.top_margin, orientation='vertical') }}
{{ form_row(settings_form.left_margin, orientation='vertical') }} {{ form_row(settings_form.right_margin, orientation='vertical') }}
{{ form_row(settings_form.bottom_margin, orientation='vertical') }}
{{ form_rows(settings_form, ('margin_columns', 'margin_rows'), orientation='vertical') }}
{% trans -%} Tip: if your printer does not align the badges correctly, you can tweak the margins. {%- endtrans %}
{% trans -%} Example: If your left and right margins are 1.5 cm each, but your printer prints everything 1 mm to the left, you could use a left margin of 1.6 cm and a right margin of 1.4 cm to compensate. If you increase a margin, do not forget to decrease the opposing one to avoid Indico thinking there is less space for printing badges, and the number of rows / columns will change. {%- endtrans %}
{% for registration in registrations %} {% endfor %} {% endcall %} {% endif %}