mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Populating initial tree
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4038902
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<%@ 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" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head id="Head1" runat="server">
|
||||
<title>Index2</title>
|
||||
<% Html.Include("Head"); %>
|
||||
</head>
|
||||
<body>
|
||||
<% Html.Include("Header"); %>
|
||||
<%using (Html.BeginForm()) { %>
|
||||
<div class="yui-u">
|
||||
<h2 class="separator">Publish later</h2>
|
||||
<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)) {
|
||||
%>
|
||||
<%--TODO: Use "NameOf" when it supports these expressions--%>
|
||||
<input type="hidden" value="<%=pageEntry.PageId %>" name="<%=string.Format("PageEntries[{0}].PageId", pageIndex)%>"/>
|
||||
<input type="hidden" value="<%=pageEntry.IsChecked %>" name="<%=string.Format("PageEntries[{0}].IsChecked", pageIndex)%>"/>
|
||||
<% pageIndex++;
|
||||
}%>
|
||||
</div>
|
||||
<%}/*EndForm*/%>
|
||||
<% Html.Include("Footer"); %>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user