Compare commits
2 Commits
698c8966c0
...
6f1886bca2
Author | SHA1 | Date |
---|---|---|
Lukáš Kucharczyk | 6f1886bca2 | |
Lukáš Kucharczyk | 37169c4f9b |
|
@ -3207,3 +3207,7 @@ textarea:disabled:is(.dark *) {
|
|||
.\[\&_h1\]\:mb-2 h1 {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.\[\&_td\]\:last-of-type\:text-right:last-of-type td {
|
||||
text-align: right;
|
||||
}
|
||||
|
|
|
@ -229,12 +229,11 @@ def view_game(request: HttpRequest, game_id: int) -> HttpResponse:
|
|||
}
|
||||
|
||||
purchase_data: dict[str, Any] = {
|
||||
"columns": ["Name", "Type", "Date", "Price", "Actions"],
|
||||
"columns": ["Name", "Type", "Price", "Actions"],
|
||||
"rows": [
|
||||
[
|
||||
purchase.name if purchase.name else purchase.edition.name,
|
||||
purchase.get_type_display(),
|
||||
purchase.date_purchased.strftime(dateformat),
|
||||
f"{purchase.price} {purchase.price_currency}",
|
||||
render_to_string(
|
||||
"cotton/button_group.html",
|
||||
|
|
Loading…
Reference in New Issue