mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-11-28 09:22:55 +08:00
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043012
21 lines
1.2 KiB
Plaintext
21 lines
1.2 KiB
Plaintext
<%@ 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("AdminHead"); %>
|
|
<h2>Edit Blog Post</h2>
|
|
<p><a href="<%=Url.BlogsForAdmin() %>">Manage Blogs</a> > <a href="<%=Url.BlogForAdmin(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>
|
|
<% } %>
|
|
<%foreach (var editor in Model.ItemView.Editors) { %>
|
|
<%-- TODO: why is Body in editors? --%>
|
|
<%-- 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 --%>
|
|
<% if (!String.Equals(editor.Prefix, "Body")) { %>
|
|
<%=Html.EditorFor(m=>editor.Model, editor.TemplateName, editor.Prefix) %>
|
|
<% } %>
|
|
<%} %>
|
|
<% Html.Include("AdminFoot"); %> |