Some site settings cleanup

- Friendly names for remaining input
- Removed Theme site setting UI
- Changed "Edit Settings" title to "Manage Settings" #consistency

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-02-26 14:27:46 -08:00
parent 2145f4e544
commit a21e246e4d
4 changed files with 5 additions and 17 deletions

View File

@@ -204,7 +204,6 @@
<Content Include="Themes\Views\Admin\Install.aspx" /> <Content Include="Themes\Views\Admin\Install.aspx" />
<Content Include="Themes\Views\Header.ascx" /> <Content Include="Themes\Views\Header.ascx" />
<Content Include="Themes\Views\Document.aspx" /> <Content Include="Themes\Views\Document.aspx" />
<Content Include="Themes\Views\EditorTemplates\Parts\Themes.SiteSettings.ascx" />
<Content Include="Themes\Views\HeadPreload.ascx" /> <Content Include="Themes\Views\HeadPreload.ascx" />
<Content Include="Themes\Views\Layout.ascx" /> <Content Include="Themes\Views\Layout.ascx" />
<Content Include="Themes\Views\Messages.ascx" /> <Content Include="Themes\Views\Messages.ascx" />

View File

@@ -1,22 +1,22 @@
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<SettingsIndexViewModel>" %> <%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<SettingsIndexViewModel>" %>
<%@ Import Namespace="Orchard.Core.Settings.ViewModels"%> <%@ Import Namespace="Orchard.Core.Settings.ViewModels"%>
<h1><%=Html.TitleForPage(T("Edit Settings").ToString())%></h1> <h1><%=Html.TitleForPage(T("Manage Settings").ToString())%></h1>
<%using (Html.BeginFormAntiForgeryPost()) { %> <%using (Html.BeginFormAntiForgeryPost()) { %>
<%= Html.ValidationSummary() %> <%= Html.ValidationSummary() %>
<fieldset> <fieldset>
<legend><%=_Encoded("Global Settings")%></legend> <legend><%=_Encoded("Global Settings")%></legend>
<div> <div>
<%=Html.LabelFor(x=>x.SiteName) %> <label for="SiteName"><%=_Encoded("Site name") %></label>
<%=Html.EditorFor(x=>x.SiteName) %> <%=Html.EditorFor(m => m.SiteName) %>
<%=Html.ValidationMessage("SiteName", "*") %> <%=Html.ValidationMessage("SiteName", "*") %>
</div> </div>
<div> <div>
<%=Html.LabelFor(x => x.PageTitleSeparator) %> <label for="PageTitleSeparator"><%=_Encoded("Page title separator") %></label>
<%=Html.EditorFor(x => x.PageTitleSeparator)%> <%=Html.EditorFor(x => x.PageTitleSeparator)%>
<%=Html.ValidationMessage("PageTitleSeparator", "*")%> <%=Html.ValidationMessage("PageTitleSeparator", "*")%>
</div> </div>
<div> <div>
<%=Html.LabelFor(x => x.SuperUser) %> <label for="SuperUser"><%=_Encoded("Super user") %></label>
<%=Html.EditorFor(x=>x.SuperUser) %> <%=Html.EditorFor(x=>x.SuperUser) %>
<%=Html.ValidationMessage("SuperUser", "*") %> <%=Html.ValidationMessage("SuperUser", "*") %>
</div> </div>

View File

@@ -10,7 +10,6 @@ namespace Orchard.Core.Themes.Models {
_themeSiteSettingsRepository = repository; _themeSiteSettingsRepository = repository;
Filters.Add(new ActivatingFilter<ThemeSiteSettings>("site")); Filters.Add(new ActivatingFilter<ThemeSiteSettings>("site"));
Filters.Add(StorageFilter.For(_themeSiteSettingsRepository)); Filters.Add(StorageFilter.For(_themeSiteSettingsRepository));
Filters.Add(new TemplateFilterForRecord<ThemeSiteSettingsRecord>("ThemeSiteSettings", "Parts/Themes.SiteSettings"));
} }
} }
} }

View File

@@ -1,10 +0,0 @@
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ThemeSiteSettingsRecord>" %>
<%@ Import Namespace="Orchard.Core.Themes.Records"%>
<fieldset>
<legend><%=_Encoded("Themes")%></legend>
<div>
<%= Html.LabelFor(x=>x.CurrentThemeName) %>
<%= Html.EditorFor(x=>x.CurrentThemeName) %>
<%= Html.ValidationMessage("CurrentThemeName", "*")%>
</div>
</fieldset>