Compare commits

..

2 Commits

Author SHA1 Message Date
Lukáš Kucharczyk d98758f751
add backend functionality
Django CI/CD / test (push) Successful in 1m4s Details
Django CI/CD / build-and-push (push) Has been skipped Details
2024-09-03 15:25:57 +02:00
Lukáš Kucharczyk 904a19e65a
add links to add a new X to: game, edition, purchase, session, device, platform 2024-09-03 15:25:14 +02:00
3 changed files with 3 additions and 15 deletions

View File

@ -3048,12 +3048,6 @@ textarea:disabled:is(.dark *) {
}
}
@media (min-width: 1280px) {
.xl\:max-w-screen-xl {
max-width: 1280px;
}
}
@media (min-width: 1536px) {
.\32xl\:max-w-screen-2xl {
max-width: 1536px;

View File

@ -4,7 +4,7 @@
{{ title }}
{% endblock title %}
{% block content %}
<div class="2xl:max-w-screen-2xl xl:max-w-screen-xl md:max-w-screen-md sm:max-w-screen-sm self-center">
<c-simple-table :columns=data.columns :rows=data.rows :page_obj=page_obj :elided_page_range=elided_page_range />
<div class="2xl:max-w-screen-2xl md:max-w-screen-md sm:max-w-screen-sm self-center">
<c-simple-table :columns=data.columns :rows=data.rows :page_obj=page_obj :elided_page_range=elided_page_range :header_action=data.header_action />
</div>
{% endblock content %}

View File

@ -45,7 +45,6 @@ def list_purchases(request: HttpRequest) -> HttpResponse:
"header_action": A([], Button([], "Add purchase"), url="add_purchase"),
"columns": [
"Name",
"Type",
"Platform",
"Price",
"Currency",
@ -69,13 +68,8 @@ def list_purchases(request: HttpRequest) -> HttpResponse:
),
),
],
truncate_with_popover(
purchase.edition.game.name
if purchase.type == "game"
else f"{purchase.edition.game.name} ({purchase.name})"
truncate_with_popover(purchase.edition.game.name),
),
),
purchase.get_type_display(),
purchase.platform,
purchase.price,
purchase.price_currency,