{% extends '/user/layout_user.twig' %}
{% block title %}S'inscrire{% endblock %}
{% block body %}


{% if error is defined %}
		<div class="alert alert-danger" role="alert">
  			{{error|nl2br}}
		</div>
	{% endif %}

  
<form action="/users/register" class="row g-3" method="POST">
  <h4>S'inscrire</h4>
  <div class="col-12">
    <label for="name">Nom</label>
    <input class="form-control" type="text" id="username" name="username" placeholder="Nom" required>
  </div>
  <div class="col-12">
    <label for="email">Email</label>
    <input class="form-control" type="email" id="email" name="email" placeholder="Email" required>
  </div>
  <div class="col-12">
    <label for="password">Mot de passe</label>
    <input class="form-control" type="password" id="password" name="password" placeholder="Mot de passe" required>
  </div>
  <div class="col-12">
    <button type="submit" class="btn btn-dark float-end">S'inscrire</button>
  </div>
</form>
{% endblock %}