Update to admin screen titles.

--HG--
branch : 1.x
This commit is contained in:
jowall
2011-04-01 12:42:49 -07:00
parent 88ea6d3a5c
commit 9ae58e1906
19 changed files with 20 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
@{ @{
var typeDisplayName = Model.ContentItem.TypeDefinition.DisplayName; var typeDisplayName = Model.ContentItem.TypeDefinition.DisplayName;
var pageTitle = T("Create {0}", typeDisplayName); var pageTitle = T("New {0}", typeDisplayName);
Layout.Title = (string)pageTitle.Text; Layout.Title = (string)pageTitle.Text;
} }

View File

@@ -3,7 +3,7 @@
@using Orchard.Core.Navigation.Models; @using Orchard.Core.Navigation.Models;
@using Orchard.Core.Navigation.ViewModels; @using Orchard.Core.Navigation.ViewModels;
@{ Layout.Title = T("Manage Main Menu").ToString(); } @{ Layout.Title = T("Navigation").ToString(); }
@using (Html.BeginFormAntiForgeryPost()) { @using (Html.BeginFormAntiForgeryPost()) {
<table class="items"> <table class="items">

View File

@@ -1,7 +1,7 @@
@model ReportsAdminIndexViewModel @model ReportsAdminIndexViewModel
@using Orchard.Core.Reports.ViewModels; @using Orchard.Core.Reports.ViewModels;
@{ Layout.Title = T("Manage Reports").ToString(); } @{ Layout.Title = T("Reports").ToString(); }
@using(Html.BeginFormAntiForgeryPost()) { @using(Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary() @Html.ValidationSummary()

View File

@@ -1,7 +1,7 @@
@using Orchard.ContentManagement @using Orchard.ContentManagement
@{ @{
GroupInfo groupInfo = Model.GroupInfo; GroupInfo groupInfo = Model.GroupInfo;
Layout.Title = (groupInfo != null ? T("Manage Settings for {0}", groupInfo.Name) : T("Manage Settings")).ToString(); Layout.Title = (groupInfo != null ? T("Settings for {0}", groupInfo.Name) : T("General Settings")).ToString();
} }
@using (Html.BeginFormAntiForgeryPost()) { @using (Html.BeginFormAntiForgeryPost()) {

View File

@@ -8,7 +8,7 @@
}, "Id", "Text", (int)Model.ResourceDebugMode); }, "Id", "Text", (int)Model.ResourceDebugMode);
} }
<fieldset> <fieldset>
<legend>@T("Global Settings")</legend> <legend>@T("Enter Settings")</legend>
<div> <div>
<label for="SiteName">@T("Site name")</label> <label for="SiteName">@T("Site name")</label>
@Html.EditorFor(m => m.SiteName) @Html.EditorFor(m => m.SiteName)

View File

@@ -34,11 +34,11 @@ namespace Orchard.Blogs {
item => item.Action("Item", "BlogAdmin", new { area = "Orchard.Blogs", blogId = singleBlog.Id }).Permission(Permissions.MetaListBlogs)); item => item.Action("Item", "BlogAdmin", new { area = "Orchard.Blogs", blogId = singleBlog.Id }).Permission(Permissions.MetaListBlogs));
if (singleBlog != null) if (singleBlog != null)
menu.Add(T("Create New Post"), "1.1", menu.Add(T("New Post"), "1.1",
item => item =>
item.Action("Create", "BlogPostAdmin", new { area = "Orchard.Blogs", blogId = singleBlog.Id }).Permission(Permissions.PublishBlogPost)); item.Action("Create", "BlogPostAdmin", new { area = "Orchard.Blogs", blogId = singleBlog.Id }).Permission(Permissions.PublishBlogPost));
menu.Add(T("Create New Blog"), "1.2", menu.Add(T("New Blog"), "1.2",
item => item =>
item.Action("Create", "BlogAdmin", new { area = "Orchard.Blogs" }).Permission(Permissions.ManageBlogs)); item.Action("Create", "BlogAdmin", new { area = "Orchard.Blogs" }).Permission(Permissions.ManageBlogs));

View File

