From c1a6d3887298a6f290f8eaca4f9095b51d01a68c Mon Sep 17 00:00:00 2001 From: Berkan Sasmaz Date: Mon, 17 May 2021 11:47:22 +0300 Subject: [PATCH] Add validation to form fields --- src/EventHub.Web/Pages/Events/Edit.cshtml | 16 ++++++++++++++-- src/EventHub.Web/Pages/Events/New.cshtml | 16 ++++++++++++++-- src/EventHub.Web/Pages/Organizations/Edit.cshtml | 15 ++++++++++++--- src/EventHub.Web/Pages/Organizations/New.cshtml | 14 ++++++++++++-- 4 files changed, 52 insertions(+), 9 deletions(-) diff --git a/src/EventHub.Web/Pages/Events/Edit.cshtml b/src/EventHub.Web/Pages/Events/Edit.cshtml index 64aa5ed..956e17c 100644 --- a/src/EventHub.Web/Pages/Events/Edit.cshtml +++ b/src/EventHub.Web/Pages/Events/Edit.cshtml @@ -1,4 +1,4 @@ -@page "/Event/Edit/{url}" +@page "/event/edit/{url}" @inject IHtmlLocalizer L @using EventHub.Localization @using Microsoft.AspNetCore.Mvc.Localization @@ -25,30 +25,35 @@ +
+
+
+
- + +
@@ -72,6 +77,7 @@

For horizontal format 600x300 sized upload images.

+ @@ -82,34 +88,40 @@ +
+
+
+
+
diff --git a/src/EventHub.Web/Pages/Events/New.cshtml b/src/EventHub.Web/Pages/Events/New.cshtml index c3874e5..6a3396f 100644 --- a/src/EventHub.Web/Pages/Events/New.cshtml +++ b/src/EventHub.Web/Pages/Events/New.cshtml @@ -36,30 +36,35 @@ else +
+
+
+
- + +
@@ -73,7 +78,8 @@ else

For horizontal format 600x300 sized upload images.

- + +
@@ -84,34 +90,40 @@ else +
+
+
+
+
diff --git a/src/EventHub.Web/Pages/Organizations/Edit.cshtml b/src/EventHub.Web/Pages/Organizations/Edit.cshtml index 0290d50..84ce693 100644 --- a/src/EventHub.Web/Pages/Organizations/Edit.cshtml +++ b/src/EventHub.Web/Pages/Organizations/Edit.cshtml @@ -1,4 +1,4 @@ -@page "/Organization/Edit/{name}" +@page "/organization/edit/{name}" @inject IHtmlLocalizer L @using EventHub.Localization @using EventHub.Organizations @@ -42,6 +42,7 @@

Photo size should be max @(OrganizationConsts.MaxProfilePictureFileSize / (1024 * 1024)) MB.

+ @@ -51,6 +52,7 @@
+
@@ -58,13 +60,15 @@
+
- + +
@@ -72,35 +76,40 @@
+
+
+
+
+
diff --git a/src/EventHub.Web/Pages/Organizations/New.cshtml b/src/EventHub.Web/Pages/Organizations/New.cshtml index e7c58d4..0af82e2 100644 --- a/src/EventHub.Web/Pages/Organizations/New.cshtml +++ b/src/EventHub.Web/Pages/Organizations/New.cshtml @@ -35,6 +35,7 @@

Photo size should be max @(OrganizationConsts.MaxProfilePictureFileSize / (1024 * 1024)) MB.

+ @@ -44,6 +45,7 @@
+
@@ -51,53 +53,61 @@
+
- + +
+
+
+
+
+
+