From 2fc661dadedbcf2015e93391fe1874a4ae9c74ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 10 Sep 2024 14:46:10 +0200 Subject: [PATCH] re-add button titles --- games/templates/cotton/button_group_button_sm.html | 3 +++ games/views/purchase.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/games/templates/cotton/button_group_button_sm.html b/games/templates/cotton/button_group_button_sm.html index 7947127..d404cba 100644 --- a/games/templates/cotton/button_group_button_sm.html +++ b/games/templates/cotton/button_group_button_sm.html @@ -3,16 +3,19 @@ class="[&:first-of-type_button]:rounded-s-lg [&:last-of-type_button]:rounded-e-lg"> {% if color == "gray" %} {% elif color == "red" %} {% elif color == "green" %} diff --git a/games/views/purchase.py b/games/views/purchase.py index f833352..a353227 100644 --- a/games/views/purchase.py +++ b/games/views/purchase.py @@ -108,6 +108,7 @@ def list_purchases(request: HttpRequest) -> HttpResponse: "edit_purchase", args=[purchase.pk] ), "slot": Icon("edit"), + "title": "Edit", "color": "gray", }, { @@ -115,6 +116,7 @@ def list_purchases(request: HttpRequest) -> HttpResponse: "delete_purchase", args=[purchase.pk] ), "slot": Icon("delete"), + "title": "Delete", "color": "red", }, ]