{% if page.donation_v2.content.size > 0 %}
{% include "partial_if_bg_image_bottom" %}
{% if page.headline.size > 0 %}
" %} {{ page.donation_v2.content | split: "
" | first }} {% include "partial_accordion_content" accordion_content: page.donation_v2.content %} {% else %} {{ page.donation_v2.content }} {% endif %}
{% if site.ask_to_publish_to_stream? %}
{% assign public_activity_count = 0 %}
{% for activity in page.activities %}
{% if activity.signup.first_name.size > 0 and activity.data.donation.amount.size > 0 %}
{% assign public_activity_count = public_activity_count | plus:1 %}
{% endif %}
{% endfor %}
{% if public_activity_count > 0 or page_tags_list contains "admin_show_placeholder_donations" %}
{% endif %}
{{ page.headline }}
{% endif %} {% if page.donation_v2.content contains "" %} {{ page.donation_v2.content | split: "
" | first }} {% include "partial_accordion_content" accordion_content: page.donation_v2.content %} {% else %} {{ page.donation_v2.content }} {% endif %}
{% if page.donation_v2.has_amount_goal? %}
{% assign thermo_width = 100 %}
{% if page.donations_count < 1 %}
{% endif %}
{% if page_tags_list contains "admin_show_placeholder_donations" %}$88,800{% else %}{{ page.donations_amount_format | split: "." | first }}{% endif %} {{ text_raised }}
{{ text_goals }}: {{ page.donation_v2.amount_goal_format }}
{% elsif page.donation_v2.has_donor_goal? %}
{{ page.donation_v2.donor_goal }} {{ text_donors_goal }}
0%
{% else %}{{ page.donation_v2.percent_of_donor_goal | times:100 | round }}%
{% endif %}{{ text_recent_activity }}
{% endif %} {% endif %} {% if site.ask_to_publish_to_stream? %} {% assign dateStart = "" %} {% assign nowTimestamp = "" %} {% assign diffSeconds = "" %} {% endif %}
{% form_for donation %}
{% endif %}
{% unless page.donation_v2.express_payment_activated? %}
{% endunless %}
{% if page_tags_list contains "#admin_custom_field_" %}
{% for tag in page.tags %}
{% if tag.slug contains "admin_custom_field_" %}
{% assign custom_slug = tag.slug | split:"admin_custom_field_" | last %}
{% include "partial_custom_people_field" %}
{% endif %}
{% endfor %}
{% endif %}
{% if page_tags_list contains "#admin_custom_donation_field_" %}
{% for tag in page.tags %}
{% if tag.slug contains "admin_custom_donation_field_" %}
{% assign custom_slug = tag.slug | split:"admin_custom_donation_field_" | last %}
{% include "partial_custom_donation_field" %}
{% endif %}
{% endfor %}
{% endif %}
{% unless page.show_consent_form? %}
{% endunless %}
{% if page.donation_v2.merchant_account.is_employer_and_occupation_required? %}
{% if page.donation_v2.merchant_account.is_employer_address_required? %}
{% elsif page.donation_v2.merchant_account.is_employer_city_required? %}
{% endif %}
{% endif %}
{% if page.donation_v2.merchant_account.is_corporate_contribution_required? %}
{% endif %}
{% endunless %}
{% endform_for %}
{% error_messages_for donation %}
{% if page.donation_v2.has_merchant_account? == false %}
{{ text_no_payment_processor }}
{% elsif page.donation_v2.merchant_account.is_test_mode? %}
{{ text_testing_mode }}
{% endif %}
{% if page.donation_v2.donation_frequency == "any" %}
{{ text_donate_now }}
{{ page.donation_v2.monthly_recurring_radio_buttons }}
- 1
- 2
- 3
{% if request.current_order %}
{% else %}
{% if page.donation_v2.accepts_variable_amounts? or page.donation_v2.donation_frequency == "any" %}
{% if page.donation_v2.accepts_variable_amounts? %}
{% endif %}
{% endif %}
{% if page.donation_v2.donation_frequency == "monthly" %}
{% endif %}
{% endif %}
{% if page.donation_v2.express_payment_activated? %}
{% else %}
{% endif %}
{% unless page.donation_v2.express_payment_activated? %}
{{ text_your_order }}
-
{% for item in request.current_order.items %}
- {% if item.num_time_periods and item.time_period_type %} {{ item.quantity }} {{ item.name }} @ {{ item.amount }} - {{ text_billed_automatically_every }} {{ item.num_time_periods }} {{ item.time_period_type }} {% else %} {{ item.quantity }} {{ item.name }} @ {{ item.amount }} {% endif %} {% endfor %}
1. {{ text_select_your_amount }}
{% if page.donation_v2.amount_in_cents != 0 %}
{% if page.donation_v2.amount_in_cents != 0 %}
{% hidden_field_tag "donation[amount]", page.donation_v2.confirmation_amount %}
{% endif %}
{% endif %}
{{ page.donation_v2.amount_formatted }}
{% else %}
{{ page.donation_v2.form_amount_options }}
{% endif %}
{% if page_tags_list contains "#admin_cover_fee#" %}
{{ text_paid_monthly }}
{{ text_payment_options }}
{% if page.donation_v2.express_payment_activated? %}
{% endif %}
You're almost done! Click the button below to enter your contact details.
Payment method information has been saved. Change payment method
{% payment_field 'card' %}
2. {{ text_your_information }}
{% text_field "first_name", class:"text form-control", placeholder:text_first_name %}
{% text_field "last_name", class:"text form-control", placeholder:text_last_name %}
{% email_field "email", class:"text form-control", placeholder:text_email %}
{% text_field "billing_address.address1", class:"text form-control", placeholder:text_address_1 %}
{% text_field "billing_address.address2", class:"text form-control", placeholder:text_address_2 %}
{% text_field "billing_address.city", class:"text form-control", placeholder:text_city %}
{% text_field "billing_address.zip", class:"text form-control", placeholder:text_postcode %}
{% collection_select "billing_address.country_code", page.donation_v2.countries, "code", "name", class:"select form-control" %}
{% phone_field "billing_address.phone_number", class:"text form-control", placeholder:text_phone %}
{% check_box "email_opt_in", class:"custom-control-input" %}
{% text_field "employer", class:"text form-control", required:"required", placeholder:text_employer %}
{% text_field "occupation", class:"text form-control", required:"required", placeholder:text_occupation %}
{% collection_select "work_address.country_code", page.donation_v2.countries, "code", "name", class:"select", required:"required" %}
{% text_field "work_address.address1", class:"text form-control", required:"required", placeholder:text_employer_address_1 %}
{% text_field "work_address.address2", class:"text form-control", placeholder:text_employer_address_2 %}
{% text_field "work_address.address3", class:"text form-control work-not-us-or-canada hide", placeholder:text_employer_address_3 %}
{% text_field "work_address.city", class:"text form-control", required:"required", placeholder:text_employer_city %}
{% text_field "work_address.state", class:"text form-control", required:"required", placeholder:text_state %}
{% text_field "work_address.zip", class:"text form-control", required:"required", placeholder:text_postcode %}
{% collection_select "work_address.country_code", page.donation_v2.countries, "code", "name", class:"select", required:"required" %}
{% text_field "work_address.city", class:"text form-control", required:"required", placeholder:text_employer_city %}
{% text_field "work_address.state", class:"text form-control", required:"required", placeholder:text_state %}
{% text_field "work_address.zip", class:"text form-control", required:"required", placeholder:text_postcode %}
{{ text_law_requires }}
{% check_box "is_corporate_contribution", class:"custom-control-input" %}
{% if page.donation_v2.merchant_account.is_taxable? %}
{{ text_contributions_are_not }}
{% else %}
{{ text_contributions_are }}
{% endif %}
3. {{ text_payment_information }}
{% payment_field 'card' %}
{% if page.donation_v2.merchant_account.has_contribution_rules? %}
{{ page.donation_v2.merchant_account.contribution_rules }}
{% check_box "is_confirmed", class:"custom-control-input" %}
{% endif %}
{% if site.ask_to_publish_to_stream? %}
{% check_box "is_private", class:"custom-control-input" %}
{% endif %}
{% if request.current_order %}
{{page.donation_v2.ticket_purchase_total}}
{% endif %}
{% if page.show_consent_form? %}
{% include "consent_form" %}
{% endif %}
{% if request.current_order %}
{% submit_tag "Process payment", class:"btn btn-primary btn-lg submit-button" %}
{% else %}
{{ page.donation_v2.currency_symbol }} {{ page.donation_v2.confirmation_amount | split:"." | first }} {{ frequency }}
{% if page.donation_v2.donation_frequency == "one-time" %} {% elsif page.donation_v2.donation_frequency == "monthly" %}{{ text_paid_monthly }}
{% else %}
{% if page.donation_v2.interval_monthly? %}{{ text_paid_monthly }}{% endif %}
{% endif %}
{% submit_tag text_donate, class:"btn btn-secondary btn-lg submit-button mb-1" %}
{% endif %}