From e6ecefb8d9ad355fe9614c96cc10040308dff355 Mon Sep 17 00:00:00 2001 From: Schneider Roland Date: Fri, 2 Jan 2026 17:12:49 +0100 Subject: [PATCH] feat: Add Hungarian translations for event type management, introduce `max_slot_count` column, and adjust post-submission navigation. --- .../generic-table-search-form.html | 7 ++-- .../event-type-form.component.html | 6 ++-- .../event-type-form.component.ts | 2 +- .../event-type-list.component.html | 34 +++++++++---------- .../event-type-table.component.ts | 15 +++++--- 5 files changed, 35 insertions(+), 29 deletions(-) diff --git a/admin/src/app/components/generic-table/generic-table-search-form/generic-table-search-form.html b/admin/src/app/components/generic-table/generic-table-search-form/generic-table-search-form.html index 5448258..671212f 100644 --- a/admin/src/app/components/generic-table/generic-table-search-form/generic-table-search-form.html +++ b/admin/src/app/components/generic-table/generic-table-search-form/generic-table-search-form.html @@ -1,6 +1,7 @@
-
-
+
+ +
-
+ \ No newline at end of file diff --git a/admin/src/app/features/event-type/components/event-type-form/event-type-form.component.html b/admin/src/app/features/event-type/components/event-type-form/event-type-form.component.html index b9fb984..a5f0290 100644 --- a/admin/src/app/features/event-type/components/event-type-form/event-type-form.component.html +++ b/admin/src/app/features/event-type/components/event-type-form/event-type-form.component.html @@ -5,7 +5,7 @@

- {{ isEditMode ? 'Edit' : 'Create' }} EventType + {{ isEditMode ? 'Frissítés' : 'Létrehozás' }} Esemény típus

@@ -28,9 +28,9 @@
- Cancel + Vissza
diff --git a/admin/src/app/features/event-type/components/event-type-form/event-type-form.component.ts b/admin/src/app/features/event-type/components/event-type-form/event-type-form.component.ts index 8fa4107..1ee986a 100644 --- a/admin/src/app/features/event-type/components/event-type-form/event-type-form.component.ts +++ b/admin/src/app/features/event-type/components/event-type-form/event-type-form.component.ts @@ -105,7 +105,7 @@ export class EventTypeFormComponent implements OnInit { } action$.subscribe({ - next: () => this.router.navigate(['/event-type']), + next: () => this.router.navigate(['/event-type/table']), error: (err) => console.error('Failed to save event-type', err) }); } diff --git a/admin/src/app/features/event-type/components/event-type-list/event-type-list.component.html b/admin/src/app/features/event-type/components/event-type-list/event-type-list.component.html index d9c6935..a65c465 100644 --- a/admin/src/app/features/event-type/components/event-type-list/event-type-list.component.html +++ b/admin/src/app/features/event-type/components/event-type-list/event-type-list.component.html @@ -13,19 +13,21 @@ - - - - - + + + + + + - - - - + + + + + - +
idnamedescriptioncolorActionsAzonosítóNévLeírásSzínFérőhelyekMűveletek
{{ item.id }}{{ item.name }}{{ item.description }}{{ item.color }}{{ item.id }}{{ item.name }}{{ item.description }}{{ item.color }}{{ item.max_slot_count }} Részletek Módosítás @@ -33,7 +35,7 @@
No event-type found.Nem található eseménytípusok.
@@ -42,14 +44,10 @@
- - - +
@@ -60,4 +58,4 @@
- + \ No newline at end of file diff --git a/admin/src/app/features/event-type/components/event-type-table/event-type-table.component.ts b/admin/src/app/features/event-type/components/event-type-table/event-type-table.component.ts index f67cc4f..9a1b984 100644 --- a/admin/src/app/features/event-type/components/event-type-table/event-type-table.component.ts +++ b/admin/src/app/features/event-type/components/event-type-table/event-type-table.component.ts @@ -60,7 +60,7 @@ export class EventTypeTableComponent implements OnInit { columns: [ { attribute: 'name', - headerCell: true, + headerCell: { value: 'Név' }, valueCell: { styleClass: ctx => 'w-[1%]', value: item => item?.name, @@ -68,14 +68,14 @@ export class EventTypeTableComponent implements OnInit { }, { attribute: 'description', - headerCell: true, + headerCell: { value: 'Leírás' }, valueCell: { value: item => item?.description, }, }, { attribute: 'color', - headerCell: true, + headerCell: { value: 'Szín' }, valueCell: { styleClass: ctx => 'w-[1%]', value: item => item?.color, @@ -85,9 +85,16 @@ export class EventTypeTableComponent implements OnInit { } }, }, + { + attribute: 'max_slot_count', + headerCell: { value: 'Férőhelyek' }, + valueCell: { + value: item => item?.max_slot_count, + }, + }, { attribute: 'actions', - headerCell: { value: 'Actions' }, + headerCell: { value: 'Műveletek' }, valueCell: { styleClass: ctx => 'w-[1%]', component: GenericActionColumn,