UI cleanup pass (progress - Orchard.Sandbox)

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045167
This commit is contained in:
skewed
2010-01-08 23:19:49 +00:00
parent b68e7b3c3c
commit 4ee8800bdf
11 changed files with 51 additions and 50 deletions

View File

@@ -5,25 +5,25 @@
<%= Html.ValidationSummary() %> <%= Html.ValidationSummary() %>
<fieldset> <fieldset>
<legend><%=_Encoded("Global Settings")%></legend> <legend><%=_Encoded("Global Settings")%></legend>
<fieldset> <div>
<%=Html.LabelFor(x=>x.SiteName) %> <%=Html.LabelFor(x=>x.SiteName) %>
<%=Html.EditorFor(x=>x.SiteName) %> <%=Html.EditorFor(x=>x.SiteName) %>
<%=Html.ValidationMessage("SiteName", "*") %> <%=Html.ValidationMessage("SiteName", "*") %>
</fieldset> </div>
<fieldset> <div>
<%=Html.LabelFor(x => x.PageTitleSeparator) %> <%=Html.LabelFor(x => x.PageTitleSeparator) %>
<%=Html.EditorFor(x => x.PageTitleSeparator)%> <%=Html.EditorFor(x => x.PageTitleSeparator)%>
<%=Html.ValidationMessage("PageTitleSeparator", "*")%> <%=Html.ValidationMessage("PageTitleSeparator", "*")%>
</fieldset> </div>
<fieldset> <div>
<%=Html.LabelFor(x => x.SuperUser) %> <%=Html.LabelFor(x => x.SuperUser) %>
<%=Html.EditorFor(x=>x.SuperUser) %> <%=Html.EditorFor(x=>x.SuperUser) %>
<%=Html.ValidationMessage("SuperUser", "*") %> <%=Html.ValidationMessage("SuperUser", "*") %>
</fieldset> </div>
<%=Html.EditorFor(s=>s.Id) %>
</fieldset> </fieldset>
<%= Html.EditorForItem(Model.ViewModel) %> <%= Html.EditorForItem(Model.ViewModel) %>
<fieldset> <fieldset>
<%=Html.EditorFor(s => s.Id) %>
<input class="button" type="submit" value="<%=_Encoded("Save") %>" /> <input class="button" type="submit" value="<%=_Encoded("Save") %>" />
</fieldset> </fieldset>
<% } %> <% } %>

View File

@@ -2,9 +2,9 @@
<%@ Import Namespace="Orchard.Core.Themes.Records"%> <%@ Import Namespace="Orchard.Core.Themes.Records"%>
<fieldset> <fieldset>
<legend><%=_Encoded("Themes")%></legend> <legend><%=_Encoded("Themes")%></legend>
<fieldset> <div>
<%= Html.LabelFor(x=>x.CurrentThemeName) %> <%= Html.LabelFor(x=>x.CurrentThemeName) %>
<%= Html.EditorFor(x=>x.CurrentThemeName) %> <%= Html.EditorFor(x=>x.CurrentThemeName) %>
<%= Html.ValidationMessage("CurrentThemeName", "*")%> <%= Html.ValidationMessage("CurrentThemeName", "*")%>
</fieldset> </div>
</fieldset> </fieldset>

View File

@@ -1,9 +1,8 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ContentItemViewModel<SandboxPage>>" %> <%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ContentItemViewModel<SandboxPage>>" %>
<%@ Import Namespace="Orchard.Mvc.ViewModels"%> <%@ Import Namespace="Orchard.Mvc.ViewModels"%>
<%@ Import Namespace="Orchard.Sandbox.Models" %> <%@ Import Namespace="Orchard.Sandbox.Models" %>
<div class="item"> <div class="item">
<% Html.Zone("title"); %> <% Html.Zone("title");
<% Html.Zone("metatop"); %> Html.Zone("metatop");
<% Html.Zone("body"); %> Html.Zone("body"); %>
</div> </div>

View File

@@ -1,4 +1,4 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ContentItemViewModel<SandboxPage>>" %> <%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ContentItemViewModel<SandboxPage>>" %>
<%@ Import Namespace="Orchard.Mvc.ViewModels"%> <%@ Import Namespace="Orchard.Mvc.ViewModels"%>
<%@ Import Namespace="Orchard.Sandbox.Models" %> <%@ Import Namespace="Orchard.Sandbox.Models" %>
<div class="item"> <div class="item">
@@ -8,8 +8,8 @@
</div> </div>
<% Html.Zone("metatop"); %> <% Html.Zone("metatop"); %>
<div class="actions"> <div class="actions">
<%=Html.ItemEditLink("Edit this page", Model.Item) %> <%=Html.ItemEditLink(T("Edit this page").ToString(), Model.Item) %>
<%=Html.ActionLink("Return to list", "index") %> <%=Html.ActionLink(T("Return to list").ToString(), "index") %>
<% Html.Zone("actions"); %> <% Html.Zone("actions"); %>
</div> </div>
<div class="body"> <div class="body">

