Optimized register function for bootstrap

This commit is contained in:
Kevin Frantz 2018-09-13 02:31:56 +02:00
parent 629ed13c51
commit 8f119338f0
2 changed files with 2 additions and 13 deletions

View File

@ -1,8 +1,8 @@
{% trans_default_domain 'FOSUserBundle' %}
<h1>{% trans %}register{% endtrans %}</h1>
{{ form_start(form, {'method': 'post', 'action': path('fos_user_registration_register'), 'attr': {'class': 'fos_user_registration_register'}}) }}
{{ form_widget(form) }}
<div>
<input type="submit" value="{{ 'registration.submit'|trans }}" />
<input type="submit" class="btn btn-primary" value="{{ 'registration.submit'|trans }}" />
</div>
{{ form_end(form) }}

View File

@ -1,11 +0,0 @@
{% extends "frames/default.html.twig" %}
{% block title %}
{% trans %}register{% endtrans %}
{% endblock %}
{% block content %}
<h1>{% trans %}register{% endtrans %}</h1>
{{ form_start(form) }}
{{ form_widget(form) }}
<button type="submit" class="btn btn-primary">{% trans %}register{% endtrans %}</button>
{{ form_end(form) }}
{% endblock %}