From cdc61eb4ea5309769ad4db84d92594e4dc3dff67 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 20 Mar 2017 16:45:17 -0400 Subject: Initial commit (azure deploy test) --- Project-Unite/Views/Admin/AddForumCategory.cshtml | 48 +++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Project-Unite/Views/Admin/AddForumCategory.cshtml (limited to 'Project-Unite/Views/Admin/AddForumCategory.cshtml') diff --git a/Project-Unite/Views/Admin/AddForumCategory.cshtml b/Project-Unite/Views/Admin/AddForumCategory.cshtml new file mode 100644 index 0000000..4b3e9fd --- /dev/null +++ b/Project-Unite/Views/Admin/AddForumCategory.cshtml @@ -0,0 +1,48 @@ +@model Project_Unite.Models.AddForumCategoryViewModel +@{ + ViewBag.Title = "Add forum category"; +} + +

Add forum category

+ +

This page allows you to add a new forum category to ShiftOS and define a set of ACL rules for this category.

+ +
+ @if(ViewBag.Error != null) + { +

@ViewBag.Error

+ } +
+ +@using (Html.BeginForm()) +{ + @Html.AntiForgeryToken() + @Html.HiddenFor(Model => Model.PossibleParents) + + + + + + + + + + + + + +
@Html.DisplayNameFor(Model => Model.Name)@Html.TextBoxFor(Model => Model.Name)
@Html.DisplayNameFor(Model => Model.Description)@Html.TextBoxFor(Model => Model.Description)
@Html.DisplayNameFor(Model => Model.Parent)@Html.DropDownListFor(Model => Model.Parent, Model.PossibleParents)
+ +

ACL rule definitions

+

ACL rules for this forum can be edited in the Access Control section. Additionally, you can select an existing forum to copy ACL data from.

+ +

Copy ACL data from: @Html.DropDownListFor(Model=>Model.StealPermissionsFrom, Model.PossibleParents)

+

Leave this value as "Top Level" to not copy permissions. Default permission values are 'Can Post' for all roles.

+

Adding new roles

+

When you add a new role to the site, the ACL system will automatically add it to this forum, however its permission data will be set to the default "Can Post" value.

+
+ + + + @Html.ActionLink("Cancel", "Forums", "Admin", null, new { @class="btn btn-default"}) +} \ No newline at end of file -- cgit v1.2.3