mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00
Finishing up initial cleanup pass on the CMSPages admin UI
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4042066
This commit is contained in:
@@ -1,37 +1,25 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.CmsPages.ViewModels.PageIndexViewModel>" %>
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageIndexViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.CmsPages.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.Utility"%>
|
||||
<%@ Import Namespace="Orchard.CmsPages.Services.Templates"%>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<% Html.Include("Head"); %>
|
||||
<div class="yui-u">
|
||||
<h2>Delete pages</h2>
|
||||
<p class="bottomSpacer">
|
||||
Are you sure you want to delete the pages?</p>
|
||||
</div>
|
||||
|
||||
<div class="yui-u">
|
||||
<p>Are you sure you want to delete the pages?</p>
|
||||
<% using (Html.BeginForm()) { %>
|
||||
<%= Html.ValidationSummary() %>
|
||||
|
||||
<div class="yui-u first">
|
||||
<ol>
|
||||
<li class="clearLayout">
|
||||
<fieldset>
|
||||
<input type="hidden" name="<%=Html.NameOf(m => m.Options.BulkAction)%>" value="<%=PageIndexBulkAction.Delete%>" />
|
||||
<input type="hidden" name="<%=Html.NameOf(m => m.Options.BulkDeleteConfirmed)%>" value="true" />
|
||||
<input class="button" type="submit" name="submit.BulkEdit" value="Delete" />
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<%
|
||||
int pageIndex = 0;
|
||||
foreach (var pageEntry in Model.PageEntries.Where(e => e.IsChecked)) {
|
||||
%>
|
||||
<input type="hidden" value="<%=pageEntry.PageId %>" name="<%=Html.NameOf(m => m.PageEntries[pageIndex].PageId)%>"/>
|
||||
<input type="hidden" value="<%=pageEntry.IsChecked %>" name="<%=Html.NameOf(m => m.PageEntries[pageIndex].IsChecked)%>"/>
|
||||
<% pageIndex++;
|
||||
var pi = pageIndex;
|
||||
%><input type="hidden" value="<%=pageEntry.PageId %>" name="<%=Html.NameOf(m => m.PageEntries[pi].PageId)%>"/>
|
||||
<input type="hidden" value="<%=pageEntry.IsChecked %>" name="<%=Html.NameOf(m => m.PageEntries[pi].IsChecked)%>"/><%
|
||||
pageIndex++;
|
||||
} %>
|
||||
<%}/*EndForm*/%>
|
||||
</div>
|
||||
</fieldset>
|
||||
<% } %>
|
||||
<% Html.Include("Foot"); %>
|
@@ -1,36 +1,25 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.CmsPages.ViewModels.PageIndexViewModel>" %>
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageIndexViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.CmsPages.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.Utility"%>
|
||||
<%@ Import Namespace="Orchard.CmsPages.Services.Templates"%>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<% Html.Include("Head"); %>
|
||||
<% using (Html.BeginForm()) { %>
|
||||
<div class="yui-u">
|
||||
<h2>Publish later</h2>
|
||||
<p class="bottomSpacer">Enter the scheduled publication date:</p>
|
||||
<%=Html.EditorFor(m => m.Options.BulkPublishLaterDate)%>
|
||||
</div>
|
||||
|
||||
<div class="yui-u">
|
||||
<p>Enter the scheduled publication date:</p>
|
||||
<%=Html.ValidationSummary() %>
|
||||
|
||||
<div class="yui-u first">
|
||||
<ol>
|
||||
<li class="clearLayout">
|
||||
<input type="hidden" name="<%=Html.NameOf(m => m.Options.BulkAction)%>" value="<%=PageIndexBulkAction.PublishLater%>" />
|
||||
<fieldset>
|
||||
<%=Html.EditorFor(m => m.Options.BulkPublishLaterDate)%>
|
||||
<input class="button" type="submit" name="submit.BulkEdit" value="Publish later" />
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="<%=Html.NameOf(m => m.Options.BulkAction)%>" value="<%=PageIndexBulkAction.PublishLater%>" />
|
||||
<%
|
||||
int pageIndex = 0;
|
||||
foreach (var pageEntry in Model.PageEntries.Where(e => e.IsChecked)) {
|
||||
%>
|
||||
<input type="hidden" value="<%=pageEntry.PageId %>" name="<%=Html.NameOf(m => m.PageEntries[pageIndex].PageId)%>"/>
|
||||
<input type="hidden" value="<%=pageEntry.IsChecked %>" name="<%=Html.NameOf(m => m.PageEntries[pageIndex].IsChecked)%>"/>
|
||||
<% pageIndex++;
|
||||
var pi = pageIndex;
|
||||
%><input type="hidden" value="<%=pageEntry.PageId %>" name="<%=Html.NameOf(m => m.PageEntries[pi].PageId)%>"/>
|
||||
<input type="hidden" value="<%=pageEntry.IsChecked %>" name="<%=Html.NameOf(m => m.PageEntries[pi].IsChecked)%>"/><%
|
||||
pageIndex++;
|
||||
} %>
|
||||
</div>
|
||||
<%}/*EndForm*/%>
|
||||
</fieldset>
|
||||
<% } %>
|
||||
<% Html.Include("Foot"); %>
|
@@ -7,13 +7,13 @@
|
||||
<% using (Html.BeginForm()) {
|
||||
%><%= Html.ValidationSummary() %>
|
||||
<fieldset>
|
||||
<ol class="templates">
|
||||
<% foreach (var template in Model.Templates) {
|
||||
<ol class="templates"><%
|
||||
foreach (var template in Model.Templates) {
|
||||
var t = template; %>
|
||||
<li>
|
||||
<%=Html.EditorFor(m => t) %>
|
||||
</li>
|
||||
<% } %>
|
||||
<li><%=
|
||||
Html.EditorFor(m => t) %>
|
||||
</li><%
|
||||
} %>
|
||||
</ol>
|
||||
</fieldset>
|
||||
<div>
|
||||
|
@@ -31,18 +31,18 @@
|
||||
<div class="secondary">
|
||||
<h3><%=_Encoded("Publish Settings") %></h3>
|
||||
<fieldset>
|
||||
<ol class="formList">
|
||||
<li><label for="Command_PublishNow"><%=Html.RadioButton("Command", "PublishNow", new { id = "Command_PublishNow" }) %> Publish Now</label></li>
|
||||
<li>
|
||||
<label for="Command_PublishNow"><%=Html.RadioButton("Command", "PublishNow", new { id = "Command_PublishNow" }) %> Publish Now</label>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<label for="Command_PublishLater"><%=Html.RadioButton("Command", "PublishLater", new { id = "Command_PublishLater" }) %> Publish Later</label>
|
||||
<%=Html.EditorFor(m => m.PublishLaterDate) %>
|
||||
</li>
|
||||
<li><label for="Command_SaveDraft"><%=Html.RadioButton("Command", "SaveDraft", new { id = "Command_SaveDraft" }) %> Save Draft</label></li>
|
||||
<li>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<label for="Command_SaveDraft"><%=Html.RadioButton("Command", "SaveDraft", new { id = "Command_SaveDraft" }) %> Save Draft</label></li>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<input class="button" type="submit" name="submit.Save" value="Save"/>
|
||||
<input class="button" type="submit" name="submit.DeleteDraft" value="Delete Draft" <%=Model.CanDeleteDraft ? "" : "disabled" %>/>
|
||||
</li>
|
||||
</ol>
|
||||
</fieldset>
|
||||
</div>
|
||||
<%}/*EndForm*/%>
|
||||
|
@@ -8,8 +8,8 @@
|
||||
var t = template; %>
|
||||
<li>
|
||||
<%=Html.EditorFor(m => t) %>
|
||||
</li>
|
||||
<% } %>
|
||||
</li><%
|
||||
} %>
|
||||
</ol>
|
||||
</fieldset>
|
||||
<div><input class="button" type="submit" value="Create" /></div>
|
@@ -7,7 +7,7 @@
|
||||
<li>
|
||||
<label title="<%=Html.Encode(Model.DisplayName)%>" for="TemplateName_<%=Model.Name%>">
|
||||
<%-- todo: (heskew) need to know if this template descriptor is what's currently set. view model? --%>
|
||||
<%=Html.RadioButton("TemplateName", Model.Name, "" == Model.Name, new { id="TemplateName_" + Model.Name })%>
|
||||
<input type="radio" name="TemplateName" checked="<%="" == Model.Name ? "checked" : ""%>" value="<%=Model.Name %>" id="<%=string.Format("TemplateName_{0}", Model.Name) %>" />
|
||||
Select this template</label>
|
||||
</li>
|
||||
<li>
|
||||
|
Reference in New Issue
Block a user