diff --git a/src/Orchard.Web/Core/Contents/Views/Admin/CreatableTypeList.cshtml b/src/Orchard.Web/Core/Contents/Views/Admin/CreatableTypeList.cshtml index 55d6b76e3..618a64ab2 100644 --- a/src/Orchard.Web/Core/Contents/Views/Admin/CreatableTypeList.cshtml +++ b/src/Orchard.Web/Core/Contents/Views/Admin/CreatableTypeList.cshtml @@ -1,4 +1,5 @@ -

@Html.TitleForPage(T("Create New Content").ToString())

+@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Create New Content").ToString()), "5"); + @foreach (var type in Model.ContentTypes) {

@Html.ActionLink((string)type.DisplayName, "Create", new { Area = "Contents", Id = (string)type.Name })

} \ No newline at end of file diff --git a/src/Orchard.Web/Core/Contents/Views/Admin/Create.cshtml b/src/Orchard.Web/Core/Contents/Views/Admin/Create.cshtml index 6964cbd90..086ac38b1 100644 --- a/src/Orchard.Web/Core/Contents/Views/Admin/Create.cshtml +++ b/src/Orchard.Web/Core/Contents/Views/Admin/Create.cshtml @@ -1,10 +1,12 @@ @{ var typeDisplayName = Model.ContentItem.TypeDefinition.DisplayName; var pageTitle = T("Create {0}", typeDisplayName); + + WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: (string)pageTitle.Text), "5"); } -

@Html.TitleForPage((string)pageTitle.Text)

+ @using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary() - // Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type +// Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type @Display(Model) } \ No newline at end of file diff --git a/src/Orchard.Web/Core/Contents/Views/Admin/Edit.cshtml b/src/Orchard.Web/Core/Contents/Views/Admin/Edit.cshtml index cf8cb8b92..f389d6fd3 100644 --- a/src/Orchard.Web/Core/Contents/Views/Admin/Edit.cshtml +++ b/src/Orchard.Web/Core/Contents/Views/Admin/Edit.cshtml @@ -4,8 +4,10 @@ if (!string.IsNullOrWhiteSpace(typeDisplayName)) { pageTitle = T("Edit {0}", typeDisplayName); } + + WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: pageTitle), "5"); } -

@Html.TitleForPage(pageTitle)

+ @using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary() // Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type diff --git a/src/Orchard.Web/Core/Contents/Views/Admin/List.cshtml b/src/Orchard.Web/Core/Contents/Views/Admin/List.cshtml index 4253ff3fe..0b2b1a811 100644 --- a/src/Orchard.Web/Core/Contents/Views/Admin/List.cshtml +++ b/src/Orchard.Web/Core/Contents/Views/Admin/List.cshtml @@ -7,8 +7,10 @@ pageTitle = T("Manage {0} Content", typeDisplayName); createLinkText = T("Create New {0}", typeDisplayName); } + + WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: pageTitle), "5"); } -

@Html.TitleForPage(pageTitle)

+
@Html.ActionLink(createLinkText.Text, "Create", new { Area = "Contents", Id = (string)Model.Options.SelectedFilter }, new { @class = "button primaryAction" })
diff --git a/src/Orchard.Web/Core/Dashboard/Views/Admin/Index.cshtml b/src/Orchard.Web/Core/Dashboard/Views/Admin/Index.cshtml index a5ae3b4a9..e8dd08e7e 100644 --- a/src/Orchard.Web/Core/Dashboard/Views/Admin/Index.cshtml +++ b/src/Orchard.Web/Core/Dashboard/Views/Admin/Index.cshtml @@ -1,6 +1,7 @@ @model dynamic -

@Html.TitleForPage(T("Welcome to Orchard").ToString())

+@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Welcome to Orchard").ToString()), "5"); +

@T("This is the place where you can manage your web site, its appearance and its contents. Please take a moment to explore the different menu items on the left of the screen to familiarize yourself with the features of the application. For example, try to change the theme through the “Manage Themes” menu entry. You can also create new pages and manage existing ones through the “Manage Pages” menu entry or create blogs through “Manage Blogs”.")

@T("Have fun!")
@T("The Orchard Team")

