templates/registration/register.html.twig line 1
{% extends 'base.html.twig' %}
{% block title %}Register{% endblock %}
{% block stylesheets %}
{{ parent() }}
<link rel="stylesheet" href="{{ asset('css/form/form_base.css') }}">
{% endblock %}
{% block body %}
<h1>Register</h1>
<div class="head">
<p>You are registering as a <strong>Student</strong></p>
<a href="{{ path('app_register_teacher') }}">Register as a teacher</a>
</div>
{{ form_start(registrationForm) }}
{{ form_row(registrationForm.firstname, {
label: 'Firstname : '
}) }}
{{ form_row(registrationForm.lastname, {
label: 'Lastname : '
}) }}
{{ form_row(registrationForm.email, {
label: 'Email : '
}) }}
{{ form_row(registrationForm.plainPassword, {
label: 'Password : '
}) }}
{{ form_row(registrationForm.agreeTerms) }}
<button type="submit" class="btn">Register</button>
{{ form_errors(registrationForm) }}
{{ form_widget(registrationForm._token) }}
{{ form_end(registrationForm, {render_rest: false}) }}
{% endblock %}