summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Developer/AddWikiCategory.cshtml
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-06 13:56:05 -0400
committerMichael <[email protected]>2017-04-06 13:56:05 -0400
commit34d659efbc7efdf23e276270007342a6e68a90bf (patch)
tree4e3a69b2d68ea5f9ce7cf3489e90e9cec98b2ea8 /Project-Unite/Views/Developer/AddWikiCategory.cshtml
parent687d62912c9eea205306df17422dbdba718344a8 (diff)
downloadproject-unite-34d659efbc7efdf23e276270007342a6e68a90bf.tar.gz
project-unite-34d659efbc7efdf23e276270007342a6e68a90bf.tar.bz2
project-unite-34d659efbc7efdf23e276270007342a6e68a90bf.zip
Add wiki category view
Diffstat (limited to 'Project-Unite/Views/Developer/AddWikiCategory.cshtml')
-rw-r--r--Project-Unite/Views/Developer/AddWikiCategory.cshtml36
1 files changed, 36 insertions, 0 deletions
diff --git a/Project-Unite/Views/Developer/AddWikiCategory.cshtml b/Project-Unite/Views/Developer/AddWikiCategory.cshtml
new file mode 100644
index 0000000..6f188ad
--- /dev/null
+++ b/Project-Unite/Views/Developer/AddWikiCategory.cshtml
@@ -0,0 +1,36 @@
+@model Project_Unite.Models.AddWikiCategoryViewModel
+@{
+ ViewBag.Title = "Add wiki category";
+}
+
+<h2>Add wiki category</h2>
+
+<p>Please fill the form to add a new category.</p>
+
+@using (Html.BeginForm())
+{
+<div class="panel panel-danger">
+ <div class="panel-body">
+ @Html.ValidationSummary()
+ </div>
+</div>
+
+<table class="table">
+ <tr>
+ <td>Category name:</td>
+ <td>
+ @Html.TextBoxFor(Model=>Model.Name, new { @class="form-control"})
+ </td>
+ </tr>
+ <tr>
+ <td>Parent category:</td>
+ <td>
+ @Html.DropDownListFor(Model => Model.ParentId, Model.Parents, new { @class = "form-control" })
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><input type="submit" value="Add!" /></td>
+ </tr>
+</table>
+} \ No newline at end of file