You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
2.4 KiB
56 lines
2.4 KiB
{% load static %} |
|
<!DOCTYPE html> |
|
<html lang="fr"> |
|
<head> |
|
<meta charset="UTF-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
|
<title>Connexion - CrossApp</title> |
|
<link href="{% static 'sb-admin-2/sb-admin-2.min.css' %}" rel="stylesheet"> |
|
<link href="{% static 'fontawesomefree/css/fontawesome.css' %}" rel="stylesheet"> |
|
<link href="{% static 'fontawesomefree/css/brands.css' %}" rel="stylesheet"> |
|
<link href="{% static 'fontawesomefree/css/solid.css' %}" rel="stylesheet"> |
|
<style> |
|
.label { |
|
min-width: 120px !important; |
|
display: inline-block !important; |
|
text-align: center !important; |
|
} |
|
</style> |
|
</head> |
|
<body class="bg-gradient-primary"> |
|
|
|
<div class="container"> |
|
<div class="row justify-content-center"> |
|
<div class="col-xl-6 col-lg-8 col-md-9"> |
|
<div class="card o-hidden border-0 shadow-lg my-5"> |
|
<div class="card-body p-5"> |
|
<div class="text-center mb-4"> |
|
<h1 class="h4 text-gray-900">Connexion à CrossApp</h1> |
|
</div> |
|
<form method="post"> |
|
{% csrf_token %} |
|
{{ form.non_field_errors }} |
|
<div class="form-group text-center"> |
|
<label class="label" for="{{ form.username.id_for_label }}">Login :</label> |
|
{{ form.username }} |
|
</div> |
|
<div class="form-group text-center"> |
|
<label class="label" for="{{ form.password.id_for_label }}">Mot de passe :</label> |
|
{{ form.password }} |
|
</div> |
|
<button type="submit" class="btn btn-primary btn-block">Se connecter</button> |
|
</form> |
|
{% if form.errors %} |
|
<div class="alert alert-danger mt-3">Identifiants invalides.</div> |
|
{% endif %} |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<script src="{% static 'jquery/jquery-3.6.0.min.js' %}"></script> |
|
<script src="{% static 'bootstrap/bootstrap.bundle.min.js' %}"></script> |
|
<script src="{% static 'sb-admin-2/sb-admin-2.min.js' %}"></script> |
|
</body> |
|
</html>
|
|
|