summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Wiki
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-06 15:08:47 -0400
committerMichael <[email protected]>2017-04-06 15:08:47 -0400
commite28195596b54360767a50be97f7976d7f8004aa3 (patch)
treed20a7ce35d9e816b2a55978f1d0be0b282af9745 /Project-Unite/Views/Wiki
parenteb6e71596650fdfa29322fde4892eb94209676c2 (diff)
downloadproject-unite-e28195596b54360767a50be97f7976d7f8004aa3.tar.gz
project-unite-e28195596b54360767a50be97f7976d7f8004aa3.tar.bz2
project-unite-e28195596b54360767a50be97f7976d7f8004aa3.zip
"Add Wiki Page" page added.'
Diffstat (limited to 'Project-Unite/Views/Wiki')
-rw-r--r--Project-Unite/Views/Wiki/AddPage.cshtml37
1 files changed, 37 insertions, 0 deletions
diff --git a/Project-Unite/Views/Wiki/AddPage.cshtml b/Project-Unite/Views/Wiki/AddPage.cshtml
new file mode 100644
index 0000000..ac7ab3b
--- /dev/null
+++ b/Project-Unite/Views/Wiki/AddPage.cshtml
@@ -0,0 +1,37 @@
+@model Project_Unite.Models.AddWikiPageViewModel
+@{
+ ViewBag.Title = "Add new page";
+}
+
+<h2>Add new page</h2>
+
+<p>Want to contribute to the wiki and add a new page? Awesome. We'll get the page up - just fill in this form.</p>
+
+@using (Html.BeginForm())
+{
+ @Html.AntiForgeryToken()
+ <div class="panel panel-danger">
+ <div class="panel-body">
+ @Html.ValidationSummary()
+ </div>
+ </div>
+
+ <table class="table">
+ <tr>
+ <td style="width:35%">Page title:</td>
+ <td>@Html.TextBoxFor(Model => Model.Name, new{@class="form-control"})</td>
+ </tr>
+ <tr>
+ <td style="width:35%">Category:</td>
+ <td>@Html.DropDownListFor(Model => Model.ParentId, Model.Parents, new { @class = "form-control" })</td>
+ </tr>
+ <tr>
+ <td>Page contents:</td>
+ <td>@Html.TextAreaFor(Model => Model.Content, new { @rows = "10", @class = "form-control" })</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><input type="submit" value="Post" class="form-control" /></td>
+ </tr>
+ </table>
+} \ No newline at end of file