Add status, mastered to Game

This commit is contained in:
2025-02-04 20:09:05 +01:00
parent b2b69339b3
commit b22e185d47
7 changed files with 193 additions and 1 deletions

View File

@ -0,0 +1,16 @@
<div class="relative ml-3">
<span class="rounded-xl w-2 h-2 absolute -left-3 top-2
{% if status == "u" %}
bg-gray-500
{% elif status == "p" %}
bg-orange-400
{% elif status == "f" %}
bg-green-500
{% elif status == "a" %}
bg-red-500
{% elif status == "r" %}
bg-purple-500
{% endif %}
">&nbsp;</span>
{{ slot }}
</div>

View File

@ -52,6 +52,18 @@
{{ playrange }}
</c-popover>
</div>
<div class="mb-6 text-slate-400">
<div class="flex gap-2 items-center">
<span class="uppercase font-bold text-slate-300">Status</span>
<c-gamestatus :status="game.status">
{{ game.get_status_display }}
</c-gamestatus>
</div>
<div class="flex gap-2 items-center">
<span class="uppercase font-bold text-slate-300">Platform</span>
<span>{{ game.platform }}</span>
</div>
</div>
<div class="inline-flex rounded-md shadow-sm mb-3" role="group">
<a href="{% url 'edit_game' game.id %}">
<button type="button"