From 8fb26ffd4a7e4e5d080701a60f8241b067721060 Mon Sep 17 00:00:00 2001 From: strifel Date: Sat, 29 Jun 2024 17:26:48 +0200 Subject: [PATCH] Add more group infos --- Components/Pages/GroupOverview.razor | 18 +++++++++++++++++- Components/Pages/Home.razor | 28 +++++++++++++++++----------- 2 files changed, 34 insertions(+), 12 deletions(-) diff --git a/Components/Pages/GroupOverview.razor b/Components/Pages/GroupOverview.razor index 549dab5..b7675f8 100644 --- a/Components/Pages/GroupOverview.razor +++ b/Components/Pages/GroupOverview.razor @@ -11,6 +11,8 @@ @if (Group != null) {

Group Overview: @Group?.GroupName

+ +

@Group?.Description

@@ -24,6 +26,9 @@ + @@ -37,7 +42,13 @@ @order.Food + } @@ -90,5 +101,10 @@ Loading = false; } + + private String getPrice(Order order) + { + return (order.Price / 100) + "." + System.String.Format("{0:D2}", order.Price % 100); + } } diff --git a/Components/Pages/Home.razor b/Components/Pages/Home.razor index cca4570..8980c2b 100644 --- a/Components/Pages/Home.razor +++ b/Components/Pages/Home.razor @@ -7,22 +7,28 @@ @inject NavigationManager NavigationManager -Mamp.Link +Mampf.Link -Welcome to Mamp.Link!
+Welcome to Mampf.Link!
Create a new Group here or use an link to join an existing one.

- -
- + +
+ + +
+
+ +
+
+ + +

- +
@@ -38,8 +44,8 @@ Create a new Group here or use an link to join an existing one.

Model!.GroupSlug = RandomNumberGenerator.GetHexString(10); context.Add(Model); context.SaveChanges(); - + NavigationManager.NavigateTo($"/group/{Model!.GroupSlug}?admin={Model!.AdminCode}"); } -} +} \ No newline at end of file
Price + Actions +
- @(order.Price / 100).@(System.String.Format("{0:D2}", order.Price % 100))€ + @getPrice(order)€ + + @if (Group.PaypalUsername != null) + { + 💳 + }