{% load static %}

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
    <link rel="stylesheet" href="{% static 'style.css' %}">

    <title>Document</title>
</head>
<body>
    <div class="container">
        {{ form.errors }}
        <form action="{% url 'register' %}?next={{ request.GET.next }}" method="post">
            {% csrf_token %}
            <label for="username">Логин:</label>
            <input id="username" type="text" name="username">
            <label for="password">Пароль</label>
            <input type="password" name="password1" id="password">
            <label for="password_confirm">Подтверждение</label>
            <input type="password" name="password2" id="password_confirm">
            <label for="first_name">Имя</label>
            <input type="text" name="first_name" id="first_name">
            <label for="last_name">Фамилия</label>
            <input type="text" name="last_name" id="last_name">
            <label for="email">Почта</label>
            <input type="email" name="email" id="email">

            <input type="submit" value="Регистрация">
        </form>
    </div>
</body>
</html>