Code
{% comment %} @nico 20230103 BEGIN custom form code {% endcomment %}
{{ 'section-contact-form.css' | asset_url | stylesheet_tag }}
{%- style -%}
.section-{{ section.id }}-padding {
padding-top: {{ section.settings.padding_top | times: 0.75 | round: 0 }}px;
padding-bottom: {{ section.settings.padding_bottom | times: 0.75 | round: 0 }}px;
}
@media screen and (min-width: 750px) {
.section-{{ section.id }}-padding {
padding-top: {{ section.settings.padding_top }}px;
padding-bottom: {{ section.settings.padding_bottom }}px;
}
}
{%- endstyle -%}
{% comment %} @nico 20230103 END custom form code {% endcomment %}
{%- if section.settings.heading != blank -%}
{%- endform -%}
{{ section.settings.heading | escape }}
{%- else -%}{{ 'templates.contact.form.title' | t }}
{%- endif -%} {%- form 'contact', id: 'ContactForm', class: 'isolate' -%} {%- if form.posted_successfully? -%} {% comment %} @nico 20221230 BEGIN redirect to Thank You Page after Submit {% endcomment %} {% comment %} @nico 20221230 END redirect to Thank You Page after Submit {% endcomment %}{% render 'icon-success' %} {{ 'templates.contact.form.post_success' | t }}
{%- elsif form.errors -%} {%- endif -%}
{%- if form.errors contains 'email' -%}
{{ 'accessibility.error' | t }}
{%- endif -%}