From 8f119338f03ecd2b778e1ff9b0eee8ec6c6e032f Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Thu, 13 Sep 2018 02:31:56 +0200 Subject: [PATCH] Optimized register function for bootstrap --- .../views/Registration/register_content.html.twig | 4 ++-- application/templates/user/register.html.twig | 11 ----------- 2 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 application/templates/user/register.html.twig diff --git a/application/src/Resources/FOSUserBundle/views/Registration/register_content.html.twig b/application/src/Resources/FOSUserBundle/views/Registration/register_content.html.twig index ecedeb9..e3a8e9b 100644 --- a/application/src/Resources/FOSUserBundle/views/Registration/register_content.html.twig +++ b/application/src/Resources/FOSUserBundle/views/Registration/register_content.html.twig @@ -1,8 +1,8 @@ {% trans_default_domain 'FOSUserBundle' %} - +

{% trans %}register{% endtrans %}

{{ form_start(form, {'method': 'post', 'action': path('fos_user_registration_register'), 'attr': {'class': 'fos_user_registration_register'}}) }} {{ form_widget(form) }}
- +
{{ form_end(form) }} diff --git a/application/templates/user/register.html.twig b/application/templates/user/register.html.twig deleted file mode 100644 index fdb8f2a..0000000 --- a/application/templates/user/register.html.twig +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "frames/default.html.twig" %} -{% block title %} -{% trans %}register{% endtrans %} -{% endblock %} -{% block content %} -

{% trans %}register{% endtrans %}

-{{ form_start(form) }} -{{ form_widget(form) }} - -{{ form_end(form) }} -{% endblock %}