summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Wiki/AddPage.cshtml
blob: ac7ab3b580850981278d572d9057486c52b77a7b (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
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>
}