91 lines
3.5 KiB
HTML
91 lines
3.5 KiB
HTML
@Master['admin/admin-layout']
|
|
|
|
@Section['Content']
|
|
<form action='/post/@Model.Post.Id/edit' method="post">
|
|
@AntiForgeryToken
|
|
<div class="row">
|
|
<div class="col-sm-9">
|
|
<a href="/posts/list" class="btn btn-default">
|
|
<i class="fa fa-list-ul"></i> @Translate.BackToPostList
|
|
</a>
|
|
<div class="form-group">
|
|
<label class="control-label" for="Title">@Translate.Title</label>
|
|
<input type="text" name="Title" id="Title" class="form-control" value="@Model.Form.Title" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label" for="Permalink">@Translate.Permalink</label>
|
|
<input type="text" name="Permalink" id="Permalink" class="form-control" value="@Model.Form.Permalink" />
|
|
<p class="form-hint"><em>@Translate.startingWith</em> //@Model.WebLog.UrlBase/ </p>
|
|
</div>
|
|
<!-- // TODO: Markdown / HTML choice -->
|
|
<input type="hidden" name="Source" value="html" />
|
|
<div class="form-group">
|
|
<textarea name="Text" id="Text" rows="15">@Model.Form.Text</textarea>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label" for="Tags">@Translate.Tags</label>
|
|
<input type="text" name="Tags" id="Tags" class="form-control" value="@Model.Form.Tags" />
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h4 class="panel-title">@Translate.PostDetails</h4>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="form-group">
|
|
<label class="control-label">@Translate.PostStatus</label>
|
|
<p class="static-control">@Model.Post.Status</p>
|
|
</div>
|
|
@If.IsPublished
|
|
<div class="form-group">
|
|
<label class="control-label">@Translate.PublishedDate</label>
|
|
<p class="static-control">@Model.PublishedDate<br />@Model.PublishedTime</p>
|
|
</div>
|
|
@EndIf
|
|
</div>
|
|
</div>
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h4 class="panel-title">@Translate.Categories</h4>
|
|
</div>
|
|
<div class="panel-body" style="max-height:350px;overflow:scroll;">
|
|
@Each.Categories
|
|
@Current.Indent
|
|
<input type="checkbox" id="Category-@Current.Id" name="Categories" value="@Current.Id" @Current.CheckedAttr />
|
|
|
|
<label for="Category-@Current.Id" title="@Current.Description">@Current.Name</label>
|
|
<br/>
|
|
@EndEach
|
|
</div>
|
|
</div>
|
|
<div class="text-center">
|
|
@If.IsPublished
|
|
<input type="hidden" name="PublishNow" value="true" />
|
|
@EndIf
|
|
@IfNot.IsPublished
|
|
<div>
|
|
<input type="checkbox" name="PublishNow" id="PublishNow" value="true" @Model.PublishNowCheckedAttr />
|
|
<label for="PublishNow">@Translate.PublishThisPost</label>
|
|
</div>
|
|
@EndIf
|
|
<p>
|
|
<button type="submit" class="btn btn-primary">
|
|
<i class="fa fa-floppy-o"></i> @Translate.Save
|
|
</button>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
@EndSection
|
|
|
|
@Section['Scripts']
|
|
<script type="text/javascript" src="/admin/content/tinymce-init.js"></script>
|
|
<script type="text/javascript">
|
|
/** <![CDATA[ */
|
|
$(document).ready(function () { $("#Title").focus() })
|
|
/** ]]> */
|
|
</script>
|
|
@EndSection
|