summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Wiki/EditPage.cshtml
blob: 6c75028e2325cd455a45bbb117a13e4891ffefd6 (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
@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>
}