diff --git a/src/Orchard.Web/Core/Navigation/Views/Admin/Index.cshtml b/src/Orchard.Web/Core/Navigation/Views/Admin/Index.cshtml index 3ad0e2484..a7157b39a 100644 --- a/src/Orchard.Web/Core/Navigation/Views/Admin/Index.cshtml +++ b/src/Orchard.Web/Core/Navigation/Views/Admin/Index.cshtml @@ -3,7 +3,8 @@ @using Orchard.Core.Navigation.Models; @using Orchard.Core.Navigation.ViewModels; -

@Html.TitleForPage(T("Manage Main Menu").ToString())

+@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Main Menu").ToString()), "5"); + @using (Html.BeginFormAntiForgeryPost()) { diff --git a/src/Orchard.Web/Core/Reports/Views/Admin/Display.cshtml b/src/Orchard.Web/Core/Reports/Views/Admin/Display.cshtml index e946f9ae8..cb6bc3ea1 100644 --- a/src/Orchard.Web/Core/Reports/Views/Admin/Display.cshtml +++ b/src/Orchard.Web/Core/Reports/Views/Admin/Display.cshtml @@ -1,6 +1,8 @@ @model DisplayReportViewModel @using Orchard.Core.Reports.ViewModels; -

@Html.TitleForPage(T("Display Report").ToString())

+ +@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Display Report").ToString()), "5"); + @using(Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary()
diff --git a/src/Orchard.Web/Core/Reports/Views/Admin/Index.cshtml b/src/Orchard.Web/Core/Reports/Views/Admin/Index.cshtml index 714d94c49..1eb3b24a3 100644 --- a/src/Orchard.Web/Core/Reports/Views/Admin/Index.cshtml +++ b/src/Orchard.Web/Core/Reports/Views/Admin/Index.cshtml @@ -1,6 +1,8 @@ @model ReportsAdminIndexViewModel @using Orchard.Core.Reports.ViewModels; -

@Html.TitleForPage(T("Manage Reports").ToString())

+ +@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Reports").ToString()), "5"); + @using(Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary()
diff --git a/src/Orchard.Web/Core/Settings/Views/Admin/Culture.cshtml b/src/Orchard.Web/Core/Settings/Views/Admin/Culture.cshtml index 14f10d332..143465cc7 100644 --- a/src/Orchard.Web/Core/Settings/Views/Admin/Culture.cshtml +++ b/src/Orchard.Web/Core/Settings/Views/Admin/Culture.cshtml @@ -1,6 +1,8 @@ @model SiteCulturesViewModel @using Orchard.Core.Settings.ViewModels; -

@Html.TitleForPage(T("Cultures").ToString())

+ +@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Cultures").ToString()), "5"); +

@T("Available Cultures")

