summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Developer/AddWikiCategory.cshtml
blob: 0d6b47a2efcbae8890987434e6c0b8cac849f4bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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>
@Html.AntiForgeryToken()
<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>
}