templates/includes/blocks/contact-form.html.twig line 1
<div class="contact-form {{ content.top }} {{ content.bottom }}" id="contactForm" x-data="contactform">
<div class="contact-form__container">
<div class="contact-form__title" x-ref="title">
{% if content.contactFormPagina %}
{% if content.contactFormSeoHeadlinePagina %}<{{ content.contactFormSeoHeadlinePagina }}>{% endif %}
<div class="pagina">
{{ content.contactFormPagina }}
</div>
{% if content.contactFormSeoHeadlinePagina %}</{{ content.contactFormSeoHeadlinePagina }}>{% endif %}
{% endif %}
{% if content.contactFormHeadline %}
<div {% if content.contactFormTitleMobile %} class="desktop-only" {% endif %}>
{{ content.contactFormHeadline|raw }}
</div>
{% endif %}
</div>
{% if content.contactFormTitleMobile %}
<div class="contact-form__title mobile-only" x-ref="mobiletitle">
{{ content.contactFormTitleMobile|raw }}
</div>
{% endif %}
<div class="contact-form__text" x-ref="text">
{{ content.contactFormText|raw }}
</div>
{% if content.contactFormAppointmentLabel and content.contactFormContact %}
{% set contact = content.contactFormContact %}
{% set socials = sulu_resolve_contact(contact.Id).socialMediaProfiles %}
{% for key, name in socials %}
{% if 'calendly' in name.username %}
{% set calendlyLink = name.username %}
{% if content.contactFormCalendlyFormBlock is defined and content.contactFormCalendlyFormBlock.calendlyModalContact is defined and content.contactFormCalendlyFormBlock.calendlyModalContact %}
<div class="modal" :class="{'modal--show': show}" x-data="modal">
<div class="contact-form__appointment" x-ref="appointment">
<button @click="open" type="submit" target="_blank"
class="button button--default">
<span class="button__inner">
{{ content.contactFormAppointmentLabel }}
</span>
</button>
</div>
{% include('/includes/blocks/' ~ content.contactFormCalendlyFormBlock.type ~ '.html.twig') with { content: content.contactFormCalendlyFormBlock, view: view.contactFormCalendlyFormBlock } %}
</div>
{% else %}
<div class="contact-form__appointment" x-ref="appointment">
<a href="{{ calendlyLink }}" type="submit" target="_blank" class="button button--default">
<span class="button__inner">
{{ content.contactFormAppointmentLabel }}
</span>
</a>
</div>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
<div class="contact-form__form" x-ref="form">
{{ include('/includes/form.html.twig', {
'formName': 'contact_form',
'id': 'contactform',
'firstName': content.contactFormFirstname,
'lastName': content.contactFormLastName,
'unternehmen': content.contactFormUnternehmen,
'email': content.contactFormEmail,
'message': content.contactFormMessage,
'subscription': content.contactFormSubscribe,
'terms': content.contactFormTerms,
'referrer': content.contactFormReferrer,
'send': content.contactFormButtonSend,
'sended': content.contactFormButtonSended,
'success': content.contactFormSuccess,
'error': content.contactFormError
}) }}
</div>
</div>
</div>