mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
More updates to the CMSPages admin UI. Have only the bulk action progress pages left on this pass.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4042011
This commit is contained in:
@@ -127,11 +127,11 @@
|
||||
<Content Include="Views\Admin\BulkDeleteConfirm.aspx" />
|
||||
<Content Include="Views\Admin\BulkPublishLater.aspx" />
|
||||
<Content Include="Views\Admin\EditorTemplates\inputTextPermalink.ascx" />
|
||||
<Content Include="Views\Admin\EditorTemplates\TemplateDescriptor.ascx" />
|
||||
<Content Include="Views\Admin\Export.aspx" />
|
||||
<Content Include="Views\Admin\Edit.aspx" />
|
||||
<Content Include="Views\Admin\Create.aspx" />
|
||||
<Content Include="Views\Admin\EditorTemplates\PageCreateViewModel.ascx" />
|
||||
<Content Include="Views\Admin\EditorTemplates\inputTextArea.ascx" />
|
||||
<Content Include="Views\Admin\EditorTemplates\inputTextLarge.ascx" />
|
||||
<Content Include="Views\Templates\ExtraUserControl.ascx" />
|
||||
<Content Include="Views\Templates\ThreeColumns.aspx" />
|
||||
|
@@ -2,40 +2,23 @@
|
||||
<%@ Import Namespace="Orchard.CmsPages.Services.Templates"%>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<% Html.Include("Head"); %>
|
||||
<div class="yui-u">
|
||||
<h2>Change Template</h2>
|
||||
<p class="bottomSpacer">
|
||||
Select your layout from one of the templates below.</p>
|
||||
</div>
|
||||
|
||||
<div class="yui-u">
|
||||
<%using (Html.BeginForm()) { %>
|
||||
<%= Html.ValidationSummary() %>
|
||||
|
||||
|
||||
<div class="yui-u first">
|
||||
|
||||
<ol>
|
||||
<% foreach (TemplateDescriptor template in Model.Templates) {%>
|
||||
<li>
|
||||
<ul>
|
||||
<li class="clearLayout">
|
||||
<h3><%=Html.Encode(template.DisplayName)%></h3>
|
||||
</li>
|
||||
<li>
|
||||
<label title="<%=Html.Encode(template.DisplayName)%>" for="TemplateName_<%=template.Name%>">
|
||||
<%=Html.RadioButton("TemplateName", template.Name, Model.TemplateName == template.Name, new{id="TemplateName_" + template.Name})%>
|
||||
Select this template</label>
|
||||
</li>
|
||||
<li class="floatLeft"><img src="<%=Html.Encode(template.Name)%>.gif" alt="<%=Html.Encode(template.DisplayName)%>" class="templateThumbnail" /></li>
|
||||
<li class="floatLeft"><p><%=Html.Encode(template.Description)%></p></li>
|
||||
</ul>
|
||||
</li>
|
||||
<% } %>
|
||||
<li class="clearLayout"><input class="button" type="submit" value="Save Template Change" /><%=Html.ActionLink("Cancel", "Edit", new { Id = ViewContext.RouteData.GetRequiredString("id") }, new { @class = "linkButton" })%></li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<%}/*EndForm*/%>
|
||||
</div>
|
||||
<h2>Change Template</h2>
|
||||
<p>Select your layout from one of the templates below.</p>
|
||||
<% using (Html.BeginForm()) {
|
||||
%><%= Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<ol class="templates">
|
||||
<% foreach (var template in Model.Templates) {
|
||||
var t = template; %>
|
||||
<li>
|
||||
<%=Html.EditorFor(m => t) %>
|
||||
</li>
|
||||
<% } %>
|
||||
</ol>
|
||||
</fieldset>
|
||||
<div>
|
||||
<input class="button" type="submit" value="Save Template Change" />
|
||||
<%=Html.ActionLink("Cancel", "Edit", new { Id = ViewContext.RouteData.GetRequiredString("id") }, new { @class = "cancel" })%>
|
||||
</div><%
|
||||
} %>
|
||||
<% Html.Include("Foot"); %>
|
@@ -1,15 +1,10 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.CmsPages.ViewModels.PageCreateViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<% Html.Include("Head"); %>
|
||||
<div class="yui-u">
|
||||
<h2>Add a Page</h2>
|
||||
<p class="bottomSpacer">
|
||||
Select your layout from one of the templates below.</p>
|
||||
</div>
|
||||
<div class="yui-u">
|
||||
<%using (Html.BeginForm()) { %>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<%= Html.EditorForModel() %>
|
||||
<%}/*EndForm*/%>
|
||||
</div>
|
||||
<h2>Add a Page</h2>
|
||||
<p>Select your layout from one of the templates below.</p>
|
||||
<%using (Html.BeginForm()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForModel() %>
|
||||
<% } %>
|
||||
<% Html.Include("Foot"); %>
|
@@ -1,32 +1,15 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Orchard.CmsPages.ViewModels.PageCreateViewModel>" %>
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PageCreateViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.CmsPages.Services.Templates" %>
|
||||
<%@ Import Namespace="Orchard.CmsPages.ViewModels" %>
|
||||
<%@ Import Namespace="Orchard.Utility" %>
|
||||
<%--
|
||||
<ol>
|
||||
<%=Html.EditorFor(m=>m.Title, "inputTextLarge") %>
|
||||
<%=Html.EditorFor(m=>m.Slug, "inputTextLarge") %>
|
||||
</ol>--%>
|
||||
|
||||
<div class="yui-u first">
|
||||
<ol>
|
||||
<% foreach (TemplateDescriptor template in Model.Templates) {%>
|
||||
<fieldset>
|
||||
<ol class="templates">
|
||||
<% foreach (var template in Model.Templates) {
|
||||
var t = template; %>
|
||||
<li>
|
||||
<ul>
|
||||
<li class="clearLayout">
|
||||
<h3><%=Html.Encode(template.DisplayName)%></h3>
|
||||
</li>
|
||||
<li>
|
||||
<label title="<%=Html.Encode(template.DisplayName)%>" for="TemplateName_<%=template.Name%>">
|
||||
<%=Html.RadioButton("TemplateName", template.Name, Model.TemplateName == template.Name, new{id="TemplateName_" + template.Name})%>
|
||||
Select this template</label>
|
||||
</li>
|
||||
<li class="floatLeft"><img src="<%=Html.Encode(template.Name)%>.gif" alt="<%=Html.Encode(template.DisplayName)%>" class="templateThumbnail" /></li>
|
||||
<li class="floatLeft"><p><%=Html.Encode(template.Description)%></p></li>
|
||||
</ul>
|
||||
<%=Html.EditorFor(m => t) %>
|
||||
</li>
|
||||
<% } %>
|
||||
<li class="clearLayout"><input class="button" type="submit" value="Create" /></li>
|
||||
</ol>
|
||||
|
||||
</div>
|
||||
</ol>
|
||||
</fieldset>
|
||||
<div><input class="button" type="submit" value="Create" /></div>
|
@@ -1,6 +0,0 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>
|
||||
<li>
|
||||
<%=Html.LabelForModel() %>
|
||||
<%=Html.TextArea("",Model) %>
|
||||
<%=Html.ValidationMessage("","*") %>
|
||||
</li>
|
@@ -1,5 +1,5 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||
<fieldset>
|
||||
<label class="sub" for="permalink">Permalink: <span>http://localhost/</span></label>
|
||||
<span><%=Html.TextBox("", Model, new { id = "permalink", @class = "text" })%> <span class="helperText smallText clearLayout"> « How to write a permalink. » </span></span>
|
||||
<span><%=Html.TextBox("", Model, new { id = "permalink", @class = "text" })%> <span> « How to write a permalink. » </span></span>
|
||||
</fieldset>
|
@@ -1,19 +1,19 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<System.Collections.Generic.IEnumerable<Orchard.CmsPages.Models.Page>>" %>
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Orchard.CmsPages.Models.Page>>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<% Html.Include("Head"); %>
|
||||
<div class="yui-g">
|
||||
<h2>Export</h2>
|
||||
<p class="bottomSpacer">
|
||||
Possible text about setting up a page goes here. Lorem ipsum dolor sit amet, consectetur
|
||||
adipiscing elit. Nulla erat turpis, blandit eget feugiat nec, tempus vel quam. Mauris
|
||||
et neque eget justo suscipit blandit.</p>
|
||||
<ol><%foreach (var page in Model) { %><li>
|
||||
Page Id <%=page.Id %>
|
||||
<ol><%foreach (var revision in page.Revisions) { %>
|
||||
<li>Revision <%=revision.Number %> <b><%=revision.Title %></b> ~/<%=revision.Slug %>
|
||||
<br />Modified:<%=revision.ModifiedDate %>
|
||||
<br />Published:<%=revision.PublishedDate %></li>
|
||||
<%} %></ol>
|
||||
</li><%} %></ol>
|
||||
</div>
|
||||
<h2>Export</h2>
|
||||
<p>Possible text about setting up a page goes here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla erat turpis, blandit eget feugiat nec, tempus vel quam. Mauris et neque eget justo suscipit blandit.</p>
|
||||
<ol>
|
||||
<% foreach (var page in Model) {
|
||||
%><li>Page Id <%=page.Id %>
|
||||
<ol>
|
||||
<% foreach (var revision in page.Revisions) {
|
||||
%><li>Revision <%=revision.Number %> <strong><%=revision.Title %></strong> ~/<%=revision.Slug %>
|
||||
<br />Modified: <%=revision.ModifiedDate %>
|
||||
<br />Published: <%=revision.PublishedDate %></li><%
|
||||
} %>
|
||||
</ol>
|
||||
</li><%
|
||||
} %>
|
||||
</ol>
|
||||
<% Html.Include("Foot"); %>
|
@@ -29,7 +29,7 @@
|
||||
</select>
|
||||
<input class="button" type="submit" name="submit.Filter" value="Apply"/>
|
||||
</fieldset>
|
||||
<p class="manage"><%=Html.ActionLink("Add a page", "Create", new {}, new { @class = "button" }) %></p>
|
||||
<div class="manage"><%=Html.ActionLink("Add a page", "Create", new {}, new { @class = "button" }) %></div>
|
||||
<fieldset>
|
||||
<table summary="This is a table of the PageEntries currently available for use in your application.">
|
||||
<colgroup>
|
||||
@@ -95,6 +95,6 @@
|
||||
}%>
|
||||
</table>
|
||||
</fieldset>
|
||||
<p class="manage"><%=Html.ActionLink("Add a page", "Create", new {}, new { @class = "button"}) %></p>
|
||||
<div class="manage"><%=Html.ActionLink("Add a page", "Create", new {}, new { @class = "button"}) %></div>
|
||||
<% } %>
|
||||
<% Html.Include("Foot"); %>
|
Reference in New Issue
Block a user