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 @@
- {{ isEditMode ? 'Edit' : 'Create' }} EventType
+ {{ isEditMode ? 'Frissítés' : 'Létrehozás' }} Esemény típus
-
Cancel
+
Vissza
- {{ isEditMode ? 'Update' : 'Create' }}
+ {{ isEditMode ? 'Frissítés' : 'Létrehozás' }}
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 @@
- id
- name
- description
- color
- Actions
+ Azonosító
+ Név
+ Leírás
+ Szín
+ Férőhelyek
+ Mű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 @@
1" class="flex justify-center mt-4">
- «
- Page {{ response.meta.currentPage }} of {{ response.meta.totalPages }}
- Oldal {{ response.meta.currentPage }} of {{ response.meta.totalPages }}
+ »
@@ -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,