From b01c8d84dafa5f1e3cdca2ced272b1c167344018 Mon Sep 17 00:00:00 2001 From: LD-Reborn Date: Sun, 26 Oct 2025 08:23:00 +0100 Subject: [PATCH] Cleaned redundant js from Locations view, added missing localization to Locations view --- src/Resources/Views.Home.Locations.de.resx | 25 +++++++- src/Resources/Views.Home.Locations.en.resx | 19 ++++++ src/Views/Home/Locations.cshtml | 74 +++++++--------------- 3 files changed, 65 insertions(+), 53 deletions(-) create mode 100644 src/Resources/Views.Home.Locations.en.resx diff --git a/src/Resources/Views.Home.Locations.de.resx b/src/Resources/Views.Home.Locations.de.resx index c8db175..329daac 100644 --- a/src/Resources/Views.Home.Locations.de.resx +++ b/src/Resources/Views.Home.Locations.de.resx @@ -22,10 +22,10 @@ Ort ID - + Ort Name - + Raumnummer @@ -61,4 +61,25 @@ Erstellung des Ortes ist fehlgeschlagen + + Ort anpassen + + + Abbrechen + + + Sitzplatz + + + Erstellen + + + Sind Sie sich sicher, dass Sie den Ort {0} löschen möchten? + + + Ja, löschen + + + Löschen bestätigen + diff --git a/src/Resources/Views.Home.Locations.en.resx b/src/Resources/Views.Home.Locations.en.resx new file mode 100644 index 0000000..b2f1f12 --- /dev/null +++ b/src/Resources/Views.Home.Locations.en.resx @@ -0,0 +1,19 @@ + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, ... + + + System.Resources.ResXResourceWriter, System.Windows.Forms, ... + + + + Are you sure you want to delete the location {0}? + + diff --git a/src/Views/Home/Locations.cshtml b/src/Views/Home/Locations.cshtml index 73ddb16..b432a01 100644 --- a/src/Views/Home/Locations.cshtml +++ b/src/Views/Home/Locations.cshtml @@ -1,3 +1,4 @@ +@using Microsoft.AspNetCore.Html @using Microsoft.AspNetCore.Mvc.Localization @using Berufsschule_HAM.Models @model LocationsIndexViewModel @@ -21,8 +22,8 @@ @T["Location ID"] - @T["Location name"] - @T["Room number"] + @T["Location Name"] + @T["Room Number"] @T["Seat"] @T["Action"] @@ -68,52 +69,24 @@ - - -