Updating titles to new position.

--HG--
branch : dev
This commit is contained in:
Andre Rodrigues
2011-02-16 11:04:36 -08:00
parent 4bf1b2e389
commit 1951b30189
61 changed files with 174 additions and 101 deletions

View File

@@ -1,4 +1,5 @@
<h1>@Html.TitleForPage(T("Create New Content").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Create New Content").ToString()), "5");
@foreach (var type in Model.ContentTypes) {
<p>@Html.ActionLink((string)type.DisplayName, "Create", new { Area = "Contents", Id = (string)type.Name })</p>
}

View File

@@ -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");
}
<h1>@Html.TitleForPage((string)pageTitle.Text)</h1>
@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)
}

View File

@@ -4,8 +4,10 @@
if (!string.IsNullOrWhiteSpace(typeDisplayName)) {
pageTitle = T("Edit {0}", typeDisplayName);
}
WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: pageTitle), "5");
}
<h1>@Html.TitleForPage(pageTitle)</h1>
@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

View File

@@ -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");
}
<h1>@Html.TitleForPage(pageTitle)</h1>
<div class="manage">
@Html.ActionLink(createLinkText.Text, "Create", new { Area = "Contents", Id = (string)Model.Options.SelectedFilter }, new { @class = "button primaryAction" })
</div>

View File

