Implement user registration and entity

This commit is contained in:
Tim
2021-12-29 01:33:48 +01:00
parent ce7bd7a3eb
commit 89d1a3d6a7
13 changed files with 327 additions and 7 deletions

View File

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}Welcome!{% endblock %}</title>
<title>{% block title %}IceCold!{% endblock %}</title>
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
{# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
@ -17,7 +17,7 @@
</head>
<body>
{% include 'base/navbar.html.twig' %}
<main>
<main style="padding-top: 64px;">
{% block body %}
{% endblock %}
</main>

View File

@ -0,0 +1,17 @@
{% extends 'base/base.html.twig' %}
{% block body %}
<div class="container">
<h1>Register</h1>
{{ form_start(registrationForm) }}
{{ form_row(registrationForm.username) }}
{{ form_row(registrationForm.plainPassword, {
label: 'Password'
}) }}
{{ form_row(registrationForm.agreeTerms) }}
<button type="submit" class="btn">Register</button>
{{ form_end(registrationForm) }}
</div>
{% endblock %}