{% load staticfiles i18n widget_tweaks %}
{% trans 'Frequent flyer' %} {% if invite.event.frequent_flyer_question_type == 'all' %} {% endif %} {{ card_formset.management_form }}
{% for card_form in card_formset %} {% for hidden in card_form.hidden_fields %}{{ hidden }}{% endfor %}
{{ card_form.airline|add_class:'form-control' }} {% if card_form.airline.errors %} {{ card_form.airline.errors|striptags }} {% endif %}
{{ card_form.number|add_class:'form-control' }} {% if card_form.number.errors %} {{ card_form.number.errors|striptags }} {% endif %}
{{ card_form.expiration_date|add_class:'form-control'|add_class:'datepicker' }} {% if card_form.expiration_date.errors %} {{ card_form.expiration_date.errors|striptags }} {% endif %}
{% if invite.event.frequent_flyer_question_type == 'all' %}
{% endif %}
{% if not forloop.last %}
{% endif %} {% endfor %}