From 40934dcacf10b8580a2fa705ddda4a36eb10cb09 Mon Sep 17 00:00:00 2001 From: support Date: Fri, 25 Aug 2023 19:33:54 +0200 Subject: [PATCH] Add data-val-required to input due to FluentValidator's lack of client-side validation support --- .../Views/Account/ChangePassword.cshtml | 6 ++-- .../Views/Account/DeleteAccount.cshtml | 2 +- src/Web/Grand.Web/Views/Account/Info.cshtml | 24 ++++++++-------- src/Web/Grand.Web/Views/Account/Login.cshtml | 6 ++-- .../Account/Partials/CreateSubAccount.cshtml | 8 +++--- .../Account/Partials/EditSubAccount.cshtml | 6 ++-- .../Views/Account/PasswordRecovery.cshtml | 2 +- .../Account/PasswordRecoveryConfirm.cshtml | 4 +-- .../Grand.Web/Views/Account/Register.cshtml | 28 +++++++++---------- .../Components/VendorContact/Default.cshtml | 8 +++--- src/Web/Grand.Web/Views/Contact/Index.cshtml | 8 +++--- .../MerchandiseReturn.cshtml | 2 +- .../Views/Order/Partials/AddOrderNote.cshtml | 2 +- .../ProductEmailAFriend/Default.cshtml | 8 ++++-- .../Partials/AskQuestionOnProduct.cshtml | 8 ++++-- .../Partials/CreateOrUpdateAddress.cshtml | 24 ++++++++-------- .../Grand.Web/Views/Vendor/ApplyVendor.cshtml | 6 ++-- src/Web/Grand.Web/Views/Vendor/Info.cshtml | 5 ++-- .../CreateOrUpdateVendorAddress.cshtml | 16 +++++------ .../Components/EmailWishlist/Default.cshtml | 6 ++-- .../Views/Wishlist/EmailWishlist.cshtml | 8 ++++-- 21 files changed, 99 insertions(+), 88 deletions(-) diff --git a/src/Web/Grand.Web/Views/Account/ChangePassword.cshtml b/src/Web/Grand.Web/Views/Account/ChangePassword.cshtml index 4d5fac996..da24010c8 100644 --- a/src/Web/Grand.Web/Views/Account/ChangePassword.cshtml +++ b/src/Web/Grand.Web/Views/Account/ChangePassword.cshtml @@ -31,7 +31,7 @@
- + {{ errors[0] }} @@ -39,7 +39,7 @@
- + {{ errors[0] }} @@ -47,7 +47,7 @@
- + {{ errors[0] }} diff --git a/src/Web/Grand.Web/Views/Account/DeleteAccount.cshtml b/src/Web/Grand.Web/Views/Account/DeleteAccount.cshtml index db810778f..48bda0512 100644 --- a/src/Web/Grand.Web/Views/Account/DeleteAccount.cshtml +++ b/src/Web/Grand.Web/Views/Account/DeleteAccount.cshtml @@ -23,7 +23,7 @@
- + {{ errors[0] }} diff --git a/src/Web/Grand.Web/Views/Account/Info.cshtml b/src/Web/Grand.Web/Views/Account/Info.cshtml index c4e453070..8f3a829fc 100644 --- a/src/Web/Grand.Web/Views/Account/Info.cshtml +++ b/src/Web/Grand.Web/Views/Account/Info.cshtml @@ -113,7 +113,7 @@ * - + {{ errors[0] }} @@ -131,7 +131,7 @@ * - + {{ errors[0] }} @@ -178,7 +178,7 @@ * - + {{ errors[0] }} @@ -194,7 +194,7 @@ * - + {{ errors[0] }} @@ -232,7 +232,7 @@ * - + {{ errors[0] }} @@ -280,7 +280,7 @@ * - + {{ errors[0] }} @@ -302,7 +302,7 @@ * - + {{ errors[0] }} @@ -324,7 +324,7 @@ * - + {{ errors[0] }} @@ -346,7 +346,7 @@ * - + {{ errors[0] }} @@ -368,7 +368,7 @@ * - {{ errors[0] }} @@ -432,7 +432,7 @@ * - + {{ errors[0] }} @@ -455,7 +455,7 @@ * - + {{ errors[0] }} diff --git a/src/Web/Grand.Web/Views/Account/Login.cshtml b/src/Web/Grand.Web/Views/Account/Login.cshtml index 39174eaa4..88540d4eb 100644 --- a/src/Web/Grand.Web/Views/Account/Login.cshtml +++ b/src/Web/Grand.Web/Views/Account/Login.cshtml @@ -34,7 +34,7 @@
- + {{ errors[0] }} @@ -49,7 +49,7 @@
- + {{ errors[0] }} @@ -63,7 +63,7 @@
- + {{ errors[0] }} diff --git a/src/Web/Grand.Web/Views/Account/Partials/CreateSubAccount.cshtml b/src/Web/Grand.Web/Views/Account/Partials/CreateSubAccount.cshtml index 53a196403..922112660 100644 --- a/src/Web/Grand.Web/Views/Account/Partials/CreateSubAccount.cshtml +++ b/src/Web/Grand.Web/Views/Account/Partials/CreateSubAccount.cshtml @@ -6,7 +6,7 @@ * - + {{ errors[0] }} @@ -15,7 +15,7 @@ * - + {{ errors[0] }} @@ -24,7 +24,7 @@ * - + {{ errors[0] }} @@ -33,7 +33,7 @@ * - + {{ errors[0] }} diff --git a/src/Web/Grand.Web/Views/Account/Partials/EditSubAccount.cshtml b/src/Web/Grand.Web/Views/Account/Partials/EditSubAccount.cshtml index 7fd50c0f2..880fa48a0 100644 --- a/src/Web/Grand.Web/Views/Account/Partials/EditSubAccount.cshtml +++ b/src/Web/Grand.Web/Views/Account/Partials/EditSubAccount.cshtml @@ -6,7 +6,7 @@ * - + {{ errors[0] }} @@ -15,7 +15,7 @@ * - + {{ errors[0] }} @@ -24,7 +24,7 @@ * - + {{ errors[0] }} diff --git a/src/Web/Grand.Web/Views/Account/PasswordRecovery.cshtml b/src/Web/Grand.Web/Views/Account/PasswordRecovery.cshtml index 4d04ea285..f34ba6588 100644 --- a/src/Web/Grand.Web/Views/Account/PasswordRecovery.cshtml +++ b/src/Web/Grand.Web/Views/Account/PasswordRecovery.cshtml @@ -23,7 +23,7 @@
- + {{ errors[0] }} diff --git a/src/Web/Grand.Web/Views/Account/PasswordRecoveryConfirm.cshtml b/src/Web/Grand.Web/Views/Account/PasswordRecoveryConfirm.cshtml index 8aae842a5..77b949239 100644 --- a/src/Web/Grand.Web/Views/Account/PasswordRecoveryConfirm.cshtml +++ b/src/Web/Grand.Web/Views/Account/PasswordRecoveryConfirm.cshtml @@ -19,12 +19,12 @@
- +
- +
diff --git a/src/Web/Grand.Web/Views/Account/Register.cshtml b/src/Web/Grand.Web/Views/Account/Register.cshtml index 595d7f921..50109f417 100644 --- a/src/Web/Grand.Web/Views/Account/Register.cshtml +++ b/src/Web/Grand.Web/Views/Account/Register.cshtml @@ -104,7 +104,7 @@ * - + {{ errors[0] }} @@ -122,7 +122,7 @@ * - + {{ errors[0] }} @@ -164,7 +164,7 @@ * - + {{ errors[0] }} @@ -179,7 +179,7 @@
- + {{ errors[0] }} @@ -206,7 +206,7 @@ * - + {{ errors[0] }} @@ -257,7 +257,7 @@ * - + {{ errors[0] }} @@ -279,7 +279,7 @@ * - + {{ errors[0] }} @@ -301,7 +301,7 @@ * - + {{ errors[0] }} @@ -323,7 +323,7 @@ * - + {{ errors[0] }} @@ -345,7 +345,7 @@ * - {{ errors[0] }} @@ -396,7 +396,7 @@ * - + {{ errors[0] }} @@ -418,7 +418,7 @@ * - + {{ errors[0] }} @@ -470,7 +470,7 @@
- + {{ errors[0] }} @@ -478,7 +478,7 @@
- + {{ errors[0] }} diff --git a/src/Web/Grand.Web/Views/Catalog/Components/VendorContact/Default.cshtml b/src/Web/Grand.Web/Views/Catalog/Components/VendorContact/Default.cshtml index 4ee9c31f7..bf81df0cf 100644 --- a/src/Web/Grand.Web/Views/Catalog/Components/VendorContact/Default.cshtml +++ b/src/Web/Grand.Web/Views/Catalog/Components/VendorContact/Default.cshtml @@ -21,7 +21,7 @@ else * - + {{ errors[0] }} @@ -30,7 +30,7 @@ else * - + {{ errors[0] }} @@ -41,7 +41,7 @@ else * - + {{ errors[0] }} @@ -51,7 +51,7 @@ else * - + {{ errors[0] }} diff --git a/src/Web/Grand.Web/Views/Contact/Index.cshtml b/src/Web/Grand.Web/Views/Contact/Index.cshtml index c844405ac..ed1a99a9a 100644 --- a/src/Web/Grand.Web/Views/Contact/Index.cshtml +++ b/src/Web/Grand.Web/Views/Contact/Index.cshtml @@ -27,7 +27,7 @@ * - + {{ errors[0] }} @@ -36,7 +36,7 @@ * - + {{ errors[0] }} @@ -47,7 +47,7 @@ * - + {{ errors[0] }} @@ -57,7 +57,7 @@ * - + {{ errors[0] }} diff --git a/src/Web/Grand.Web/Views/MerchandiseReturn/MerchandiseReturn.cshtml b/src/Web/Grand.Web/Views/MerchandiseReturn/MerchandiseReturn.cshtml index 2ef1ea3c5..552d2850a 100644 --- a/src/Web/Grand.Web/Views/MerchandiseReturn/MerchandiseReturn.cshtml +++ b/src/Web/Grand.Web/Views/MerchandiseReturn/MerchandiseReturn.cshtml @@ -192,7 +192,7 @@ * - + {{ errors[0] }}
diff --git a/src/Web/Grand.Web/Views/Order/Partials/AddOrderNote.cshtml b/src/Web/Grand.Web/Views/Order/Partials/AddOrderNote.cshtml index 2c4aa3da8..4b6db75af 100644 --- a/src/Web/Grand.Web/Views/Order/Partials/AddOrderNote.cshtml +++ b/src/Web/Grand.Web/Views/Order/Partials/AddOrderNote.cshtml @@ -11,7 +11,7 @@
- + {{ errors[0] }}
diff --git a/src/Web/Grand.Web/Views/Product/Components/ProductEmailAFriend/Default.cshtml b/src/Web/Grand.Web/Views/Product/Components/ProductEmailAFriend/Default.cshtml index 8d3d383c3..788f65e49 100644 --- a/src/Web/Grand.Web/Views/Product/Components/ProductEmailAFriend/Default.cshtml +++ b/src/Web/Grand.Web/Views/Product/Components/ProductEmailAFriend/Default.cshtml @@ -30,7 +30,8 @@
- + {{ errors[0] }} @@ -38,7 +39,8 @@
- + {{ errors[0] }} @@ -46,7 +48,7 @@
- + {{ errors[0] }} diff --git a/src/Web/Grand.Web/Views/Product/Partials/AskQuestionOnProduct.cshtml b/src/Web/Grand.Web/Views/Product/Partials/AskQuestionOnProduct.cshtml index d4ada68b3..774bf0406 100644 --- a/src/Web/Grand.Web/Views/Product/Partials/AskQuestionOnProduct.cshtml +++ b/src/Web/Grand.Web/Views/Product/Partials/AskQuestionOnProduct.cshtml @@ -5,7 +5,8 @@
- + {{ errors[0] }} @@ -13,7 +14,8 @@
- + {{ errors[0] }} @@ -25,7 +27,7 @@
- + {{ errors[0] }} diff --git a/src/Web/Grand.Web/Views/Shared/Partials/CreateOrUpdateAddress.cshtml b/src/Web/Grand.Web/Views/Shared/Partials/CreateOrUpdateAddress.cshtml index c252ad338..8ba56242d 100644 --- a/src/Web/Grand.Web/Views/Shared/Partials/CreateOrUpdateAddress.cshtml +++ b/src/Web/Grand.Web/Views/Shared/Partials/CreateOrUpdateAddress.cshtml @@ -53,7 +53,7 @@ * - + {{ errors[0] }}
@@ -61,7 +61,7 @@ * - + {{ errors[0] }}
@@ -69,7 +69,7 @@ * - + {{ errors[0] }}
@@ -81,7 +81,7 @@ * - + {{ errors[0] }} } @@ -100,7 +100,7 @@ * - + {{ errors[0] }} } @@ -117,7 +117,7 @@ * - {{ errors[0] }} @@ -144,7 +144,7 @@ * - + {{ errors[0] }} } @@ -164,7 +164,7 @@ * - + {{ errors[0] }} } @@ -183,7 +183,7 @@ * - + {{ errors[0] }} } @@ -202,7 +202,7 @@ * - + {{ errors[0] }} } @@ -221,7 +221,7 @@ * - + {{ errors[0] }} } @@ -240,7 +240,7 @@ * - + {{ errors[0] }} } diff --git a/src/Web/Grand.Web/Views/Vendor/ApplyVendor.cshtml b/src/Web/Grand.Web/Views/Vendor/ApplyVendor.cshtml index 05b51f1d9..cf5f99ded 100644 --- a/src/Web/Grand.Web/Views/Vendor/ApplyVendor.cshtml +++ b/src/Web/Grand.Web/Views/Vendor/ApplyVendor.cshtml @@ -27,7 +27,8 @@ * - + {{ errors[0] }} @@ -36,7 +37,8 @@ * - + {{ errors[0] }} diff --git a/src/Web/Grand.Web/Views/Vendor/Info.cshtml b/src/Web/Grand.Web/Views/Vendor/Info.cshtml index b5c8d4ef2..577637ce1 100644 --- a/src/Web/Grand.Web/Views/Vendor/Info.cshtml +++ b/src/Web/Grand.Web/Views/Vendor/Info.cshtml @@ -20,7 +20,7 @@ * - + {{ errors[0] }} @@ -29,7 +29,8 @@ * - + {{ errors[0] }} diff --git a/src/Web/Grand.Web/Views/Vendor/Partials/CreateOrUpdateVendorAddress.cshtml b/src/Web/Grand.Web/Views/Vendor/Partials/CreateOrUpdateVendorAddress.cshtml index eb19293b6..aebc0c2eb 100644 --- a/src/Web/Grand.Web/Views/Vendor/Partials/CreateOrUpdateVendorAddress.cshtml +++ b/src/Web/Grand.Web/Views/Vendor/Partials/CreateOrUpdateVendorAddress.cshtml @@ -50,7 +50,7 @@ * - + {{ errors[0] }} @@ -69,7 +69,7 @@ * - {{ errors[0] }} @@ -99,7 +99,7 @@ * - + {{ errors[0] }} @@ -120,7 +120,7 @@ * - + {{ errors[0] }} @@ -141,7 +141,7 @@ * - + {{ errors[0] }} @@ -162,7 +162,7 @@ * - + {{ errors[0] }} @@ -183,7 +183,7 @@ * - + {{ errors[0] }} @@ -204,7 +204,7 @@ * - + {{ errors[0] }} diff --git a/src/Web/Grand.Web/Views/Wishlist/Components/EmailWishlist/Default.cshtml b/src/Web/Grand.Web/Views/Wishlist/Components/EmailWishlist/Default.cshtml index 479d67031..9896c2e83 100644 --- a/src/Web/Grand.Web/Views/Wishlist/Components/EmailWishlist/Default.cshtml +++ b/src/Web/Grand.Web/Views/Wishlist/Components/EmailWishlist/Default.cshtml @@ -35,7 +35,8 @@ * - + {{ errors[0] }} @@ -44,7 +45,8 @@ * - + {{ errors[0] }} diff --git a/src/Web/Grand.Web/Views/Wishlist/EmailWishlist.cshtml b/src/Web/Grand.Web/Views/Wishlist/EmailWishlist.cshtml index 943ff5c93..8f9b80eb8 100644 --- a/src/Web/Grand.Web/Views/Wishlist/EmailWishlist.cshtml +++ b/src/Web/Grand.Web/Views/Wishlist/EmailWishlist.cshtml @@ -24,7 +24,8 @@ * - + {{ errors[0] }} @@ -33,7 +34,8 @@ * - + {{ errors[0] }} @@ -42,7 +44,7 @@ * - + {{ errors[0] }}