From 2fb336b7457053d9209a943fdaa7c06e1ea5a4c4 Mon Sep 17 00:00:00 2001 From: Ondur Date: Wed, 28 Oct 2026 18:24:49 +0100 Subject: [PATCH] =?UTF-8?q?prihl=C3=A1=C5=A1en=C3=AD=20nutn=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Pages/Admin/CategoriEdit.razor | 5 ++++- .../Components/Pages/Admin/CategoriList.razor | 7 +++++-- .../Components/Pages/Admin/ProductEdit.razor | 5 ++++- .../Components/Pages/Admin/ProductList.razor | 5 ++++- Web-Jarmark/Web-Jarmark/jarmark.db-shm | Bin 32768 -> 32768 bytes 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/CategoriEdit.razor b/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/CategoriEdit.razor index b995ff1..86fee53 100644 --- a/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/CategoriEdit.razor +++ b/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/CategoriEdit.razor @@ -10,7 +10,10 @@ @using Web_Jarmark.Data.Models @inject ApplicationDbContext Db @inject NavigationManager Nav +@using Microsoft.AspNetCore.Authorization +@attribute [Authorize] + @(Id is null ? "Nová kategorie" : "Upravit kategorii")

@(Id is null ? "Nová kategorie" : "Upravit kategorii")

@@ -51,7 +54,7 @@ else Zrušit } - +
@code { [Parameter] public int? Id { get; set; } diff --git a/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/CategoriList.razor b/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/CategoriList.razor index 023e11e..6125e05 100644 --- a/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/CategoriList.razor +++ b/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/CategoriList.razor @@ -5,7 +5,10 @@ @using Web_Jarmark.Data.Models @inject ApplicationDbContext Db @inject NavigationManager Nav +@using Microsoft.AspNetCore.Authorization +@attribute [Authorize] + Kategorie
@@ -64,7 +67,7 @@ else } - + @code { private List? categories; private string? error; @@ -109,4 +112,4 @@ else } private record CategoryRow(int Id, string Name, string Slug, bool IsActive, int ProductCount); -} \ No newline at end of file +} diff --git a/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/ProductEdit.razor b/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/ProductEdit.razor index 78be197..ace99d1 100644 --- a/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/ProductEdit.razor +++ b/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/ProductEdit.razor @@ -7,7 +7,10 @@ @using Web_Jarmark.Data.Models @inject ApplicationDbContext Db @inject NavigationManager Nav +@using Microsoft.AspNetCore.Authorization +@attribute [Authorize] + @(Id is null ? "Nové zboží" : "Upravit zboží")

@(Id is null ? "Nové zboží" : "Upravit zboží")

@@ -86,7 +89,7 @@ else Zrušit } - +
@code { [Parameter] public int? Id { get; set; } diff --git a/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/ProductList.razor b/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/ProductList.razor index 3c0ad75..70736e7 100644 --- a/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/ProductList.razor +++ b/Web-Jarmark/Web-Jarmark/Components/Pages/Admin/ProductList.razor @@ -4,7 +4,10 @@ @using Web_Jarmark.Data @using Web_Jarmark.Data.Models @inject ApplicationDbContext Db +@using Microsoft.AspNetCore.Authorization +@attribute [Authorize] + Zboží
@@ -60,7 +63,7 @@ else } - + @code { private List? products; private string? error; diff --git a/Web-Jarmark/Web-Jarmark/jarmark.db-shm b/Web-Jarmark/Web-Jarmark/jarmark.db-shm index 6ef8a1d6c0e73eada4212dec3c51117e2487ff24..8158c1c3b9e577e5122c9bbbda4bf522ee62677b 100644 GIT binary patch delta 55 ucmZo@U}|V!;*@x#%K!!wIpqb_Cl=Mp@6_u+7GwnrPK;G%WZ&3WUk?Cu(GDm8 delta 55 vcmZo@U}|V!;*@x#%K!q56FKDtO(quAn(Wl;Ko(>L3r>txW@OpeSYHnSde;tX