Compare commits

..

2 Commits

Author SHA1 Message Date
Lukáš Kucharczyk 6f1886bca2
finish purchase from list
Django CI/CD / test (push) Successful in 1m23s Details
Django CI/CD / build-and-push (push) Successful in 2m4s Details
2024-09-10 15:04:18 +02:00
Lukáš Kucharczyk 37169c4f9b
align last column to the right 2024-09-10 15:00:27 +02:00
2 changed files with 5 additions and 2 deletions

View File

@ -3207,3 +3207,7 @@ textarea:disabled:is(.dark *) {
.\[\&_h1\]\:mb-2 h1 { .\[\&_h1\]\:mb-2 h1 {
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
.\[\&_td\]\:last-of-type\:text-right:last-of-type td {
text-align: right;
}

View File

@ -229,12 +229,11 @@ def view_game(request: HttpRequest, game_id: int) -> HttpResponse:
} }
purchase_data: dict[str, Any] = { purchase_data: dict[str, Any] = {
"columns": ["Name", "Type", "Date", "Price", "Actions"], "columns": ["Name", "Type", "Price", "Actions"],
"rows": [ "rows": [
[ [
purchase.name if purchase.name else purchase.edition.name, purchase.name if purchase.name else purchase.edition.name,
purchase.get_type_display(), purchase.get_type_display(),
purchase.date_purchased.strftime(dateformat),
f"{purchase.price} {purchase.price_currency}", f"{purchase.price} {purchase.price_currency}",
render_to_string( render_to_string(
"cotton/button_group.html", "cotton/button_group.html",