<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage" %> <%@ Import Namespace="Orchard.CmsPages.Models"%> <%@ Import Namespace="Orchard.Mvc.Html" %> <% Html.Include("Head"); %>

<%=_Encoded("Edit Page")%>

<%=_Encoded("about setting up a page")%>

<%=Html.ValidationSummary() %>
<%using (Html.BeginForm()) {%>

<%=_Encoded("Page Content") %>

<%-- todo: (heskew) change the editors to be self-contained (fieldset > editor) --%>
    <%=Html.EditorFor(m => m.Revision.Title, "inputTextLarge")%> <%=Html.EditorFor(m => m.Revision.Slug, "inputTextPermalink")%> <%foreach (ContentItem content in Model.Revision.Contents) {%> <%if (Model.Template != null && Model.Template.Zones.Contains(content.ZoneName) == false) {%>
    These contents are assigned to a zone that does not exist in the current template. Please delete it or copy it to another zone.
    <%}%> <%= Html.TextArea("Revision.Contents[" + content.ZoneName + "].Content", content.Content) %> <%}%>
  1. <%--<%=Html.LabelFor(m=>m.Revision.TemplateName) %> <%=Html.DisplayFor(m=>m.Revision.TemplateName)%>--%>

    Current layout: <%=Html.Encode(Model.Revision.TemplateName)%> <%=Html.ActionLink("Change Template", "ChooseTemplate", new { Model.Revision.Page.Id }, new { @class = "linkButton" })%>

<%=_Encoded("Publish Settings")%>

  1. <%=Html.EditorFor(m => m.PublishLaterDate)%>
  2. />
<%}/*EndForm*/%>
<% Html.Include("Foot"); %>