2015-10-03 06:29:55 +02:00
|
|
|
{% trans_default_domain 'FOSUserBundle' %}
|
|
|
|
|
2015-12-22 13:00:37 +01:00
|
|
|
{{ form_start(form, {'method': 'post', 'action': path('fos_user_registration_register'), 'attr': {'class': 'fos_user_registration_register'}}) }}
|
2015-10-03 06:29:55 +02:00
|
|
|
<div class="card-content">
|
2015-10-05 22:16:18 +02:00
|
|
|
<div class="row">
|
|
|
|
{{ form_widget(form._token) }}
|
|
|
|
|
|
|
|
{% for flashMessage in app.session.flashbag.get('notice') %}
|
|
|
|
<span class="black-text"><p>{{ flashMessage }}</p></span>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
<div class="input-field col s12">
|
|
|
|
{{ form_errors(form.email) }}
|
2015-10-06 07:44:10 +02:00
|
|
|
{{ form_label(form.email) }}
|
|
|
|
{{ form_widget(form.email) }}
|
2015-10-05 22:16:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-field col s12">
|
|
|
|
{{ form_errors(form.username) }}
|
2015-10-06 07:44:10 +02:00
|
|
|
{{ form_label(form.username) }}
|
|
|
|
{{ form_widget(form.username) }}
|
2015-10-05 22:16:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-field col s12">
|
|
|
|
{{ form_errors(form.plainPassword.first) }}
|
2015-10-06 07:44:10 +02:00
|
|
|
{{ form_label(form.plainPassword.first) }}
|
|
|
|
{{ form_widget(form.plainPassword.first) }}
|
2015-10-05 22:16:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-field col s12">
|
|
|
|
{{ form_errors(form.plainPassword.second) }}
|
2015-10-06 07:44:10 +02:00
|
|
|
{{ form_label(form.plainPassword.second) }}
|
|
|
|
{{ form_widget(form.plainPassword.second) }}
|
2015-10-05 22:16:18 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-10-03 06:29:55 +02:00
|
|
|
</div>
|
2015-10-05 22:16:18 +02:00
|
|
|
<div class="card-action center">
|
2016-03-08 17:02:34 +01:00
|
|
|
<a href="{{ path('fos_user_security_login') }}" class="waves-effect waves-light grey btn">{{ 'security.login.submit'|trans }}</a>
|
2015-10-03 06:29:55 +02:00
|
|
|
<button class="btn waves-effect waves-light" type="submit" name="send">
|
2015-10-05 22:16:18 +02:00
|
|
|
{{ 'registration.submit'|trans({}, 'FOSUserBundle') }}
|
2016-03-08 17:02:34 +01:00
|
|
|
<i class="material-icons right">send</i>
|
2015-10-03 06:29:55 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|