mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-09 14:07:25 +01:00
Optimized register function for bootstrap
This commit is contained in:
parent
629ed13c51
commit
8f119338f0
@ -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) }}
|
||||
|
@ -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 %}
|
Loading…
Reference in New Issue
Block a user