{% include "translation" %} {% capture form %} {% if page.donation_v2.has_amount_goal? %}

{{ t_donation_amount_raised_so_far | replace: "$amount", page.donations_amount_format | replace: "$goal", page.donation_v2.amount_goal_format }}

{% include "progress" percent: page.donation_v2.percent_of_amount_goal, amount: page.donations_amount_format, goal: page.donation_v2.amount_goal_format, %}
{% elsif page.donation_v2.has_donor_goal? %}

{{ t_donation_donors_so_far | replace: "$amount", page.donations_count | replace: "$goal", page.donation_v2.donor_goal }}

{% include "progress" percent: page.donation_v2.percent_of_donor_goal, count: page.donations_count, goal: page.donation_v2.donor_goal, %}
{% endif %} {% form_for donation %}
{% error_messages_for donation %}
{% if page.donation_v2.has_merchant_account? == false %}

{{ t_forms_no_payment_processor }}

{% elsif page.donation_v2.merchant_account.is_test_mode? %}

{{ t_forms_testing_mode }}

{% endif %} {% if request.current_order %}

{{ t_forms_your_order }}

{% for item in request.current_order.items %} {% if item.num_time_periods and item.time_period_type %} {% else %} {% endif %} {% endfor %}
{{ t_invoices_quantity }} {{ t_forms_name }} {{ t_forms_amount }}
{{ item.quantity }} {{ item.name }} {{ t_donation_amount_billed_automatically_every_period | replace: '$amount', item.amount | replace: '$time', item.num_time_periods | replace: '$time_period', item.time_period_type }}{{ item.quantity }} {{ item.name }} {{ item.amount }}
{{ t_forms_clear_order }}
{% else %}
{% if page.donation_v2.donation_frequency == "any" %} {{ t_forms_select_an_amount }}
{{ page.donation_v2.monthly_recurring_radio_buttons | replace: "One-time", t_forms_one_time | replace: "Monthly", t_forms_monthly }}
{% endif %} {% if page.donation_v2.amount_in_cents != 0 %} {{ t_forms_amount }}

{{ page.donation_v2.amount_formatted }}

{% if page.donation_v2.donation_frequency == "monthly" %}

{{ t_forms_paid_monthly }}

{% elsif page.donation_v2.donation_frequency == "annual" %}

{{ t_forms_paid_annually }}

{% endif %} {% else %}
{{ page.donation_v2.form_amount_options }}
{% endif %} {% if page.donation_v2.accepts_variable_amounts? or page.donation_v2.donation_frequency == "any" %}
{% if page.donation_v2.accepts_variable_amounts? %}
{{ page.donation_v2.amount_other | replace: 'Other ' : '', | replace: '
': '
' }}
{% endif %}
{% endif %}
{% endif %}
{{ t_forms_pay_with }} {% if page.donation_v2.express_payment_activated? %}

{{ t_forms_apple_pay_notice }}

{% endif %}

{{ t_forms_youre_almost_done }}

{{ t_forms_payment_method_saved }}

{% payment_field 'card' %}

{{ t_forms_change_payment_method }}

{{ t_forms_your_information }}
{% text_field "first_name", class:"form-control" %}
{% text_field "last_name", class:"form-control" %}
{% email_field "email", class:"form-control" %}
{% phone_field "billing_address.phone_number", class:"form-control" %}

{{ t_forms_edit }} ,

{% include "donation_billing_address_inputs" %}
{% if page.donation_v2.merchant_account.is_employer_and_occupation_required? %}
{% text_field "employer", class:"form-control", required:"required" %}
{% text_field "occupation", class:"form-control", required:"required" %}
{% if page.donation_v2.merchant_account.is_employer_address_required? or page.donation_v2.merchant_account.is_employer_city_required? %} {% include "donation_work_address_inputs" %} {% endif %}
{{ t_forms_law_requires_employer_occupation }}
{% endif %} {% if page.donation_v2.merchant_account.is_corporate_contribution_required? %}
{% check_box "is_corporate_contribution", class:"custom-control-input checkbox" %}
{% endif %} {% for cf in custom_fields.donation %} {% assign custom_field = cf[1] %} {% assign custom_field_id = 'custom_values.' | append: custom_field.slug %}
{% if custom_field.is_text? %}
{% text_field custom_field_id, class:"form-control" %}
{% elsif custom_field.is_number? %}
{% number_field custom_field_id, class:"form-control" %}
{% elsif custom_field.is_boolean? %}
{% check_box custom_field_id, class:"custom-control-input checkbox" %}
{% elsif custom_field.is_multiple_choice? %}
{% select_field custom_field_id, custom_fields.donation[custom_field.slug].multiple_choice_options, class:"custom-select" %}
{% endif %}
{% endfor %}
{% if page.donation_v2.merchant_account.is_taxable? %} {{ t_forms_contributions_not_tax_deductible }} {% else %} {{ t_forms_contributions_tax_deductible }} {% endif %}
{% unless page.show_consent_form? %}
{% check_box "email_opt_in", class:"custom-control-input" %}
{% endunless %} {% if site.ask_to_publish_to_stream? %}
{% check_box "is_private", class:"custom-control-input checkbox" %}
{% endif %}
{% if page.donation_v2.merchant_account.has_contribution_rules? %}
{{ page.donation_v2.merchant_account.contribution_rules }}
{% check_box "is_confirmed", class:"custom-control-input checkbox" %}
{% endif %} {% if page.show_consent_form? %} {% include "consent_form" %} {% endif %}
{% if request.current_order %}

{{ page.donation_v2.ticket_purchase_total }}

{% else %} {% if page.donation_v2.confirmation_amount %} {{ page.donation_v2.currency_symbol }} {{ page.donation_v2.confirmation_amount }} {% else %} {% endif %} {% if page.donation_v2.donation_frequency == "one-time" %} {% elsif page.donation_v2.donation_frequency == "monthly" %}
{{ t_forms_paid_monthly }}
{% elsif page.donation_v2.donation_frequency == "annual" %}
{{ t_forms_paid_annually }}
{% else %}
{% if page.donation_v2.interval_monthly? %}{{ t_forms_paid_monthly }}{% endif %}
{% endif %} {% endif %}
{% if request.current_order %} {% include "form_submit_tag", label: t_forms_process_payment, full_width: true, size: "lg" %} {% else %} {% include "form_submit_tag", label: t_forms_donate_now, full_width: true, size: "lg" %} {% endif %}
{% endform_for %} {% endcapture %} {% if site.has_background_image? %}
{% if site.has_meta_image? %} {{ site.long_name }} {% else %} {{ site.long_name }} {% endif %}
{% if page.headline.size > 0 or page.donation_v2.content.size > 0 %}
{% if page.headline.size > 0 %}

{{ page.headline }}

{% endif %} {% if page.donation_v2.content.size > 0 %}
{{ page.donation_v2.content }}
{% endif %}
{% endif %} {{ form }}
{% if page.show_social_slider? and page.public_activities_count > 0 %}
{% include "social_slider" %}
{% endif %} {% include "footer" %}
{% else %}
{% include "header_mini" %}
{% if page.headline.size > 0 or page.donation_v2.content.size > 0 %}
{% if page.headline.size > 0 %}

{{ page.headline }}

{% endif %} {% if page.donation_v2.content.size > 0 %}
{{ page.donation_v2.content }}
{% endif %}
{% endif %}
{{ form }}
{% if page.show_social_slider? and page.public_activities_count > 0 %}
{% include "social_slider" %}
{% endif %}
{% include "footer" %} {% endif %} {% if site.has_background_image? %} {% endif %}