@using (Html.BeginFormAntiForgeryPost("AddCulture")) { diff --git a/src/Orchard.Web/Core/Settings/Views/Admin/Index.cshtml b/src/Orchard.Web/Core/Settings/Views/Admin/Index.cshtml index b1504ef3c..a29d1d70b 100644 --- a/src/Orchard.Web/Core/Settings/Views/Admin/Index.cshtml +++ b/src/Orchard.Web/Core/Settings/Views/Admin/Index.cshtml @@ -1,4 +1,5 @@ -

@Html.TitleForPage(T("Manage Settings").ToString())

+@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Settings").ToString()), "5"); + @using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary() @Display(Model.Content) diff --git a/src/Orchard.Web/Modules/Orchard.Blogs/Orchard.Blogs.csproj b/src/Orchard.Web/Modules/Orchard.Blogs/Orchard.Blogs.csproj index a2d862d84..215532f54 100644 --- a/src/Orchard.Web/Modules/Orchard.Blogs/Orchard.Blogs.csproj +++ b/src/Orchard.Web/Modules/Orchard.Blogs/Orchard.Blogs.csproj @@ -109,12 +109,8 @@ - - Designer - - - Designer - + + diff --git a/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogAdmin/Create.cshtml b/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogAdmin/Create.cshtml index 927dcb9ba..591156119 100644 --- a/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogAdmin/Create.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogAdmin/Create.cshtml @@ -1,4 +1,5 @@ -

@Html.TitleForPage(T("Create New Blog").ToString())

+@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Create New Blog").ToString()), "5"); + @using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary() // Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type diff --git a/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogAdmin/Edit.cshtml b/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogAdmin/Edit.cshtml index cf5924fec..4446bb5e3 100644 --- a/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogAdmin/Edit.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogAdmin/Edit.cshtml @@ -1,4 +1,5 @@ -

@Html.TitleForPage(T("Blog Properties").ToString())

+@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Blog Properties").ToString()), "5"); + @using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary() // Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type diff --git a/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogAdmin/List.cshtml b/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogAdmin/List.cshtml index 5ce61d2d0..1747b4ec4 100644 --- a/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogAdmin/List.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogAdmin/List.cshtml @@ -1,7 +1,9 @@ @using Orchard.Blogs.Extensions; @using Orchard.Core.Contents.ViewModels; @using Orchard.Utility.Extensions; -

@Html.TitleForPage(T("Manage Blogs").ToString())

+ +@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Blogs").ToString()), "5"); + @if (Model.ContentItems.Items.Count > 0) { using(Html.BeginFormAntiForgeryPost(Url.Action("List", "Admin", new { area = "Contents", id = "" }))) { diff --git a/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogPostAdmin/Create.cshtml b/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogPostAdmin/Create.cshtml index 7a54cee20..0a725d166 100644 --- a/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogPostAdmin/Create.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogPostAdmin/Create.cshtml @@ -1,4 +1,5 @@ -

@Html.TitleForPage(T("Create New Blog Post").ToString())

+@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Create New Blog Post").ToString()), "5"); + @using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary() // Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type diff --git a/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogPostAdmin/Edit.cshtml b/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogPostAdmin/Edit.cshtml index a6fde554b..0c759a886 100644 --- a/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogPostAdmin/Edit.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Blogs/Views/BlogPostAdmin/Edit.cshtml @@ -1,4 +1,5 @@ -

@Html.TitleForPage(T("Edit Blog Post").ToString())

+@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Edit Blog Post").ToString()), "5"); + @using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary() // Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type diff --git a/src/Orchard.Web/Modules/Orchard.Blogs/Views/Content-Blog.DetailAdmin.cshtml b/src/Orchard.Web/Modules/Orchard.Blogs/Views/Content-Blog.DetailAdmin.cshtml index b702306f0..5231dadf5 100644 --- a/src/Orchard.Web/Modules/Orchard.Blogs/Views/Content-Blog.DetailAdmin.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Blogs/Views/Content-Blog.DetailAdmin.cshtml @@ -1,6 +1,8 @@ @using Orchard.Blogs.Extensions; @using Orchard.Blogs.Models; -

@Html.TitleForPage((string)Model.Title)

+ +@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: (string)Model.Title), "5"); + @Display(Model.Header) @Display(Model.Actions) diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Details.cshtml b/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Details.cshtml index 71528b0e9..ffb32d4da 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Details.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Details.cshtml @@ -2,7 +2,8 @@ @using Orchard.Comments.Models; @using Orchard.Comments.ViewModels; -

@Html.TitleForPage(T("Comments for {0}", Model.DisplayNameForCommentedItem).ToString())

+@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Comments for {0}", Model.DisplayNameForCommentedItem).ToString()), "5"); +
@if (Model.CommentsClosedOnItem) { using (Html.BeginFormAntiForgeryPost(Url.Action("Enable", new { commentedItemId = Model.CommentedItemId }), FormMethod.Post, new { @class = "inline" })) { diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Edit.cshtml b/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Edit.cshtml index c58a37736..b90f58a09 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Edit.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Edit.cshtml @@ -1,7 +1,8 @@ @model Orchard.Comments.ViewModels.CommentsEditViewModel @using Orchard.Comments.Models; -

@Html.TitleForPage(T("Edit Comment").ToString())

+@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Edit Comment").ToString()), "5"); + @using(Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary()
diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Index.cshtml b/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Index.cshtml index 5fbfbfa3e..f0061ea39 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Index.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Comments/Views/Admin/Index.cshtml @@ -7,7 +7,9 @@ Style.Require("Admin"); Script.Require("ShapesBase"); } -

@Html.TitleForPage(T("Manage Comments").ToString())

+ +@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Comments").ToString()), "5"); + @using(Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary()
diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/AddFieldTo.cshtml b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/AddFieldTo.cshtml index 7cfd0f6b2..af2f411a5 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/AddFieldTo.cshtml +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/AddFieldTo.cshtml @@ -1,6 +1,8 @@ @model Orchard.ContentTypes.ViewModels.AddFieldViewModel @{ Style.Require("ContentTypesAdmin"); } -

@Html.TitleForPage(T("Add New Field To \"{0}\"", Model.Part.DisplayName).ToString())

+ +@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Add New Field To \"{0}\"", Model.Part.DisplayName).ToString()), "5"); + @using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary()
diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/AddPartsTo.cshtml b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/AddPartsTo.cshtml index ca6f5f08e..1a708cfc5 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/AddPartsTo.cshtml +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/AddPartsTo.cshtml @@ -1,6 +1,8 @@ @model Orchard.ContentTypes.ViewModels.AddPartsViewModel @{ Style.Require("ContentTypesAdmin"); } -

