summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Wiki/EditPage.cshtml
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-07 09:57:24 -0400
committerMichael <[email protected]>2017-04-07 09:57:24 -0400
commit5860170c1fed2342232d7e35015b669e8b8ec471 (patch)
treebfd2113a5b98421c94344d313cf35c2d1e2d171c /Project-Unite/Views/Wiki/EditPage.cshtml
parent6989516207321b6d99c6b04879b5a9a438527107 (diff)
downloadproject-unite-5860170c1fed2342232d7e35015b669e8b8ec471.tar.gz
project-unite-5860170c1fed2342232d7e35015b669e8b8ec471.tar.bz2
project-unite-5860170c1fed2342232d7e35015b669e8b8ec471.zip
Add "edit page" button to wiki
Diffstat (limited to 'Project-Unite/Views/Wiki/EditPage.cshtml')
-rw-r--r--Project-Unite/Views/Wiki/EditPage.cshtml29
1 files changed, 29 insertions, 0 deletions
diff --git a/Project-Unite/Views/Wiki/EditPage.cshtml b/Project-Unite/Views/Wiki/EditPage.cshtml
new file mode 100644
index 0000000..6c75028
--- /dev/null
+++ b/Project-Unite/Views/Wiki/EditPage.cshtml
@@ -0,0 +1,29 @@
+@model Project_Unite.Models.AddWikiPageViewModel
+@{
+ ViewBag.Title = "Edit page";
+}
+
+<h2>Edit @Model.Name</h2>
+
+@using (Html.BeginForm())
+{
+ @Html.AntiForgeryToken()
+ @Html.HiddenFor(Model=>Model.PageId)
+ @Html.HiddenFor(Model=>Model.Name)
+
+ <table class="table">
+ <tr>
+ <td style="width:35%">Category:</td>
+ <td>@Html.DropDownListFor(Model=>Model.ParentId, Model.Parents, new{@class="form-control"})</td>
+ </tr>
+ <tr>
+ <td>Contents:</td>
+ <td>@Html.TextAreaFor(Model=>Model.Content, new{@class="form-control", rows="10"})</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><input type="submit" class="btn btn-primary" value="Edit" /></td>
+ </tr>
+ </table>
+}
+