mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-06-01 23:42:50 +02:00
32 lines
1.1 KiB
HTML
32 lines
1.1 KiB
HTML
{% extends "common/base.html" %}
|
|
{% load django_bootstrap5 %}
|
|
{% load character_extras %}
|
|
|
|
{% block title %}{{ party.name }} · Groupe{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1>{{ party.name }}</h1>
|
|
<p>MJ : {{ party.game_master.get_full_name|default:party.game_master.username }}</p>
|
|
<p>
|
|
<a href="{% url "party:reset_stats" pk=party.pk %}" id="reset-stats">Réinitialiser les stats</a>
|
|
</p>
|
|
<h2>Personnages</h2>
|
|
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4 g-4">
|
|
{% for character in party.characters.all %}
|
|
{% include "character/snippets/characters_list/character_card.html" %}
|
|
{% empty %}
|
|
<p>Aucun...</p>
|
|
{% endfor %}
|
|
</div>
|
|
{% with party.invited_characters.all as invites %}
|
|
{% if invites %}
|
|
<h2>Invités</h2>
|
|
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4 g-4">
|
|
{% for character in invites %}
|
|
{% include "character/snippets/characters_list/character_card.html" %}
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% endblock %}
|