blob: af22f8175f1406df779382a8c304e9ff96e65765 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
@model Project_Unite.Models.AddForumCategoryViewModel
@{
ViewBag.Title = "Edit " + Model.Name;
}
<h2>Add forum category</h2>
<div class="panel panel-danger">
@if (ViewBag.Error != null)
{
<p><span class="glyphicon glyphicon-warning-sign"></span> @ViewBag.Error</p>
}
</div>
@using (Html.BeginForm(new { id = Model.Id }))
{
@Html.AntiForgeryToken()
@Html.HiddenFor(Model => Model.Id)
@Html.HiddenFor(Model => Model.PossibleParents)
<table class="table-condensed">
<tr>
<td>@Html.DisplayNameFor(Model => Model.Name)</td>
<td>@Html.TextBoxFor(Model => Model.Name)</td>
</tr>
<tr>
<td>@Html.DisplayNameFor(Model => Model.Description)</td>
<td>@Html.TextBoxFor(Model => Model.Description)</td>
</tr>
<tr>
<td>@Html.DisplayNameFor(Model => Model.Parent)</td>
<td>@Html.DropDownListFor(Model => Model.Parent, Model.PossibleParents)</td>
</tr>
</table>
<h4>ACL rule definitions</h4>
<p>Below you can specify what roles can see, reply or post to this category.</p>
<hr />
<table class="table-condensed">
<tr>
<th>Role name</th>
<th>Can see?</th>
<th>Can reply?</th>
<th>Can post?</th>
</tr>
</table>
<p>ACL rules for this forum may be altered in the "Forum ACL Editor" page.</p>
<input type="submit" value="Add" class="btn btn-primary" />
@Html.ActionLink("Cancel", "Forums", "Admin", null, new { @class = "btn btn-default" })
}
|