View File

@@ -1,5 +1,3 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IContent>" %> <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IContent>" %>
<%@ Import Namespace="Orchard.Sandbox.Models" %> <%@ Import Namespace="Orchard.ContentManagement"%>
<%@ Import Namespace="Orchard.ContentManagement.ViewModels" %> <h2><%=Html.ItemDisplayLink(Model) %></h2>
<%@ Import Namespace="Orchard.ContentManagement" %>
<h1><%=Html.ItemDisplayLink(Model) %></h1>

View File

@@ -1,9 +1,8 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ContentItemViewModel<SandboxPage>>" %> <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ContentItemViewModel<SandboxPage>>" %>
<%@ Import Namespace="Orchard.Mvc.ViewModels"%> <%@ Import Namespace="Orchard.Mvc.ViewModels"%>
<%@ Import Namespace="Orchard.Sandbox.Models" %> <%@ Import Namespace="Orchard.Sandbox.Models"%>
<fieldset>
<li> <%=Html.LabelFor(m => m.Item.Record.Name) %>
<%=Html.LabelFor(m => m.Item.Record.Name)%> <%=Html.EditorFor(m => m.Item.Record.Name) %>
<%=Html.EditorFor(m => m.Item.Record.Name)%> </fieldset>
</li>
<% Html.ZonesAny(); %> <% Html.ZonesAny(); %>

View File

@@ -1,8 +1,10 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Orchard.Sandbox.Models.SandboxSettingsRecord>" %> <%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<SandboxSettingsRecord>" %>
<%@ Import Namespace="Orchard.Sandbox.Models"%>
<fieldset> <fieldset>
<legend>Sandbox</legend> <legend>Sandbox</legend>
<%= Html.LabelFor(x=>x.AllowAnonymousEdits) %> <div>
<%= Html.EditorFor(x=>x.AllowAnonymousEdits) %> <%=Html.EditorFor(m => m.AllowAnonymousEdits) %>
<%= Html.ValidationMessage("AllowAnonymousEdits", "*")%> <label class="forcheckbox" for="SandboxSettings_AllowAnonymousEdits"><%=_Encoded("Anyone can create and edit pages") %></label>
<br /> <%=Html.ValidationMessage("AllowAnonymousEdits", "*") %>
</div>
</fieldset> </fieldset>

View File

@@ -1,7 +1,10 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageCreateViewModel>" %> <%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<PageCreateViewModel>" %>
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %> <%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
<h1><%=Html.TitleForPage("Create Page")%></h1> <h1><%=Html.TitleForPage(T("Create Page").ToString())%></h1>
<%using (Html.BeginFormAntiForgeryPost()) { %> <% using (Html.BeginFormAntiForgeryPost()) { %>
<%=Html.LabelFor(x => x.Name)%><%=Html.EditorFor(x => x.Name)%> <fieldset>
<input type="submit" name="submit" value="Create" /> <%=Html.LabelFor(x => x.Name) %>
<%=Html.EditorFor(x => x.Name) %>
<input type="submit" name="submit" value="<%=_Encoded("Create") %>" />
</fieldset>
<% } %> <% } %>

View File

@@ -1,7 +1,9 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageEditViewModel>" %> <%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<PageEditViewModel>" %>
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %> <%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
<h1><%=Html.TitleForPage("Edit Page")%></h1> <h1><%=Html.TitleForPage(T("Edit Page").ToString()) %></h1>
<%using (Html.BeginFormAntiForgeryPost()) { %> <%using (Html.BeginFormAntiForgeryPost()) { %>
<%=Html.EditorForItem(Model.Page) %> <%=Html.EditorForItem(Model.Page) %>
<input type="submit" name="submit" value="Save" /> <fieldset>
<input type="submit" name="submit" value="<%=_Encoded("Save") %>" />
</fieldset>
<% } %> <% } %>

View File

@@ -1,7 +1,5 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageIndexViewModel>" %> <%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<PageIndexViewModel>" %>
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %> <%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
<h1><%=Html.TitleForPage("Sandbox Pages")%></h1> <h1><%=Html.TitleForPage(T("Sandbox Pages").ToString()) %></h1>
<p><%=Html.ActionLink("Create new page", "create") %></p> <p><%=Html.ActionLink(T("Create new page").ToString(), "create") %></p>
<%foreach (var item in Model.Pages) {%> <%=Html.UnorderedList(Model.Pages, (sp, i) => Html.DisplayForItem(sp).ToHtmlString(), "pages contentItems") %>
<%=Html.DisplayForItem(item) %>
<%}%>

View File

@@ -1,3 +1,3 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageShowViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageShowViewModel>" %>
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %> <%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
<%= Html.DisplayForItem(Model.Page) %> <%=Html.DisplayForItem(Model.Page) %>