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"%>
|
|
|
|
<% Html.Include("Head"); %>
|
|
|
|
<h2>Edit Blog Post</h2>
|
|
|
|
<p><a href="<%=Url.Blogs() %>">Manage Blogs</a> > <a href="<%=Url.BlogEdit(Model.Blog.Slug) %>"><%=Html.Encode(Model.Blog.Name)%></a> > <a href="<%=Url.BlogPostEdit(Model.Blog.Slug, Model.Post.Slug) %>"><%=Model.Title %></a></p>
|
|
|
|
<% using (Html.BeginForm()) { %>
|
|
|
|
<%=Html.ValidationSummary() %>
|
|
|
|
<%=Html.EditorForModel() %>
|
|
|
|
<fieldset><input class="button" type="submit" value="Save" /></fieldset>
|
|
|
|
<% } %>
|
2009-12-01 23:53:28 +00:00
|
|
|
<%foreach (var editor in Model.Editors) { %>
|
|
|
|
<%-- TODO: why is Body in editors? --%>
|
|
|
|
<% if (!String.Equals(editor.Prefix, "Body")) { %>
|
|
|
|
<%=Html.EditorFor(m=>editor.Model, editor.TemplateName, editor.Prefix) %>
|
|
|
|
<% } %>
|
|
|
|
<%} %>
|
2009-12-01 20:24:18 +00:00
|
|
|
<% Html.Include("Foot"); %>
|