doughnut-wedding/app/Resources/views/form/contact.html.twig

71 lines
2.5 KiB
Twig
Raw Permalink Normal View History

2017-04-26 21:32:43 -07:00
{% extends 'base.html.twig' %}
{% block title %}Get in touch{% endblock title %}
{% block body %}
<h2 class="uk-text-center">Get in touch</h2>
2017-05-05 22:49:54 -07:00
<p class="uk-margin-medium uk-text-center uk-text-lead">
We'd LOVE to hear from you!<br /> Send us your wishes, thoughts, advice, stories or questions.
2017-04-26 21:32:43 -07:00
</p>
{% if(form is defined) %}
{{ form_errors(form) }}
{{ form_start(form) }}
{{ form_label(form.name) }}
<div class="uk-form-controls uk-form-controls-text">
{{ form_errors(form.name) }}
{{ form_widget(form.name) }}
</div>
{{ form_label(form.email) }}
<div class="uk-form-controls uk-form-controls-text">
{{ form_errors(form.email) }}
{{ form_widget(form.email) }}
</div>
{{ form_label(form.subject) }}
<div class="uk-form-controls uk-form-controls-text">
{{ form_errors(form.subject) }}
{{ form_widget(form.subject) }}
</div>
{{ form_label(form.comment) }}
<div class="uk-form-controls uk-form-controls-text">
{{ form_errors(form.comment) }}
{{ form_widget(form.comment) }}
</div>
2017-05-05 22:49:54 -07:00
<div class="" uk-grid>
<div class="uk-width-1-3@m uk-width-1-1@s">
2017-04-26 21:32:43 -07:00
{{ form_widget(form.submit) }}
</div>
2017-05-05 22:49:54 -07:00
<div class="uk-width-2-3@m uk-width-1-1@s">
<p class="uk-text-lead uk-text-center">
#doughnutwedding
</p>
<p class="uk-text-center">
Follow us on Instagram and Facebook for wedding updates!
</p>
</div>
</div>
2017-04-26 21:32:43 -07:00
{{ form_rest(form) }}
{{ form_end(form) }}
{% else %}
<div class="uk-width-1-1 uk-text-center">
<p class="uk-text-lead">
{{ message|first }}
</p>
{% if message|length > 1 %}
<p class="uk-text-center">{{ message|last }}</p>
{% endif %}
2017-05-05 22:49:54 -07:00
<p class="uk-text-lead uk-text-center">
#doughnutwedding
</p>
<p class="uk-text-center">
Follow us on Instagram and Facebook for wedding updates!
</p>
2017-04-26 21:32:43 -07:00
<p class="uk-text-center">
<a class="uk-button uk-button-primary uk-button-large" href="{{ path('sikofitt_doughnutwedding_default_index') }}" title="Home">
Go to the home page
</a>
</p>
</div>
2017-05-05 22:49:54 -07:00
2017-04-26 21:32:43 -07:00
{% endif %}
2017-05-05 22:49:54 -07:00
2017-04-26 21:32:43 -07:00
{% endblock %}