2009-12-01 20:24:18 +00:00
|
|
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogPostEditViewModel>" %>
|
2009-12-03 22:33:34 +00:00
|
|
|
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
2009-12-01 20:24:18 +00:00
|
|
|
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
|
|
|
<div class="sections">
|
|
|
|
<div class="primary">
|
2009-12-04 03:55:30 +00:00
|
|
|
<h3>Content</h3>
|
2009-12-01 20:24:18 +00:00
|
|
|
<%-- todo: (heskew) thin out the fieldsets if they become overkill --%>
|
|
|
|
<fieldset>
|
|
|
|
<label for="title">Title:</label>
|
2009-12-04 03:55:30 +00:00
|
|
|
<span><%=Html.TextBoxFor(m => m.Title, new { id = "title", @class = "large text" })%></span>
|
2009-12-01 20:24:18 +00:00
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
2009-12-03 22:33:34 +00:00
|
|
|
<label class="sub" for="permalink">Permalink: <span><%=Request.Url.ToRootString() %>/<%=Model.Blog.Slug %>/</span></label>
|
2009-12-01 20:24:18 +00:00
|
|
|
<span><%=Html.TextBoxFor(m => m.Slug, new { id = "permalink", @class = "text" })%> <span> « How to write a permalink. » </span></span>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
2009-12-03 04:54:44 +00:00
|
|
|
<%--<label for="body">Excerpt:</label>
|
|
|
|
<span>[still needed]</span>--%>
|
2009-12-01 20:24:18 +00:00
|
|
|
<label for="body">Body:</label>
|
|
|
|
<span><%=Html.TextAreaFor(m => m.Body, new { id = "body", @class = "html" })%></span>
|
|
|
|
</fieldset>
|
2009-12-04 03:55:30 +00:00
|
|
|
<% foreach (var e in Model.ItemView.Editors) {
|
|
|
|
var editor = e;
|
|
|
|
// 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) %>
|
|
|
|
<% }
|
|
|
|
} %>
|
2009-12-01 20:24:18 +00:00
|
|
|
</div>
|
|
|
|
<div class="secondary">
|
|
|
|
<h3>Publish Settings</h3>
|
2009-12-03 22:33:34 +00:00
|
|
|
<%--<fieldset>
|
2009-12-04 03:55:30 +00:00
|
|
|
<label for="Command_PublishNow"><%=Html.RadioButton("Command", "PublishNow", new { id = "Command_PublishNow" }) %> Publish Now</label>
|
2009-12-01 20:24:18 +00:00
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
2009-12-04 03:55:30 +00:00
|
|
|
<label for="Command_PublishLater"><%=Html.RadioButton("Command", "PublishLater", new { id = "Command_PublishLater" }) %> Publish Later</label>
|
|
|
|
<%=Html.EditorFor(m => m.Published) %>
|
2009-12-03 22:33:34 +00:00
|
|
|
</fieldset>--%>
|
2009-12-04 03:55:30 +00:00
|
|
|
<fieldset>
|
|
|
|
<label for="Command_SaveDraft"><%=Html.RadioButton("Command", "SaveDraft", true, new { id = "Command_SaveDraft" }) %> Save Draft</label>
|
|
|
|
</fieldset>
|
2009-12-01 20:24:18 +00:00
|
|
|
<fieldset>
|
|
|
|
<input class="button" type="submit" name="submit.Save" value="Save"/>
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
</div>
|