fix nginx conf + improve ui

This commit is contained in:
rmanach
2023-09-20 19:41:19 +02:00
parent b3989a401a
commit 53c54e9553
17 changed files with 263 additions and 134 deletions
+22 -12
View File
@@ -1,17 +1,27 @@
{% extends 'base.html' %}
{% block title %} login {% endblock %}
{% block title %} Login {% endblock %}
{% block content %}
{% if not user.is_authenticated %}
<h2>log in</h2>
<form method="post">
{% csrf_token %}
{{ form.username.label_tag }} {{ form.username }}
{{ form.password.label_tag }} {{ form.password }}
<button type="submit">log in</button>
</form>
{% else %}
<div>you're already log in !</div>
{% endif %}
<div class="row justify-content-md-center">
<div class="col-lg-4 col-md-4 col-sm-6">
{% if not user.is_authenticated %}
<h2>Log in</h2>
<form method="post">
{% csrf_token %}
<div class="mb-3">
<label for="id_username" class="form-label">Username</label>
<input type="username" class="form-control" id="id_username" name="username" required="">
</div>
<div class="mb-3">
<label for="id_password" class="form-label">Password</label>
<input type="password" id="id_password" name="password" class="form-control" required="">
</div>
<button type="submit" class="btn btn-success">Log in</button>
</form>
{% else %}
<h4 style="text-align: center;">You're already log in !</h4>
{% endif %}
</div>
</div>
{% endblock %}