@Html.TitleForPage(T("Add Parts To \"{0}\"", Model.Type.DisplayName).ToString())

+ +@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Add Parts To \"{0}\"", Model.Type.DisplayName).ToString()), "5"); + @using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary()
diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/Create.cshtml b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/Create.cshtml index 1ab25ecf9..8d5b36359 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/Create.cshtml +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/Create.cshtml @@ -1,6 +1,8 @@ @model Orchard.ContentTypes.ViewModels.CreateTypeViewModel -

@Html.TitleForPage(T("New Content Type").ToString())

@using (Html.BeginFormAntiForgeryPost()) { +@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("New Content Type").ToString()), "5"); + +@using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary()
diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/CreatePart.cshtml b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/CreatePart.cshtml index 3c0d61fad..78654ce4c 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/CreatePart.cshtml +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/CreatePart.cshtml @@ -1,5 +1,8 @@ @model Orchard.ContentTypes.ViewModels.CreatePartViewModel -

@Html.TitleForPage(T("New Content Part").ToString())

@using (Html.BeginFormAntiForgeryPost()) { + +@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("New Content Part").ToString()), "5"); + +@using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary()
diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/Edit.cshtml b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/Edit.cshtml index 81488a879..49636bbf1 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/Edit.cshtml +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/Edit.cshtml @@ -4,7 +4,9 @@ Script.Require("jQuery"); Script.Include("admin.js"); } -

@Html.TitleForPage(T("Edit Content Type").ToString())

+ +@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Edit Content Type").ToString()), "5"); + @using (Html.BeginFormAntiForgeryPost()) { // todo: come up with real itemtype definitions and locations for said definitions diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/EditPart.cshtml b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/EditPart.cshtml index f515c84a5..4b555b2cf 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/EditPart.cshtml +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/EditPart.cshtml @@ -4,7 +4,9 @@ Script.Require("jQuery"); Script.Include("admin.js"); } -

@Html.TitleForPage(T("Edit Part").ToString())

+ +@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Edit Part").ToString()), "5"); + @using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary() diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/List.cshtml b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/List.cshtml index a130f4d58..a9cd6d7e9 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/List.cshtml +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/List.cshtml @@ -1,6 +1,8 @@ @model Orchard.ContentTypes.ViewModels.ListContentTypesViewModel @{ Style.Require("ContentTypesAdmin"); } -

@Html.TitleForPage(T("Manage Content Types").ToString())

+ +@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Content Types").ToString()), "5"); +
@Html.ActionLink(T("Create new type").ToString(), "Create", new{Controller="Admin",Area="Orchard.ContentTypes"}, new { @class = "button primaryAction" }) @Html.ActionLink(T("Content Parts").ToString(), "ListParts", new{Controller="Admin",Area="Orchard.ContentTypes"}, new { @class = "button" }) diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/ListParts.cshtml b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/ListParts.cshtml index 229b108db..c5ae478bb 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/ListParts.cshtml +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/ListParts.cshtml @@ -1,5 +1,7 @@ @model Orchard.ContentTypes.ViewModels.ListContentPartsViewModel -

@Html.TitleForPage(T("Content Parts").ToString())

