Implement group management features and update templates for improved navigation

This commit is contained in:
Edgar P. Burkhart 2025-06-15 09:56:08 +02:00
parent f3e914aed8
commit 088bb52c07
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
9 changed files with 80 additions and 37 deletions

View file

@ -0,0 +1,11 @@
{% for error in form.non_field_errors %}<article class="message error">{{ error }}</article>{% endfor %}
<form method="post" {% if action %}action="{% url action %}"{% endif %}>
{% csrf_token %}
<fieldset role="group">
{% for field in form %}{{ field }}{% endfor %}
<input type="submit" {% if submit %}value="{{ submit }}"{% endif %}>
{% if field.errors %}
<small id="{{ field.errors.field_id }}_error" class="form-error">{{ field.errors|join:", " }}</small>
{% endif %}
</fieldset>
</form>

View file

@ -4,7 +4,7 @@
<i class="ri-music-ai-fill big-logo"></i>
<h1>Musik</h1>
<p>
<a href="{% url "login" %}" role="button"><i class="ri-play-fill"></i> Jouer</a>
<a href="{% url "home" %}" role="button"><i class="ri-play-fill"></i> Jouer</a>
</p>
</main>
<footer>

View file

@ -1,11 +1,4 @@
{% extends "base.html" %}
{% block content %}
{% include "game/home.html" %}
{% endblock content %}
{% block body %}
{% if user.is_authenticated %}
{{ block.super }}
{% else %}
{% include "hero.html" %}
{% endif %}
{% include "hero.html" %}
{% endblock body %}