From ebd24722d30d1d9f48422be73c3ae8a3c50766a9 Mon Sep 17 00:00:00 2001 From: Antoine Griffard Date: Tue, 22 Dec 2020 23:43:00 +0100 Subject: [PATCH] Revert "Cont type badges (#8040)" This reverts commit 0714ebf084c19725d0f19bc8298ff27ff4d1df9f. --- .../Views/Admin/Edit.cshtml | 22 ++-- .../Views/Admin/EditPart.cshtml | 14 +-- .../Views/ContentTypeSettings.Edit.cshtml | 102 ++++++------------ .../Views/FullTextAspectSettings.Edit.cshtml | 53 ++++----- .../Views/PlacementSettings.cshtml | 2 +- .../Views/TemplateSettings.cshtml | 2 +- .../Views/WorkflowType/Edit.cshtml | 2 +- 7 files changed, 75 insertions(+), 122 deletions(-) diff --git a/src/OrchardCore.Modules/OrchardCore.ContentTypes/Views/Admin/Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.ContentTypes/Views/Admin/Edit.cshtml index 45af35bc057..1f802e8634f 100644 --- a/src/OrchardCore.Modules/OrchardCore.ContentTypes/Views/Admin/Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.ContentTypes/Views/Admin/Edit.cshtml @@ -29,6 +29,13 @@ + @if (Model.Editor.Shortcuts != null) + { +
+ @await DisplayAsync(Model.Editor.Shortcuts) +
+ } + @await DisplayAsync(Model.Editor)
@@ -46,14 +53,6 @@ @T["Remove"]
@field.DisplayName() @field.FieldDefinition.Name.CamelFriendly() - @if (!string.IsNullOrEmpty(field.DisplayMode())) - { - @field.DisplayMode() - } - @if (!string.IsNullOrEmpty(field.Editor())) - { - @field.Editor() - } @@ -101,13 +100,6 @@ @T["Add Parts"] @T["Add Named Part"] - - @if (Model.Editor.Shortcuts != null) - { -
- @await DisplayAsync(Model.Editor.Shortcuts) -
- }
diff --git a/src/OrchardCore.Modules/OrchardCore.ContentTypes/Views/Admin/EditPart.cshtml b/src/OrchardCore.Modules/OrchardCore.ContentTypes/Views/Admin/EditPart.cshtml index 8bb3784ac15..d9126dad226 100644 --- a/src/OrchardCore.Modules/OrchardCore.ContentTypes/Views/Admin/EditPart.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.ContentTypes/Views/Admin/EditPart.cshtml @@ -22,6 +22,13 @@ @T["Technical name of the part."]
+ @if (Model.Editor.Shortcuts != null) + { +
+ @await DisplayAsync(Model.Editor.Shortcuts) +
+ } + @await DisplayAsync(Model.Editor)
@@ -49,13 +56,6 @@ - - @if (Model.Editor.Shortcuts != null) - { -
- @await DisplayAsync(Model.Editor.Shortcuts) -
- }
diff --git a/src/OrchardCore.Modules/OrchardCore.ContentTypes/Views/ContentTypeSettings.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.ContentTypes/Views/ContentTypeSettings.Edit.cshtml index 8c2c7a728be..d5af6458970 100644 --- a/src/OrchardCore.Modules/OrchardCore.ContentTypes/Views/ContentTypeSettings.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.ContentTypes/Views/ContentTypeSettings.Edit.cshtml @@ -1,81 +1,49 @@ @model ContentTypeSettingsViewModel -

- - @if (Model.Creatable) - { - @T["Creatable"] - } - @if (Model.Listable) - { - @T["Listable"] - } - @if (Model.Draftable) - { - @T["Draftable"] - } - @if (Model.Versionable) - { - @T["Versionable"] - } - @if (Model.Securable) - { - @T["Securable"] - } - @if (!string.IsNullOrEmpty(Model.Stereotype)) - { - @Model.Stereotype - } -

- -
-
-
- - - @T["Determines if an instance of this content type can be created through the UI."] -
+
+
+ + + @T["Determines if an instance of this content type can be created through the UI."]
+
-
-
- - - @T["Determines if an instance of this content type can be listed through the UI."] -
+
+
+ + + @T["Determines if an instance of this content type can be listed through the UI."]
+
-
-
- - - @T["Determines if this content type supports draft versions."] -
+
+
+ + + @T["Determines if this content type supports draft versions."]
+
-
-
- - - @T["Determines if this content type supports versioning."] -
+
+
+ + + @T["Determines if this content type supports versioning."]
+
-
-
- - - @T["Determines if this content type can have custom permissions."] -
+
+
+ + + @T["Determines if this content type can have custom permissions."]
+
-
-
- - -
- @T["(Optional) The stereotype of the content type. e.g., Widget, MenuItem, ..."] +
+
+ +
+ @T["(Optional) The stereotype of the content type. e.g., Widget, MenuItem, ..."]
diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/Views/FullTextAspectSettings.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Contents/Views/FullTextAspectSettings.Edit.cshtml index 9d2dbe5ffbe..c6cfb01f617 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/Views/FullTextAspectSettings.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Contents/Views/FullTextAspectSettings.Edit.cshtml @@ -10,40 +10,33 @@ -

- -

-
-

@T["Full-text"]

- @T["The full-text content is used in search queries to find content items from free-text searches."] +

@T["Full-text"]

+@T["The full-text content is used in search queries to find content items from free-text searches."] -
-
- - - @T["Check to include the display text in the full-text content."] -
+
+
+ + + @T["Check to include the display text in the full-text content."] +
-
- - - @T["Check to include the body parts content in the full-text content."] -
+
+ + + @T["Check to include the body parts content in the full-text content."] +
-
- - - @T["Check to define a custom Liquid template generating some text to include in the full-text content."] -
+
+ + + @T["Check to define a custom Liquid template generating some text to include in the full-text content."] +
-
-
-
- - @T["Tip: Include custom fields like {{{{ Model.Content.Article.Summary.Text }}}}."] -
+
+
+
+ + @T["Tip: Include custom fields like {{{{ Model.Content.Article.Summary.Text }}}}."]
diff --git a/src/OrchardCore.Modules/OrchardCore.Placements/Views/PlacementSettings.cshtml b/src/OrchardCore.Modules/OrchardCore.Placements/Views/PlacementSettings.cshtml index d9f5dba0238..0bb633d996f 100644 --- a/src/OrchardCore.Modules/OrchardCore.Placements/Views/PlacementSettings.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Placements/Views/PlacementSettings.cshtml @@ -1,7 +1,7 @@ @model OrchardCore.Placements.ViewModels.ContentSettingsViewModel
-