2009-12-01 20:24:18 +00:00
|
|
|
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BlogPostEditViewModel>" %>
|
|
|
|
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
|
|
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
|
|
|
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
2009-12-02 22:49:30 +00:00
|
|
|
<% Html.Include("AdminHead"); %>
|
2009-12-01 20:24:18 +00:00
|
|
|
<h2>Edit Blog Post</h2>
|
|
|
|
<% using (Html.BeginForm()) { %>
|
|
|
|
<%=Html.ValidationSummary() %>
|
|
|
|
<%=Html.EditorForModel() %>
|
|
|
|
<fieldset><input class="button" type="submit" value="Save" /></fieldset>
|
2009-12-03 21:55:14 +00:00
|
|
|
<%foreach (var editor in Model.ItemView.Editors) { %>
|
2009-12-01 23:53:28 +00:00
|
|
|
<%-- TODO: why is Body in editors? --%>
|
2009-12-02 06:16:22 +00:00
|
|
|
<%-- TODO: because any content type using the body editor doesn't need
|
|
|
|
to re-implement the rich editor, media extensions, format filter chain selection, etc --%>
|
2009-12-03 21:55:14 +00:00
|
|
|
<% if (!String.Equals(editor.Prefix, "Body")) { %>
|
|
|
|
<%=Html.EditorFor(m=>editor.Model, editor.TemplateName, editor.Prefix) %>
|
|
|
|
<% } %>
|
|
|
|
<%} %>
|
|
|
|
<% } %>
|
2009-12-02 22:49:30 +00:00
|
|
|
<% Html.Include("AdminFoot"); %>
|