Files
Orchard/src/Orchard.Web/Packages/Orchard.CmsPages/Views/Admin/Edit.aspx
skewed 3c31807245 - More Admin UI work (CMSPages). The meat of each page still needs a little work otherwise things are shaping up nicely
- Adding searchreplace TinyMCE plugin

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4041966
2009-11-23 22:59:54 +00:00

56 lines
3.2 KiB
Plaintext

<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<Orchard.CmsPages.ViewModels.PageEditViewModel>" %>
<%@ Import Namespace="Orchard.CmsPages.Models"%>
<%@ Import Namespace="Orchard.Mvc.Html" %>
<% Html.Include("Head"); %>
<h2><%=_Encoded("Edit Page")%></h2>
<p class="bottomSpacer"><%=_Encoded("about setting up a page")%></p>
<%=Html.ValidationSummary() %>
<div class="sections">
<%using (Html.BeginForm()) {%>
<div class="primary">
<h3><%=_Encoded("Page Content") %></h3>
<%-- todo: (heskew) change the editors to be self-contained (fieldset > editor) --%>
<ol>
<%=Html.EditorFor(m => m.Revision.Title, "inputTextLarge")%>
<%=Html.EditorFor(m => m.Revision.Slug, "inputTextPermalink")%>
<%foreach (ContentItem content in Model.Revision.Contents) {%>
<label for="<%="Revision.Contents[" + content.ZoneName + "].Content" %>">
<%=_Encoded("Zone Name")%>: <%= content.ZoneName %></label>
<%if (Model.Template != null && Model.Template.Zones.Contains(content.ZoneName) == false) {%>
<div class="warning">These contents are assigned to a zone that does not exist in the current template. Please delete it or copy it to another zone.</div>
<%}%>
<%= Html.TextArea("Revision.Contents[" + content.ZoneName + "].Content", content.Content) %>
</li>
<%}%>
<li>
<%--<%=Html.LabelFor(m=>m.Revision.TemplateName) %>
<%=Html.DisplayFor(m=>m.Revision.TemplateName)%>--%>
<p>
<strong>Current layout:</strong>
<%=Html.Encode(Model.Revision.TemplateName)%>
<%=Html.ActionLink("Change Template", "ChooseTemplate", new { Model.Revision.Page.Id }, new { @class = "linkButton" })%>
</p>
</li>
</ol>
</div>
<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_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>
<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*/%>
</div>
<% Html.Include("Foot"); %>