Add 404 and 500 page

This commit is contained in:
gabatxo1312 2026-01-30 10:33:25 +01:00
commit 09a7bdfc76
No known key found for this signature in database
5 changed files with 60 additions and 8 deletions

8
templates/404.html Normal file
View file

@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block main %}
<div class="mt-4 text-center">
<h1>Oops ! This page does not exist</h1>
<h2 class="fst-italic">404 NOT FOUND</h2>
<a href="/" class="mt-3 btn btn-info">Back to home</a>
</div>
{% endblock %}

View file

@ -1 +1,12 @@
Error
{% extends "base.html" %}
{% block main %}
<div class="mt-4 text-center">
<h1>Oops ! An Error occured</h1>
<div class="alert alert-danger">
{% for error in state.errors %}
<p>{{ error }}</p>
{% endfor %}
</div>
<a href="/" class="mt-3 btn btn-info">Back to home</a>
</div>
{% endblock %}

View file

@ -14,7 +14,7 @@ o{% import "components/inputs.html" as form_helpers %}
</div>
<div class="col-md-2">
<input type="submit" value="Create user" class="btn btn-success">
<input type="submit" value="Edit user" class="btn btn-success">
</div>
</div>
</form>