@@ -1,4 +1,4 @@
@{ Layout.Title = T("Create New Blog").ToString(); } @{ Layout.Title = T("New Blog").ToString(); }
@using (Html.BeginFormAntiForgeryPost()) { @using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary() @Html.ValidationSummary()

View File

@@ -1,4 +1,4 @@
@{ Layout.Title = T("Create New Blog Post").ToString(); } @{ Layout.Title = T("New Post").ToString(); }
@using (Html.BeginFormAntiForgeryPost()) { @using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary() @Html.ValidationSummary()

View File

@@ -7,7 +7,7 @@
Style.Require("Admin"); Style.Require("Admin");
Script.Require("ShapesBase"); Script.Require("ShapesBase");
Layout.Title = T("Manage Comments").ToString(); Layout.Title = T("Comments").ToString();
} }
@using(Html.BeginFormAntiForgeryPost()) { @using(Html.BeginFormAntiForgeryPost()) {

View File

@@ -2,7 +2,7 @@
@using Orchard.Comments.Models; @using Orchard.Comments.Models;
<fieldset> <fieldset>
<legend>@T("Comments")</legend> <legend>@T("Enter Settings")</legend>
<div> <div>
@Html.EditorFor(m => m.ModerateComments) @Html.EditorFor(m => m.ModerateComments)
<label class="forcheckbox" for="CommentSettings_ModerateComments">@T("Comments must be approved before they appear")</label> <label class="forcheckbox" for="CommentSettings_ModerateComments">@T("Comments must be approved before they appear")</label>

View File

@@ -7,7 +7,7 @@
string createLinkText = string.IsNullOrEmpty(Model.ContainerItemContentType) ? T("Create New Content").ToString() : T("Create New {0}", Model.ContainerItemContentType).ToString(); string createLinkText = string.IsNullOrEmpty(Model.ContainerItemContentType) ? T("Create New Content").ToString() : T("Create New {0}", Model.ContainerItemContentType).ToString();
Layout.Title = T("Manage Content for {0}", Model.ContainerDisplayName); Layout.Title = T("Manage {0}", Model.ContainerDisplayName);
var lists = ((IEnumerable<ContentItem>)Model.OtherLists).Select( var lists = ((IEnumerable<ContentItem>)Model.OtherLists).Select(
contentItem => new SelectListItem { contentItem => new SelectListItem {

View File

@@ -1,7 +1,7 @@
@model Orchard.Media.ViewModels.MediaFolderIndexViewModel @model Orchard.Media.ViewModels.MediaFolderIndexViewModel
@using Orchard.Media.Extensions; @using Orchard.Media.Extensions;
@{ Layout.Title = T("Manage Media Folders").ToString(); } @{ Layout.Title = T("Media").ToString(); }
@Html.ValidationSummary() @Html.ValidationSummary()
@using (Html.BeginFormAntiForgeryPost()) { @using (Html.BeginFormAntiForgeryPost()) {

View File

@@ -1,7 +1,7 @@
@model Orchard.Media.Models.MediaSettingsPartRecord @model Orchard.Media.Models.MediaSettingsPartRecord
<fieldset> <fieldset>
<legend>@T("Media Settings")</legend> <legend>@T("Enter Settings")</legend>
<div> <div>
@Html.LabelFor(m => m.UploadAllowedFileTypeWhitelist, T("Upload allowed file types (list of extensions separated by spaces)")) @Html.LabelFor(m => m.UploadAllowedFileTypeWhitelist, T("Upload allowed file types (list of extensions separated by spaces)"))
@Html.TextBoxFor(m => m.UploadAllowedFileTypeWhitelist, new { @class = "textMedium" }) @Html.TextBoxFor(m => m.UploadAllowedFileTypeWhitelist, new { @class = "textMedium" })

View File

@@ -1,6 +1,6 @@
@model Orchard.Packaging.ViewModels.PackagingSourcesViewModel @model Orchard.Packaging.ViewModels.PackagingSourcesViewModel
@{ Layout.Title = T("Gallery Feeds").ToString(); } @{ Layout.Title = T("Settings for Gallery").ToString(); }
<div class="manage"> <div class="manage">
@Html.ActionLink(T("Add Feed").Text, "AddSource", new { }, new { @class = "button primaryAction" }) @Html.ActionLink(T("Add Feed").Text, "AddSource", new { }, new { @class = "button primaryAction" })

View File

@@ -4,7 +4,7 @@
@{ @{
Script.Require("ShapesBase"); Script.Require("ShapesBase");
Layout.Title = T("Manage Roles").ToString(); Layout.Title = T("Roles").ToString();
} }
@using(Html.BeginFormAntiForgeryPost()) { @using(Html.BeginFormAntiForgeryPost()) {

View File

@@ -4,7 +4,7 @@
@{ @{
Script.Require("ShapesBase"); Script.Require("ShapesBase");
Style.Require("TagsAdmin"); Style.Require("TagsAdmin");
Layout.Title = T("Manage Tags").ToString(); Layout.Title = T("Tags").ToString();
} }
@Html.ValidationSummary() @Html.ValidationSummary()

View File

@@ -5,7 +5,7 @@
@{ @{
var userIndex = 0; var userIndex = 0;
Layout.Title = T("Manage Users").ToString(); Layout.Title = T("Users").ToString();
} }
@using (Html.BeginFormAntiForgeryPost()) { @using (Html.BeginFormAntiForgeryPost()) {

View File

@@ -1,7 +1,7 @@
@model Orchard.Users.Models.RegistrationSettingsPartRecord @model Orchard.Users.Models.RegistrationSettingsPartRecord
<fieldset> <fieldset>
<legend>@T("Users registration")</legend> <legend>@T("Enter Settings")</legend>
<div> <div>
@Html.EditorFor(m => m.UsersCanRegister) @Html.EditorFor(m => m.UsersCanRegister)
<label class="forcheckbox" for="@Html.FieldIdFor( m => m.UsersCanRegister)">@T("Users can create new accounts on the site")</label> <label class="forcheckbox" for="@Html.FieldIdFor( m => m.UsersCanRegister)">@T("Users can create new accounts on the site")</label>

View File

@@ -1,6 +1,6 @@
@{ @{
Style.Require("WidgetsAdmin"); Style.Require("WidgetsAdmin");
Layout.Title = T("Manage Widgets").ToString(); Layout.Title = T("Widgets").ToString();
} }
@Display.WidgetPlacement_Orphans(OrphanWidgets: Model.OrphanWidgets) @Display.WidgetPlacement_Orphans(OrphanWidgets: Model.OrphanWidgets)
<div id="widgets" class="group"> <div id="widgets" class="group">