doughnut-wedding/app/Resources/FOSUserBundle/views/Profile/edit_content.html.twig

30 lines
1.2 KiB
Twig

{% trans_default_domain 'FOSUserBundle' %}
{% if form.vars.errors is not empty %}
<div class="uk-alert uk-alert-danger">
{{ form_errors(form) }}
</div>
{% endif %}
{{ form_start(form, { 'action': path('fos_user_profile_edit'), 'attr': { 'class': 'uk-form-horizontal fos_user_profile_edit' } }) }}
{{ form_label(form.email) }}
<div class="uk-form-controls uk-form-controls-text">
{{ form_widget(form.email) }}
</div>
{{ form_label(form.name) }}
<div class="uk-form-controls uk-form-controls-text">
{{ form_widget(form.name) }}
</div>
{{ form_label(form.rsvp) }}
<div class="uk-form-controls uk-form-controls-text">
{{ form_widget(form.rsvp) }}
</div>
<div class="uk-form-controls uk-margin-medium-top">
<input type="submit" class="uk-button uk-button-large uk-width-1-1@s uk-width-1-3@m uk-align-right uk-button-primary" value="{{ 'profile.edit.submit'|trans }}" />
</div>
<div class="uk-form-controls">
<a href="{{ url('fos_user_profile_show') }}" title="Cancel" class="uk-width-1-1@s uk-width-1-3@m uk-button uk-button-large uk-button-danger uk-align-right">Cancel</a>
</div>
{{ form_rest(form) }}
{{ form_end(form) }}