From b649e2b97309633b8f6a350e43075719fcc99888 Mon Sep 17 00:00:00 2001 From: Hisham Bin Ateya Date: Tue, 7 Jun 2022 12:25:05 +0300 Subject: [PATCH 1/3] Use form-select class for select element instead of form-control --- .../Views/MultiTextField.Edit.cshtml | 2 +- .../Views/NumericField-Select.Edit.cshtml | 2 +- .../Views/TextField-PredefinedList.Edit.cshtml | 2 +- .../Views/TextFieldHeaderDisplaySettings.Edit.cshtml | 2 +- .../Views/Items/ContentTypesSitemapSource.Edit.cshtml | 4 ++-- .../OrchardCore.Email/Views/SmtpSettings.Edit.cshtml | 4 ++-- .../Views/Items/ButtonPart.Fields.Edit.cshtml | 2 +- .../Views/Items/FormPart.Fields.Edit.cshtml | 4 ++-- .../Views/Items/InputPart.Fields.Edit.cshtml | 2 +- .../OrchardCore.Media/Views/MediaProfiles/Create.cshtml | 8 ++++---- .../OrchardCore.Media/Views/MediaProfiles/Edit.cshtml | 8 ++++---- .../Views/CustomPathSitemapSource.Edit.cshtml | 4 ++-- .../OrchardCore.Taxonomies/Views/TaxonomyPart.Edit.cshtml | 2 +- .../OrchardCore.Tenants/Views/Admin/Create.cshtml | 2 +- .../OrchardCore.Tenants/Views/Admin/Edit.cshtml | 6 +++--- 15 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/OrchardCore.Modules/OrchardCore.ContentFields/Views/MultiTextField.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.ContentFields/Views/MultiTextField.Edit.cshtml index ea5f51bcdb1..2c59095842d 100644 --- a/src/OrchardCore.Modules/OrchardCore.ContentFields/Views/MultiTextField.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.ContentFields/Views/MultiTextField.Edit.cshtml @@ -15,7 +15,7 @@
-
@if (!String.IsNullOrEmpty(settings.Hint)) diff --git a/src/OrchardCore.Modules/OrchardCore.ContentFields/Views/NumericField-Select.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.ContentFields/Views/NumericField-Select.Edit.cshtml index 8bb45e4997f..2a1faba5c59 100644 --- a/src/OrchardCore.Modules/OrchardCore.ContentFields/Views/NumericField-Select.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.ContentFields/Views/NumericField-Select.Edit.cshtml @@ -12,7 +12,7 @@
- @if (!settings.Required) { diff --git a/src/OrchardCore.Modules/OrchardCore.ContentFields/Views/TextField-PredefinedList.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.ContentFields/Views/TextField-PredefinedList.Edit.cshtml index edb563b6647..0452ac98451 100644 --- a/src/OrchardCore.Modules/OrchardCore.ContentFields/Views/TextField-PredefinedList.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.ContentFields/Views/TextField-PredefinedList.Edit.cshtml @@ -35,7 +35,7 @@ @if (listSettings.Editor == EditorOption.Dropdown) { - + } @if (!String.IsNullOrEmpty(settings.Hint)) diff --git a/src/OrchardCore.Modules/OrchardCore.ContentFields/Views/TextFieldHeaderDisplaySettings.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.ContentFields/Views/TextFieldHeaderDisplaySettings.Edit.cshtml index a71c522625f..46c0bd9d050 100644 --- a/src/OrchardCore.Modules/OrchardCore.ContentFields/Views/TextFieldHeaderDisplaySettings.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.ContentFields/Views/TextFieldHeaderDisplaySettings.Edit.cshtml @@ -2,7 +2,7 @@
- diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Items/ContentTypesSitemapSource.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Items/ContentTypesSitemapSource.Edit.cshtml index 0c026877660..34a1e91a33e 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Items/ContentTypesSitemapSource.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Items/ContentTypesSitemapSource.Edit.cshtml @@ -24,12 +24,12 @@
- + @T["The default frequency with which these content types are likely to change."]
- diff --git a/src/OrchardCore.Modules/OrchardCore.Email/Views/SmtpSettings.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Email/Views/SmtpSettings.Edit.cshtml index edd8ddab3a5..f70f54dc5e1 100644 --- a/src/OrchardCore.Modules/OrchardCore.Email/Views/SmtpSettings.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Email/Views/SmtpSettings.Edit.cshtml @@ -12,7 +12,7 @@
- @@ -79,7 +79,7 @@
- diff --git a/src/OrchardCore.Modules/OrchardCore.Forms/Views/Items/ButtonPart.Fields.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Forms/Views/Items/ButtonPart.Fields.Edit.cshtml index d35ea5a9412..bea1f425295 100644 --- a/src/OrchardCore.Modules/OrchardCore.Forms/Views/Items/ButtonPart.Fields.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Forms/Views/Items/ButtonPart.Fields.Edit.cshtml @@ -9,7 +9,7 @@
- diff --git a/src/OrchardCore.Modules/OrchardCore.Forms/Views/Items/FormPart.Fields.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Forms/Views/Items/FormPart.Fields.Edit.cshtml index a063c7ebd65..84d32febf85 100644 --- a/src/OrchardCore.Modules/OrchardCore.Forms/Views/Items/FormPart.Fields.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Forms/Views/Items/FormPart.Fields.Edit.cshtml @@ -9,7 +9,7 @@
- @@ -18,7 +18,7 @@
- diff --git a/src/OrchardCore.Modules/OrchardCore.Forms/Views/Items/InputPart.Fields.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Forms/Views/Items/InputPart.Fields.Edit.cshtml index d46bd02b1cf..3810e2b0de8 100644 --- a/src/OrchardCore.Modules/OrchardCore.Forms/Views/Items/InputPart.Fields.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Forms/Views/Items/InputPart.Fields.Edit.cshtml @@ -3,7 +3,7 @@
- diff --git a/src/OrchardCore.Modules/OrchardCore.Media/Views/MediaProfiles/Create.cshtml b/src/OrchardCore.Modules/OrchardCore.Media/Views/MediaProfiles/Create.cshtml index 71451e1daf1..c74b8232db7 100644 --- a/src/OrchardCore.Modules/OrchardCore.Media/Views/MediaProfiles/Create.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Media/Views/MediaProfiles/Create.cshtml @@ -29,7 +29,7 @@
- + @@ -42,7 +42,7 @@
- + @@ -55,7 +55,7 @@
- +
@@ -77,7 +77,7 @@
- +
diff --git a/src/OrchardCore.Modules/OrchardCore.Media/Views/MediaProfiles/Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Media/Views/MediaProfiles/Edit.cshtml index 29b1d4c34d7..98c53e79b89 100644 --- a/src/OrchardCore.Modules/OrchardCore.Media/Views/MediaProfiles/Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Media/Views/MediaProfiles/Edit.cshtml @@ -30,7 +30,7 @@
- + @@ -43,7 +43,7 @@
- + @@ -56,7 +56,7 @@
- +
@@ -78,7 +78,7 @@
- +
diff --git a/src/OrchardCore.Modules/OrchardCore.Sitemaps/Views/CustomPathSitemapSource.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Sitemaps/Views/CustomPathSitemapSource.Edit.cshtml index f079411ff71..e9d94596553 100644 --- a/src/OrchardCore.Modules/OrchardCore.Sitemaps/Views/CustomPathSitemapSource.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Sitemaps/Views/CustomPathSitemapSource.Edit.cshtml @@ -20,12 +20,12 @@
- + @T["The default frequency with which this path is likely to change."]
- diff --git a/src/OrchardCore.Modules/OrchardCore.Taxonomies/Views/TaxonomyPart.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Taxonomies/Views/TaxonomyPart.Edit.cshtml index b9db69f3208..d554a7ba83d 100644 --- a/src/OrchardCore.Modules/OrchardCore.Taxonomies/Views/TaxonomyPart.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Taxonomies/Views/TaxonomyPart.Edit.cshtml @@ -22,7 +22,7 @@ }
-
diff --git a/src/OrchardCore.Modules/OrchardCore.Tenants/Views/Admin/Create.cshtml b/src/OrchardCore.Modules/OrchardCore.Tenants/Views/Admin/Create.cshtml index 71084ec5381..7437ada2cd0 100644 --- a/src/OrchardCore.Modules/OrchardCore.Tenants/Views/Admin/Create.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Tenants/Views/Admin/Create.cshtml @@ -104,7 +104,7 @@
- +
} diff --git a/src/OrchardCore.Modules/OrchardCore.Tenants/Views/Admin/Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Tenants/Views/Admin/Edit.cshtml index 1aa53d82a61..dfd28c71202 100644 --- a/src/OrchardCore.Modules/OrchardCore.Tenants/Views/Admin/Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Tenants/Views/Admin/Edit.cshtml @@ -49,7 +49,7 @@
- @foreach (var recipe in Model.Recipes) @@ -71,7 +71,7 @@ {
- @foreach (var provider in DatabaseProviders) { @@ -108,7 +108,7 @@
- +
} From 3fa914562157a6119606cebb59c3132aba372455 Mon Sep 17 00:00:00 2001 From: Hisham Bin Ateya Date: Tue, 7 Jun 2022 12:33:09 +0300 Subject: [PATCH 2/3] Fix select part --- .../OrchardCore.Forms/Views/Items/SelectPart.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OrchardCore.Modules/OrchardCore.Forms/Views/Items/SelectPart.cshtml b/src/OrchardCore.Modules/OrchardCore.Forms/Views/Items/SelectPart.cshtml index 61193a1ff6b..f9dfe11cdd9 100644 --- a/src/OrchardCore.Modules/OrchardCore.Forms/Views/Items/SelectPart.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Forms/Views/Items/SelectPart.cshtml @@ -7,7 +7,7 @@ var fieldName = formInputElementPart.Name; var fieldId = !string.IsNullOrEmpty(elementId) ? elementId : !string.IsNullOrEmpty(fieldName) ? Html.GenerateIdFromName(fieldName) : default(string); var fieldValue = Model.Value.DefaultValue; - var fieldClass = "form-control"; + var fieldClass = "form-select"; if (ViewData.ModelState.TryGetValue(fieldName, out var fieldEntry)) { From 63b99c57633c65fa9818e5ce417eb971fdf4535f Mon Sep 17 00:00:00 2001 From: Hisham Bin Ateya Date: Tue, 7 Jun 2022 12:48:15 +0300 Subject: [PATCH 3/3] Fix typo --- .../OrchardCore.Media/Views/MediaProfiles/Edit.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OrchardCore.Modules/OrchardCore.Media/Views/MediaProfiles/Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Media/Views/MediaProfiles/Edit.cshtml index 98c53e79b89..28b81f90e5b 100644 --- a/src/OrchardCore.Modules/OrchardCore.Media/Views/MediaProfiles/Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Media/Views/MediaProfiles/Edit.cshtml @@ -43,7 +43,7 @@
- +