2009-11-07 22:49:58 +00:00
|
|
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.CmsPages.ViewModels.PageIndexViewModel>" %>
|
|
|
|
<%@ Import Namespace="Orchard.CmsPages.ViewModels"%>
|
|
|
|
<%@ Import Namespace="Orchard.Utility"%>
|
|
|
|
<%@ Import Namespace="Orchard.CmsPages.Services.Templates"%>
|
|
|
|
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
2009-11-22 08:46:22 +00:00
|
|
|
<% Html.Include("Head"); %>
|
2009-11-07 22:49:58 +00:00
|
|
|
<%using (Html.BeginForm()) { %>
|
|
|
|
<div class="yui-u">
|
2009-11-22 08:46:22 +00:00
|
|
|
<h2>Publish later</h2>
|
2009-11-07 22:49:58 +00:00
|
|
|
<p class="bottomSpacer">Enter the scheduled publication date:</p>
|
|
|
|
<%=Html.EditorFor(m => m.Options.BulkPublishLaterDate)%>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="yui-u">
|
|
|
|
<%= Html.ValidationSummary() %>
|
|
|
|
|
|
|
|
<div class="yui-u first">
|
|
|
|
<ol>
|
|
|
|
<li class="clearLayout">
|
|
|
|
<input type="hidden" name="<%=Html.NameOf(m => m.Options.BulkAction)%>" value="<%=PageIndexBulkAction.PublishLater%>" />
|
|
|
|
<input class="button" type="submit" name="submit.BulkEdit" value="Publish later" />
|
|
|
|
</li>
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%
|
|
|
|
int pageIndex = 0;
|
|
|
|
foreach (var pageEntry in Model.PageEntries.Where(e => e.IsChecked)) {
|
|
|
|
%>
|
2009-11-08 06:23:03 +00:00
|
|
|
<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)%>"/>
|
2009-11-07 22:49:58 +00:00
|
|
|
<% pageIndex++;
|
|
|
|
}%>
|
|
|
|
</div>
|
|
|
|
<%}/*EndForm*/%>
|
2009-11-22 08:46:22 +00:00
|
|
|
<% Html.Include("Foot"); %>
|