@@ -1,6 +1,7 @@
@model dynamic
<h1>@Html.TitleForPage(T("Welcome to Orchard").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Welcome to Orchard").ToString()), "5");
<p>@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”.")</p>
<p>@T("Have fun!")<br />@T("The Orchard Team")</p>

View File

@@ -3,7 +3,8 @@
@using Orchard.Core.Navigation.Models;
@using Orchard.Core.Navigation.ViewModels;
<h1>@Html.TitleForPage(T("Manage Main Menu").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Main Menu").ToString()), "5");
@using (Html.BeginFormAntiForgeryPost()) {
<table class="items">
<colgroup>

View File

@@ -1,6 +1,8 @@
@model DisplayReportViewModel
@using Orchard.Core.Reports.ViewModels;
<h1>@Html.TitleForPage(T("Display Report").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Display Report").ToString()), "5");
@using(Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
<fieldset>

View File

@@ -1,6 +1,8 @@
@model ReportsAdminIndexViewModel
@using Orchard.Core.Reports.ViewModels;
<h1>@Html.TitleForPage(T("Manage Reports").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Reports").ToString()), "5");
@using(Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
<fieldset>

View File

@@ -1,6 +1,8 @@
@model SiteCulturesViewModel
@using Orchard.Core.Settings.ViewModels;
<h1>@Html.TitleForPage(T("Cultures").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Cultures").ToString()), "5");
<p class="breadcrumb">@Html.ActionLink(T("Manage Settings").Text, "index")@T(" &#62; ")@T("Supported Cultures")</p>
<h3>@T("Available Cultures")</h3>
@using (Html.BeginFormAntiForgeryPost("AddCulture")) {

View File

@@ -1,4 +1,5 @@
<h1>@Html.TitleForPage(T("Manage Settings").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Settings").ToString()), "5");
@using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
@Display(Model.Content)

View File

@@ -109,12 +109,8 @@
<Content Include="Scripts\orchard-blogs-archives.js" />
<Content Include="Styles\orchard-blogs-admin.css" />
<Content Include="Styles\orchard-blogs-archives.css" />
<Content Include="Views\BlogAdmin\Create.cshtml">
<SubType>Designer</SubType>
</Content>
<Content Include="Views\BlogAdmin\Edit.cshtml">
<SubType>Designer</SubType>
</Content>
<Content Include="Views\BlogAdmin\Create.cshtml" />
<Content Include="Views\BlogAdmin\Edit.cshtml" />
<Content Include="Views\BlogAdmin\Item.cshtml" />
<Content Include="Views\BlogAdmin\List.cshtml" />
<Content Include="Views\BlogPostAdmin\Create.cshtml" />

View File

@@ -1,4 +1,5 @@
<h1>@Html.TitleForPage(T("Create New Blog").ToString())</h1>
@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

View File

@@ -1,4 +1,5 @@
<h1>@Html.TitleForPage(T("Blog Properties").ToString())</h1>
@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

View File

@@ -1,7 +1,9 @@
@using Orchard.Blogs.Extensions;
@using Orchard.Core.Contents.ViewModels;
@using Orchard.Utility.Extensions;
<h1>@Html.TitleForPage(T("Manage Blogs").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Blogs").ToString()), "5");
@if (Model.ContentItems.Items.Count > 0) {
<div class="actions"><a class="add button primaryAction" href="@Url.BlogCreate()">@T("New Blog")</a></div>
using(Html.BeginFormAntiForgeryPost(Url.Action("List", "Admin", new { area = "Contents", id = "" }))) {

View File

@@ -1,4 +1,5 @@
<h1>@Html.TitleForPage(T("Create New Blog Post").ToString())</h1>
@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

View File

@@ -1,4 +1,5 @@
<h1>@Html.TitleForPage(T("Edit Blog Post").ToString())</h1>
@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

View File

@@ -1,6 +1,8 @@
@using Orchard.Blogs.Extensions;
@using Orchard.Blogs.Models;
<h1>@Html.TitleForPage((string)Model.Title)</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: (string)Model.Title), "5");
@Display(Model.Header)
@Display(Model.Actions)
<div class="manage"><a href="@Url.BlogPostCreate((BlogPart)Model.ContentItem.Get(typeof(BlogPart)))" class="add button primaryAction">@T("New Post")</a></div>

View File

@@ -2,7 +2,8 @@
@using Orchard.Comments.Models;
@using Orchard.Comments.ViewModels;
<h1>@Html.TitleForPage(T("Comments for {0}", Model.DisplayNameForCommentedItem).ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Comments for {0}", Model.DisplayNameForCommentedItem).ToString()), "5");
<div class="manage">
@if (Model.CommentsClosedOnItem) {
using (Html.BeginFormAntiForgeryPost(Url.Action("Enable", new { commentedItemId = Model.CommentedItemId }), FormMethod.Post, new { @class = "inline" })) {

View File

@@ -1,7 +1,8 @@
@model Orchard.Comments.ViewModels.CommentsEditViewModel
@using Orchard.Comments.Models;
<h1>@Html.TitleForPage(T("Edit Comment").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Edit Comment").ToString()), "5");
@using(Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
<fieldset class="who">

View File

@@ -7,7 +7,9 @@
Style.Require("Admin");
Script.Require("ShapesBase");
}
<h1>@Html.TitleForPage(T("Manage Comments").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Comments").ToString()), "5");
@using(Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
<fieldset class="bulk-actions">

View File

@@ -1,6 +1,8 @@
@model Orchard.ContentTypes.ViewModels.AddFieldViewModel
@{ Style.Require("ContentTypesAdmin"); }
<h1>@Html.TitleForPage(T("Add New Field To \"{0}\"", Model.Part.DisplayName).ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Add New Field To \"{0}\"", Model.Part.DisplayName).ToString()), "5");
@using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
<fieldset>

View File

@@ -1,6 +1,8 @@
@model Orchard.ContentTypes.ViewModels.AddPartsViewModel
@{ Style.Require("ContentTypesAdmin"); }
<h1>@Html.TitleForPage(T("Add Parts To \"{0}\"", Model.Type.DisplayName).ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Add Parts To \"{0}\"", Model.Type.DisplayName).ToString()), "5");
@using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
<fieldset>

View File

@@ -1,6 +1,8 @@
@model Orchard.ContentTypes.ViewModels.CreateTypeViewModel
<h1>@Html.TitleForPage(T("New Content Type").ToString())</h1>@using (Html.BeginFormAntiForgeryPost()) {
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("New Content Type").ToString()), "5");
@using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
<fieldset>
<label for="DisplayName">@T("Display Name")</label>

View File

@@ -1,5 +1,8 @@
@model Orchard.ContentTypes.ViewModels.CreatePartViewModel
<h1>@Html.TitleForPage(T("New Content Part").ToString())</h1>@using (Html.BeginFormAntiForgeryPost()) {
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("New Content Part").ToString()), "5");
@using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
<fieldset>
<label for="Name">@T("Name")</label>

View File

@@ -4,7 +4,9 @@
Script.Require("jQuery");
Script.Include("admin.js");
}
<h1>@Html.TitleForPage(T("Edit Content Type").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Edit Content Type").ToString()), "5");
<p class="breadcrumb">@Html.ActionLink(T("Content Types").Text, "index")@T(" &#62; ")@T("Edit Content Type")</p>
@using (Html.BeginFormAntiForgeryPost()) {
// todo: come up with real itemtype definitions and locations for said definitions

View File

@@ -4,7 +4,9 @@
Script.Require("jQuery");
Script.Include("admin.js");
}
<h1>@Html.TitleForPage(T("Edit Part").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Edit Part").ToString()), "5");
<p class="breadcrumb">@Html.ActionLink(T("Content Types").Text, "index")@T(" &#62; ")@Html.ActionLink(T("Content Parts").Text, "listparts")@T(" &#62; ")@T("Edit Part")</p>
@using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()

View File

@@ -1,6 +1,8 @@
@model Orchard.ContentTypes.ViewModels.ListContentTypesViewModel
@{ Style.Require("ContentTypesAdmin"); }
<h1>@Html.TitleForPage(T("Manage Content Types").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Content Types").ToString()), "5");
<div class="manage">
@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" })

View File

@@ -1,5 +1,7 @@
@model Orchard.ContentTypes.ViewModels.ListContentPartsViewModel
<h1>@Html.TitleForPage(T("Content Parts").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Content Parts").ToString()), "5");
<p class="breadcrumb">@Html.ActionLink(T("Content Types").Text, "index")@T(" &#62; ")@T("Content Parts")</p>
<div class="manage">
@Html.ActionLink(T("Create new part").ToString(), "CreatePart", new{Controller="Admin",Area="Orchard.ContentTypes"}, new { @class = "button primaryAction" })

View File

@@ -1,8 +1,12 @@
@model Orchard.ContentTypes.ViewModels.RemoveFieldViewModel
@{ Style.Require("ContentTypesAdmin"); }
<h1>@Html.TitleForPage(T("Remove the \"{0}\" part from \"{1}\"", Model.Name, Model.Part.DisplayName).ToString())</h1>@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()) {
<p>@T("Looks like you couldn't use the fancy way to remove the field. Try hitting the button below to force the issue.")</p>
<fieldset>
@Html.HiddenFor(m => m.Name)
<button class="primaryAction" type="submit">@T("Remove")</button>
</fieldset>}
</fieldset>
}

View File

@@ -1,8 +1,12 @@
@model Orchard.ContentTypes.ViewModels.RemovePartViewModel
@{ Style.Require("ContentTypesAdmin"); }
<h1>@Html.TitleForPage(T("Remove the \"{0}\" part from \"{1}\"", Model.Name, Model.Type.DisplayName).ToString())</h1>@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()) {
<p>@T("Looks like you couldn't use the fancy way to remove the part. Try hitting the button below to force the issue.")</p>
<fieldset>
@Html.HiddenFor(m => m.Name)
<button class="primaryAction" type="submit">@T("Remove")</button>
</fieldset>}
</fieldset>
}

View File

@@ -100,9 +100,7 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="Views\Home\FormShapes.cshtml">
<SubType>Designer</SubType>
</Content>
<Content Include="Views\Home\FormShapes.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\Home\UsingShapes.cshtml" />

View File

@@ -1,6 +1,7 @@
@model Orchard.Indexing.ViewModels.IndexViewModel
<h1>@Html.TitleForPage(T("Search Index Management").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Search Index Management").ToString()), "5");
@using (Html.BeginForm("update", "admin", FormMethod.Post, new {area = "Orchard.Indexing"})) {
<fieldset>
@if (Model.IndexEntry == null) {

View File

@@ -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");
}
<h1>@Html.TitleForPage(T("Translate Content").ToString())</h1>
@using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
@Display(Model.Content)
}
@using(Script.Foot()){
@using (Script.Foot()) {
<script type="text/javascript">
//<![CDATA[
(function ($) {

View File

@@ -3,7 +3,8 @@
@using Orchard.Media.Models;
@{ Style.Require("MediaAdmin"); }
<h1>@Html.TitleForPage(T("Add Media").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Add Media").ToString()), "5");
<div class="breadCrumbs">
<p>@Html.ActionLink(T("Media Folders").ToString(), "Index") &#62;
@foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {

View File

@@ -3,7 +3,8 @@
@using Orchard.Media.Models;
@{ Style.Require("MediaAdmin"); }
<h1>@Html.TitleForPage(T("Add a Folder").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Add a Folder").ToString()), "5");
<div class="breadCrumbs">
<p>@Html.ActionLink(T("Media Folders").ToString(), "Index") &#62;
@foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {

View File

@@ -4,7 +4,7 @@
@using Orchard.Media.Models;
@{ Style.Require("MediaAdmin"); }
<h1>@Html.TitleForPage(T("Manage Folder").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Folder").ToString()), "5");
<div class="breadCrumbs">
<p>@Html.ActionLink(T("Media Folders").ToString(), "Index") &#62;

View File

@@ -4,7 +4,7 @@
@using Orchard.Media.Models;
@{ Style.Require("MediaAdmin"); }
<h1>@Html.TitleForPage(T("Edit Media - {0}", Model.Name).ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Edit Media - {0}", Model.Name).ToString()), "5");
<div class="breadCrumbs">
<p>@Html.ActionLink(T("Media Folders").ToString(), "Index") &#62;

View File

@@ -3,7 +3,8 @@
@using Orchard.Media.Models;
@{ Style.Require("MediaAdmin"); }
<h1>@Html.TitleForPage(T("Folder Properties").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Folder Properties").ToString()), "5");
<div class="breadCrumbs">
<p>@Html.ActionLink(T("Media Folders").ToString(), "Index") &#62;
@foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {

View File

@@ -1,9 +1,10 @@
@model Orchard.Media.ViewModels.MediaFolderIndexViewModel
@using Orchard.Media.Extensions;
<h1>@Html.TitleForPage(T("Manage Media Folders").ToString())</h1>
@Html.ValidationSummary()
@using (Html.BeginFormAntiForgeryPost()) {
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Media Folders").ToString()), "5");
@Html.ValidationSummary()
@using (Html.BeginFormAntiForgeryPost()) {
<fieldset class="bulk-actions">
<label for="publishActions">@T("Actions:")</label>
<select id="Select1" name="publishActions">

View File

@@ -1,6 +1,7 @@
@model Orchard.MultiTenancy.ViewModels.TenantAddViewModel
<h1>@Html.TitleForPage(T("Add New Tenant").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Add New Tenant").ToString()), "5");
@using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
<fieldset>

View File

@@ -1,7 +1,8 @@
@model Orchard.MultiTenancy.ViewModels.TenantEditViewModel
@using Orchard.Environment.Configuration;
<h1>@Html.TitleForPage(T("Edit Tenant").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Edit Tenant").ToString()), "5");
@using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
<fieldset>

View File

@@ -3,7 +3,8 @@
@{ Style.Require("MultiTenancyAdmin"); }
<h1>@Html.TitleForPage(T("List of Site's Tenants").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("List of Site's Tenants").ToString()), "5");
<div class="manage">@Html.ActionLink(T("Add a Tenant").ToString(), "Add", new {area = "Orchard.MultiTenancy"}, new { @class = "button primaryAction" })</div>
<ul class="contentItems tenants">
@foreach (var tenant in Model.TenantSettings) {

View File

@@ -1,5 +1,6 @@
@model Orchard.Packaging.ViewModels.PackagingAddSourceViewModel
<h1>@Html.TitleForPage(T("Add a Feed").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Add a Feed").ToString()), "5");
@using ( Html.BeginFormAntiForgeryPost(Url.Action("AddSource")) ) {
@Html.ValidationSummary()

View File

@@ -1,5 +1,6 @@
@model Orchard.Packaging.ViewModels.PackagingSourcesViewModel
<h1>@Html.TitleForPage(T("Gallery Feeds").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Gallery Feeds").ToString()), "5");
<div class="manage">
@Html.ActionLink(T("Add Feed").Text, "AddSource", new { }, new { @class = "button primaryAction" })

View File

@@ -1,5 +1,6 @@
@{
<h1>@Html.TitleForPage(T("Install a Module").ToString())</h1>
WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Install a Module").ToString()), "5");
using (Html.BeginFormAntiForgeryPost(Url.Action("AddModule", new { area = "Orchard.Packaging", returnUrl = HttpContext.Current.Request["returnUrl"] }), FormMethod.Post, new { enctype = "multipart/form-data" })) {
Html.ValidationSummary();
<fieldset>

View File

@@ -1,5 +1,6 @@
@{
<h1>@Html.TitleForPage(T("Install a Theme").ToString())</h1>
WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Install a Theme").ToString()), "5");
using (Html.BeginFormAntiForgeryPost(Url.Action("AddTheme", new { area = "Orchard.Packaging", returnUrl = HttpContext.Current.Request["returnUrl"] }), FormMethod.Post, new { enctype = "multipart/form-data" })) {
Html.ValidationSummary();
<fieldset>

View File

@@ -1,6 +1,8 @@
@model RoleCreateViewModel
@using Orchard.Roles.ViewModels;
<h1>@Html.TitleForPage(T("Add Role").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Add Role").ToString()), "5");
@using (Html.BeginFormAntiForgeryPost()) {
Html.ValidationSummary();
<fieldset>

View File

@@ -1,6 +1,8 @@
@model RoleEditViewModel
@using Orchard.Roles.ViewModels;
<h1>@Html.TitleForPage(T("Edit Role").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Edit Role").ToString()), "5");
@using(Html.BeginFormAntiForgeryPost()) {
Html.ValidationSummary();
<fieldset>

View File

@@ -5,7 +5,8 @@
Script.Require("ShapesBase");
}
<h1>@Html.TitleForPage(T("Manage Roles").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Roles").ToString()), "5");
@using(Html.BeginFormAntiForgeryPost()) {
Html.ValidationSummary();
<fieldset class="bulk-actions">

View File

@@ -2,7 +2,8 @@
@using Orchard.ContentManagement;
@using Orchard.Utility.Extensions;
<h1>@Html.TitleForPage(T("Manage tag: {0}", Model.TagName).ToString()) </h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage tag: {0}", Model.TagName).ToString()), "5");
@using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
<fieldset>

View File

@@ -6,7 +6,8 @@
Style.Require("TagsAdmin");
}
<h1>@Html.TitleForPage(T("Manage Tags").ToString()) </h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Tags").ToString()), "5");
@Html.ValidationSummary()
<div class="manage">
@Display.EditorTemplate(TemplateName: "Parts/CreateTag", Model: ViewData["CreateTag"] != null ? ViewData["CreateTag"] : new TagsAdminCreateViewModel())

View File

@@ -4,7 +4,7 @@
@{
Style.Require("ThemesAdmin");
WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: "Themes"), "5");
WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Themes").ToString()), "5");
}
@if (Model.CurrentTheme == null) {

View File

@@ -1,4 +1,5 @@
<h1>@Html.TitleForPage(T("Add User").ToString()) </h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: "Add User"), "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

View File

@@ -1,4 +1,5 @@
<h1>@Html.TitleForPage(T("Edit User").ToString()) </h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Edit User").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

View File

@@ -3,16 +3,17 @@
@using Orchard.Users.ViewModels;
@{
var userIndex = 0;
var userIndex = 0;
var pageSizes = new List<int?>() { 10, 50, 100 };
var defaultPageSize = WorkContext.CurrentSite.PageSize;
if(!pageSizes.Contains(defaultPageSize)) {
pageSizes.Add(defaultPageSize);
}
var pageSizes = new List<int?>() { 10, 50, 100 };
var defaultPageSize = WorkContext.CurrentSite.PageSize;
if(!pageSizes.Contains(defaultPageSize)) {
pageSizes.Add(defaultPageSize);
}
WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Users").ToString()), "5");
}
<h1>@Html.TitleForPage(T("Manage Users").ToString()) </h1>
@using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
<div class="manage">@Html.ActionLink(T("Add a new user").ToString(), "Create", new { }, new { @class = "button primaryAction" })</div>
@@ -29,7 +30,7 @@
<button type="submit" name="submit.BulkEdit" value="@T("Apply")">@T("Apply")</button>
</fieldset>
<fieldset class="bulk-actions">
@Html.TextBoxFor(m => m.Options.Search, new { @class = "text"})
@Html.TextBoxFor(m => m.Options.Search, new { @class = "text" })
<label for="filterResults">@T("Filter:")</label>
<select id="filterResults" name="@Html.NameOf(m => m.Options.Filter)">
@Html.SelectOption(Model.Options.Filter, UsersFilter.All, T("All Users").ToString())
@@ -37,22 +38,22 @@
@Html.SelectOption(Model.Options.Filter, UsersFilter.Pending, T("Pending Users").ToString())
@Html.SelectOption(Model.Options.Filter, UsersFilter.EmailPending, T("Pending Emails").ToString())
</select>
<label for="filterResults">@T("Sort by:")</label>
<label for="filterResults">@T("Sort by:")</label>
<select id="filterResults" name="@Html.NameOf(m => m.Options.Order)">
@Html.SelectOption(Model.Options.Order, UsersOrder.Name, T("Name").ToString())
@Html.SelectOption(Model.Options.Order, UsersOrder.Email, T("Email").ToString())
</select>
<input type="hidden" name="Page" value="1" />
<label for="pageSize">@T("Show:")</label>
<select id="pageSize" name="PageSize">
@Html.SelectOption((int)Model.Pager.PageSize, 0, T("All").ToString())
@foreach(int size in pageSizes.OrderBy(p => p)) {
@Html.SelectOption((int)Model.Pager.PageSize, size, size.ToString())
}
<select>
<input type="hidden" name="Page" value="1" />
<label for="pageSize">@T("Show:")</label>
<select id="pageSize" name="PageSize">
@Html.SelectOption((int)Model.Pager.PageSize, 0, T("All").ToString())
@foreach (int size in pageSizes.OrderBy(p => p)) {
@Html.SelectOption((int)Model.Pager.PageSize, size, size.ToString())
}
<select>
<button type="submit" name="submit.Filter" value="@T("Filter")">@T("Filter")</button>
</fieldset>
<fieldset>
<fieldset>
<table class="items">
<thead>
<tr>
@@ -63,17 +64,16 @@
</tr>
</thead>
@foreach (var entry in Model.Users) {
<tr>
<tr>
<td>
<input type="hidden" value="@Model.Users[userIndex].User.Id" name="@Html.NameOf(m => m.Users[userIndex].User.Id)"/>
<input type="checkbox" value="true" name="@Html.NameOf(m => m.Users[userIndex].IsChecked)"/>
</td>
<td>
@if(entry.User.RegistrationStatus == UserStatus.Approved && entry.User.EmailStatus == UserStatus.Approved) {
@if (entry.User.RegistrationStatus == UserStatus.Approved && entry.User.EmailStatus == UserStatus.Approved) {
<img class="icon" src="@Href("~/Modules/Orchard.Users/Content/Admin/images/online.gif") " alt="@T("Approved") " title="@T("User is approved") " />
}
else {
<img class="icon" src="@Href("~/Modules/Orchard.Users/Content/Admin/images/offline.gif") " alt="@T("Moderated") " title="@if(entry.User.EmailStatus == UserStatus.Approved) { @T("User is moderated") } else { @T("E-mail validation is pending") }" />
} else {
<img class="icon" src="@Href("~/Modules/Orchard.Users/Content/Admin/images/offline.gif") " alt="@T("Moderated") " title="@if (entry.User.EmailStatus == UserStatus.Approved) { @T("User is moderated") } else { @T("E-mail validation is pending") }" />
}
@Html.ActionLink(entry.User.UserName, "Edit", new { entry.User.Id })
</td>
@@ -83,19 +83,19 @@
<td>
@Html.ActionLink(T("Edit").ToString(), "Edit", new { entry.User.Id }) |
@Html.ActionLink(T("Remove").ToString(), "Delete", new { entry.User.Id }) |
@if(entry.User.RegistrationStatus == UserStatus.Pending) {
@if (entry.User.RegistrationStatus == UserStatus.Pending) {
@Html.ActionLink(T("Approve").ToString(), "Approve", new { entry.User.Id })
} else {
@Html.ActionLink(T("Disable").ToString(), "Moderate", new { entry.User.Id })
}
@if ( entry.User.EmailStatus == UserStatus.Pending ) { <text>|</text>
@if (entry.User.EmailStatus == UserStatus.Pending) { <text>|</text>
@Html.ActionLink(T("Send challenge E-mail").ToString(), "SendChallengeEmail", new { entry.User.Id })
}
</td>
</tr>
userIndex++;
}
userIndex++;
}
</table>
@Display(Model.Pager)
@Display(Model.Pager)
</fieldset>
}

View File

@@ -1,4 +1,5 @@
<h1>@Html.TitleForPage(T("Add Layer").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Add Layer").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

View File

@@ -1,4 +1,5 @@
<h1>@Html.TitleForPage(T("Add Widget").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Add Widget").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

View File

@@ -1,4 +1,5 @@
<h1>@Html.TitleForPage(T("Edit Layer").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Edit Layer").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

View File

@@ -1,4 +1,5 @@
<h1>@Html.TitleForPage(T("Edit Widget").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Edit Widget").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

View File

@@ -4,8 +4,8 @@
@{
Style.Require("WidgetsAdmin");
}
<h1>@Html.TitleForPage(T("Manage Widgets").ToString())</h1>
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Manage Widgets").ToString()), "5");
@using(Html.BeginFormAntiForgeryPost()) {
Html.ValidationSummary();

View File

@@ -1,3 +1,3 @@
@using Orchard.Localization;
<h1>@T(Model.Title).Text</h1>
<h1>Model.Title</h1>