Updated titles on setttings screens.

--HG--
branch : 1.x
This commit is contained in:
jowall
2011-04-06 15:55:39 -07:00
parent 4bae73efe2
commit f61fda1190
10 changed files with 14 additions and 13 deletions

View File

@@ -1,7 +1,6 @@
@using Orchard.ContentManagement @using Orchard.ContentManagement
@{ @{
GroupInfo groupInfo = Model.GroupInfo; Layout.Title = T("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("Enter Settings")</legend> <legend>@T("General 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

@@ -2,7 +2,7 @@
@using Orchard.Comments.Models; @using Orchard.Comments.Models;
<fieldset> <fieldset>
<legend>@T("Enter Settings")</legend> <legend>@T("Settings for Comments")</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

@@ -1,7 +1,7 @@
@model Orchard.Indexing.ViewModels.IndexViewModel @model Orchard.Indexing.ViewModels.IndexViewModel
@using Orchard.Indexing.Services; @using Orchard.Indexing.Services;
@{ Layout.Title = T("Search Index Management").ToString(); } @{ Layout.Title = T("Settings").ToString(); }
@using (Html.BeginForm("update", "admin", FormMethod.Post, new {area = "Orchard.Indexing"})) { @using (Html.BeginForm("update", "admin", FormMethod.Post, new {area = "Orchard.Indexing"})) {
<fieldset> <fieldset>

View File

@@ -1,7 +1,7 @@
@model Orchard.Media.Models.MediaSettingsPartRecord @model Orchard.Media.Models.MediaSettingsPartRecord
<fieldset> <fieldset>
<legend>@T("Enter Settings")</legend> <legend>@T("Settings for Media")</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,7 +1,8 @@
@model Orchard.Packaging.ViewModels.PackagingSourcesViewModel @model Orchard.Packaging.ViewModels.PackagingSourcesViewModel
@{ Layout.Title = T("Settings for Gallery").ToString(); } @{ Layout.Title = T("Settings").ToString(); }
<h2>@T("Settings for Gallery")</h2>
<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" })
</div> </div>

View File

@@ -2,7 +2,7 @@
@using Orchard.Search.ViewModels; @using Orchard.Search.ViewModels;
<fieldset> <fieldset>
<legend>@T("Enter Settings")</legend> <legend>@T("Settings for Search")</legend>
<div> <div>
@{var entryIndex = 0;} @{var entryIndex = 0;}

View File

@@ -1,7 +1,7 @@
@model Orchard.Users.Models.RegistrationSettingsPartRecord @model Orchard.Users.Models.RegistrationSettingsPartRecord
<fieldset> <fieldset>
<legend>@T("Enter Settings")</legend> <legend>@T("Settings for Users")</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

@@ -2,13 +2,13 @@
@using Orchard.Utility.Extensions; @using Orchard.Utility.Extensions;
@using Orchard.Warmup.Models; @using Orchard.Warmup.Models;
@{ Layout.Title = T("Settings for Warmup").ToString(); } @{ Layout.Title = T("Settings").ToString(); }
@using (Html.BeginFormAntiForgeryPost()) { @using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary() @Html.ValidationSummary()
<fieldset> <fieldset>
<legend>@T("Enter Settings")</legend> <legend>@T("Settings for Warmup")</legend>
<div> <div>
<label for="@Html.FieldIdFor(m => m.Urls)">@T("Urls for which static warmup pages will be generated")</label> <label for="@Html.FieldIdFor(m => m.Urls)">@T("Urls for which static warmup pages will be generated")</label>
@Html.TextAreaFor(m => m.Urls, new { @class = "textMedium" }) @Html.TextAreaFor(m => m.Urls, new { @class = "textMedium" })

View File

@@ -544,7 +544,7 @@ span.message {
form { margin: 0; padding: 0;} form { margin: 0; padding: 0;}
legend { font-size: 1.231em; font-weight: normal; border:none;} legend { font-size: 1.231em; font-weight: normal; border:none;}
fieldset { padding:6px 0 0; margin:0 0 1em 0; border: 0px solid #dbdbdb; } fieldset { padding:6px 0 0; margin:0 0 12px 0; border: 0px solid #dbdbdb; }
label { font-weight:normal; display:block; padding: 0 0 0.3em 0; } label { font-weight:normal; display:block; padding: 0 0 0.3em 0; }
label.forcheckbox { margin:0 0 0 .4em; display:inline; } label.forcheckbox { margin:0 0 0 .4em; display:inline; }
@@ -1032,7 +1032,8 @@ html.dyn #submit-pager, html.dyn .apply-bulk-actions-auto { display:none; }
margin:.5em 0; margin:.5em 0;
} }
.settings legend { .settings legend {
margin:0 0 -.4em; margin:0 0 0 0;
font-size:18px;
} }
/* Core Contents and Orchard.PublishLater */ /* Core Contents and Orchard.PublishLater */