templates/registration/register.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block title %}Register{% endblock %}
  3. {% block stylesheets %}
  4.     {{ parent() }}
  5.     <link rel="stylesheet" href="{{ asset('css/form/form_base.css') }}">
  6. {% endblock %}
  7. {% block body %}
  8.     <h1>Register</h1>
  9.     <div class="head">
  10.         <p>You are registering as a <strong>Student</strong></p>
  11.         <a href="{{ path('app_register_teacher') }}">Register as a teacher</a>
  12.     </div>
  13.     {{ form_start(registrationForm) }}
  14.         {{ form_row(registrationForm.firstname, {
  15.             label: 'Firstname : '
  16.         })  }}
  17.         {{ form_row(registrationForm.lastname, {
  18.             label: 'Lastname : '
  19.         }) }}
  20.         {{ form_row(registrationForm.email, {
  21.             label: 'Email : '
  22.         }) }}
  23.         {{ form_row(registrationForm.plainPassword, {
  24.             label: 'Password : '
  25.         }) }}
  26.         {{ form_row(registrationForm.agreeTerms) }}
  27.         <button type="submit" class="btn">Register</button>
  28.         {{ form_errors(registrationForm) }}
  29.     {{ form_widget(registrationForm._token) }}
  30.     {{ form_end(registrationForm, {render_rest: false}) }}
  31. {% endblock %}