diff --git a/templates/account/register.html.twig b/templates/account/register.html.twig index a6ef55a..ad2c430 100644 --- a/templates/account/register.html.twig +++ b/templates/account/register.html.twig @@ -1,10 +1,38 @@ - - - Rater Login - - - body - {{ form(form) }} - - +{% extends 'account/auth_layout.html.twig' %} +{% block title %}Register — Rater{% endblock %} + +{% block form %} +

Create an account

+ + {{ form_start(form, {attr: {class: 'flex flex-col gap-4'}}) }} + +
+ Email + {{ form_widget(form.email, {attr: {class: 'input w-full', placeholder: 'you@example.com', autocomplete: 'email'}}) }} + {{ form_errors(form.email) }} +
+ +
+ Password + {{ form_widget(form.password, {attr: {class: 'input w-full', placeholder: '••••••••', autocomplete: 'new-password'}}) }} + {{ form_errors(form.password) }} +
+ +
+ Confirm password + {{ form_widget(form.password_again, {attr: {class: 'input w-full', placeholder: '••••••••', autocomplete: 'new-password'}}) }} + {{ form_errors(form.password_again) }} +
+ + {{ form_widget(form._token) }} + + {{ form_widget(form.register, {attr: {class: 'btn btn-primary w-full mt-2'}}) }} + + {{ form_end(form) }} + +

+ Already have an account? + Log in +

+{% endblock %}