+ +@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Content Parts").ToString()), "5"); +
@Html.ActionLink(T("Create new part").ToString(), "CreatePart", new{Controller="Admin",Area="Orchard.ContentTypes"}, new { @class = "button primaryAction" }) diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/RemoveFieldFrom.cshtml b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/RemoveFieldFrom.cshtml index 9f98a24f8..bf37b6c8f 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/RemoveFieldFrom.cshtml +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/RemoveFieldFrom.cshtml @@ -1,8 +1,12 @@ @model Orchard.ContentTypes.ViewModels.RemoveFieldViewModel @{ Style.Require("ContentTypesAdmin"); } -

@Html.TitleForPage(T("Remove the \"{0}\" part from \"{1}\"", Model.Name, Model.Part.DisplayName).ToString())

@using (Html.BeginFormAntiForgeryPost()) { + +@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Remove the \"{0}\" part from \"{1}\"", Model.Name, Model.Part.DisplayName).ToString()), "5"); + +@using (Html.BeginFormAntiForgeryPost()) {

@T("Looks like you couldn't use the fancy way to remove the field. Try hitting the button below to force the issue.")

@Html.HiddenFor(m => m.Name) -
} \ No newline at end of file +
+} \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/RemovePartFrom.cshtml b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/RemovePartFrom.cshtml index 91e45c975..b1b92398c 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/RemovePartFrom.cshtml +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/Admin/RemovePartFrom.cshtml @@ -1,8 +1,12 @@ @model Orchard.ContentTypes.ViewModels.RemovePartViewModel @{ Style.Require("ContentTypesAdmin"); } -

@Html.TitleForPage(T("Remove the \"{0}\" part from \"{1}\"", Model.Name, Model.Type.DisplayName).ToString())

@using (Html.BeginFormAntiForgeryPost()) { + +@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Remove the \"{0}\" part from \"{1}\"", Model.Name, Model.Type.DisplayName).ToString()), "5"); + +@using (Html.BeginFormAntiForgeryPost()) {

@T("Looks like you couldn't use the fancy way to remove the part. Try hitting the button below to force the issue.")

@Html.HiddenFor(m => m.Name) -
} \ No newline at end of file +
+} \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.Experimental/Orchard.Experimental.csproj b/src/Orchard.Web/Modules/Orchard.Experimental/Orchard.Experimental.csproj index d1d5378c5..d4b5d788e 100644 --- a/src/Orchard.Web/Modules/Orchard.Experimental/Orchard.Experimental.csproj +++ b/src/Orchard.Web/Modules/Orchard.Experimental/Orchard.Experimental.csproj @@ -100,9 +100,7 @@ - - Designer - + diff --git a/src/Orchard.Web/Modules/Orchard.Indexing/Views/Admin/Index.cshtml b/src/Orchard.Web/Modules/Orchard.Indexing/Views/Admin/Index.cshtml index 31196fe7a..ccbb85ff2 100644 --- a/src/Orchard.Web/Modules/Orchard.Indexing/Views/Admin/Index.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Indexing/Views/Admin/Index.cshtml @@ -1,6 +1,7 @@ @model Orchard.Indexing.ViewModels.IndexViewModel -

@Html.TitleForPage(T("Search Index Management").ToString())

+@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Search Index Management").ToString()), "5"); + @using (Html.BeginForm("update", "admin", FormMethod.Post, new {area = "Orchard.Indexing"})) {
@if (Model.IndexEntry == null) { diff --git a/src/Orchard.Web/Modules/Orchard.Localization/Views/Admin/Translate.cshtml b/src/Orchard.Web/Modules/Orchard.Localization/Views/Admin/Translate.cshtml index 9523b6c70..32ff39519 100644 --- a/src/Orchard.Web/Modules/Orchard.Localization/Views/Admin/Translate.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Localization/Views/Admin/Translate.cshtml @@ -3,13 +3,14 @@ @{ dynamic content = Model.Content; content.Zones.Content.Add(New.Partial(TemplateName: "CultureSelection", Model: Model), "0"); + WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Translate Content").ToString()), "5"); } -

@Html.TitleForPage(T("Translate Content").ToString())

+ @using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary() @Display(Model.Content) } -@using(Script.Foot()){ +@using (Script.Foot()) {