Compare commits

..

5 commits

Author SHA1 Message Date
sinavir ec014351f5 feat(inventory): Add edit button 2024-07-04 20:48:10 +02:00
sinavir c01ed7cb47 style(pre-commit): Add hook
Python:
- black
- isort (black profile)
- ruff

Nix:
- statix
- nixfmt-rfc-style
- deadnix
2024-07-04 20:47:46 +02:00
sinavir fe0dc46988 fest(inventory): Improve game image names generation 2024-07-04 20:47:46 +02:00
sinavir e050c45530 feat(FORK): Rework settings to be nicer for djangonix 2024-07-04 20:47:46 +02:00
sinavir 3a730251d4 feat(qrcode): Automatic generation of qrcodes 2024-07-04 20:47:46 +02:00

View file

@ -30,9 +30,16 @@
<a class="button" href="{% url "inventory:game_loan" game.slug %}">
Emprunter ou rendre « {{ game.title }} »
</a>
{% if user.is_staff %}
<a class="button" href="{% url "inventory:qrcode_borrow" game.slug %}">
Générer un QR-code
</a>
{% endif %}
{% if perms.inventory.change_game %}
<a class="button" href="{% url "admin:inventory_game_change" game.id %}">
Éditer l'outil
</a>
{% endif %}
<h2 id="description">Description</h2>
{{ object.description|linebreaks }}