summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Forum/EditPost.cshtml
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-03-20 16:45:17 -0400
committerMichael <[email protected]>2017-03-20 16:45:17 -0400
commitcdc61eb4ea5309769ad4db84d92594e4dc3dff67 (patch)
treea8297a7aecc4376f07a497a5e02ab5ff165bfbd3 /Project-Unite/Views/Forum/EditPost.cshtml
parentd9f475e1f33bbf39ca0d79d7a6b0c2fd501b4f2d (diff)
downloadproject-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.tar.gz
project-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.tar.bz2
project-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.zip
Initial commit (azure deploy test)
Diffstat (limited to 'Project-Unite/Views/Forum/EditPost.cshtml')
-rw-r--r--Project-Unite/Views/Forum/EditPost.cshtml37
1 files changed, 37 insertions, 0 deletions
diff --git a/Project-Unite/Views/Forum/EditPost.cshtml b/Project-Unite/Views/Forum/EditPost.cshtml
new file mode 100644
index 0000000..ea02f6f
--- /dev/null
+++ b/Project-Unite/Views/Forum/EditPost.cshtml
@@ -0,0 +1,37 @@
+@model Project_Unite.Models.EditPostViewModel
+@{
+ ViewBag.Title = "Edit post";
+}
+
+<h2>Edit post</h2>
+
+@using (Html.BeginForm())
+{
+ @Html.AntiForgeryToken()
+ @Html.HiddenFor(Model=>Model.Id)
+ <table class="table">
+ <tr>
+ <td style="width:25%">
+ <p><strong>Body:</strong></p>
+ <p>Make your edits to the post in this field. CommonMark-compliant Markdown is supported.</p>
+ </td>
+ <td>
+ @Html.TextAreaFor(Model=>Model.Contents, new { rows = "10", @class="form-control" })
+ </td>
+ </tr>
+ <tr>
+ <td style="width:25%">
+ <p><strong>Edit reason:</strong></p>
+ <p>Why did you edit the post? This reason is displayed in the Moderator Control Panel as well as at the bottom of the post.</p>
+ </td>
+ <td>
+ @Html.TextBoxFor(Model => Model.EditReason, new { @class = "form-control" })
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><input type="submit" value="Save" class="btn btn-primary" /></td>
+ </tr>
+ </table>
+}
+