From 3f4c0720e1e3421431e7baa20882a4a4512a7fab Mon Sep 17 00:00:00 2001 From: ivar Date: Sun, 19 Oct 2025 23:41:23 +0200 Subject: Initial --- src/Pages/App/ReservationForm.cshtml | 88 ++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 src/Pages/App/ReservationForm.cshtml (limited to 'src/Pages/App/ReservationForm.cshtml') diff --git a/src/Pages/App/ReservationForm.cshtml b/src/Pages/App/ReservationForm.cshtml new file mode 100644 index 0000000..87df337 --- /dev/null +++ b/src/Pages/App/ReservationForm.cshtml @@ -0,0 +1,88 @@ +@page +@using IOL.Fagprove.Data +@using IOL.Fagprove.Utilities +@model IOL.Fagprove.Pages.App.ReservationForm +@{ + ViewData["Title"] = "Ny reservasjon"; +} + +
+

1. Velg hytten du vil reservere

+
+
+ @foreach (var field in StaticData.CabinFields.Where(field => Model.Cabins.Any(c => c.CategoryId == field.Id))) + { +

@field.Name

+
+ @foreach (var cabin in Model.Cabins.Where(c => c.CategoryId == field.Id)) + { +
+
+
+ @cabin.Name + +
+
+ @if (cabin.Capacity != null) + { + Sengeplasser: @cabin.Capacity + } + @if (cabin.Price.IsPresent()) + { + Pris per natt: @cabin.Price + } +
+ @if (cabin.Description.IsPresent()) + { +
@cabin.Description
+ } +
+
+ +
+
+ } +
+ } +
+
+ +
+
+ +@section Scripts +{ + +} -- cgit v1.3