@model Project_Unite.Models.EditPostViewModel @{ ViewBag.Title = "Edit post"; }

Edit post

@using (Html.BeginForm()) { @Html.AntiForgeryToken() @Html.HiddenFor(Model=>Model.Id)

Body:

Make your edits to the post in this field. CommonMark-compliant Markdown is supported.

@Html.TextAreaFor(Model=>Model.Contents, new { rows = "10", @class="form-control" })

Edit reason:

Why did you edit the post? This reason is displayed in the Moderator Control Panel as well as at the bottom of the post.

@Html.TextBoxFor(Model => Model.EditReason, new { @class = "form-control" })
}