<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Register</title>
		<script
			src="https://kit.fontawesome.com/1d71f92e0a.js"
			crossorigin="anonymous"
		></script>
		<!-- Bootstrap CSS -->
		<link
			href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css"
			rel="stylesheet"
			integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1"
			crossorigin="anonymous"
		/>
		{% load static %}
		<link rel="stylesheet" href="{% static 'css/navbar.css' %}" />
	</head>
	<body>
		{% load i18n %} {% include "navbar.html" %} {% load crispy_forms_tags %} 
		{% block content %}

		<div class="row justify-content-center">
			<div class="col-md-6 col-sm-12">
				<h1 class="text-center pt-5">{% trans "Register" %}</h1>
				<p class="text-center pt-2">{% blocktranslate %}Already have an account? Then please {% endblocktranslate %}<a href="{% url 'users:login' %}">{% blocktranslate %}log in</a>.{% endblocktranslate %}</p>
				{% for message in messages %}
				<div class="alert alert-danger" role="alert">{{message}}</div>
				{% endfor %}
			</div>
		</div>

		<div class="row justify-content-center">
			<div class="col-md-6 col-sm-12">
				<form
					class="signup"
					id="register_form"
					method="post"
					action="{% url 'users:register' %}"
				>
					{% csrf_token %} {{ form|crispy }}
					<div class="d-grid gap-2">
						<button class="mt-3 btn btn-primary btn-block" type="submit">
							{% trans "Register" %} &raquo;
						</button>
					</div>
				</form>
			</div>
		</div>
		{% endblock %}
	</body>
</html>
