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/EditRole.cshtml | 619 ++++++++++++++++++++++++++++++ 1 file changed, 619 insertions(+) create mode 100644 Project-Unite/Views/Admin/EditRole.cshtml (limited to 'Project-Unite/Views/Admin/EditRole.cshtml') diff --git a/Project-Unite/Views/Admin/EditRole.cshtml b/Project-Unite/Views/Admin/EditRole.cshtml new file mode 100644 index 0000000..b9c1f91 --- /dev/null +++ b/Project-Unite/Views/Admin/EditRole.cshtml @@ -0,0 +1,619 @@ +@model Project_Unite.Models.Role + +@{ + ViewBag.Title = "Edit role: " + Model.Id; +} + +@using (Html.BeginForm()) +{ + @Html.AntiForgeryToken() + +
+

Role

+
+ @Html.ValidationSummary(true, "", new { @class = "text-danger" }) + @Html.HiddenFor(model => model.Id) + +
+ @Html.LabelFor(model => model.Name, htmlAttributes: new { @class = "control-label col-md-2" }) +
+ @Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control" } }) + @Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" }) +
+
+ +
+ @Html.LabelFor(model => model.Description, htmlAttributes: new { @class = "control-label col-md-2" }) +
+ @Html.EditorFor(model => model.Description, new { htmlAttributes = new { @class = "form-control" } }) + @Html.ValidationMessageFor(model => model.Description, "", new { @class = "text-danger" }) +
+
+ +
+ @Html.LabelFor(model => model.ColorHex, htmlAttributes: new { @class = "control-label col-md-2" }) +
+ @Html.EditorFor(model => model.ColorHex, new { htmlAttributes = new { @class = "form-control" } }) + @Html.ValidationMessageFor(model => model.ColorHex, "", new { @class = "text-danger" }) +
+
+ +
+ @Html.LabelFor(model => model.Priority, htmlAttributes: new { @class = "control-label col-md-2" }) +
+ @Html.EditorFor(model => model.Priority, new { htmlAttributes = new { @class = "form-control" } }) + @Html.ValidationMessageFor(model => model.Priority, "", new { @class = "text-danger" }) +
+
+ +
+ @Html.LabelFor(model => model.CanViewProfiles, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanViewProfiles) + @Html.ValidationMessageFor(model => model.CanViewProfiles, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanEditOwnProfile, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanEditOwnProfile) + @Html.ValidationMessageFor(model => model.CanEditOwnProfile, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanEditProfiles, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanEditProfiles) + @Html.ValidationMessageFor(model => model.CanEditProfiles, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanEditUsername, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanEditUsername) + @Html.ValidationMessageFor(model => model.CanEditUsername, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanEditUsernames, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanEditUsernames) + @Html.ValidationMessageFor(model => model.CanEditUsernames, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanIssueBan, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanIssueBan) + @Html.ValidationMessageFor(model => model.CanIssueBan, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanIssueIPBan, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanIssueIPBan) + @Html.ValidationMessageFor(model => model.CanIssueIPBan, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanIssueEmailBan, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanIssueEmailBan) + @Html.ValidationMessageFor(model => model.CanIssueEmailBan, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanIssueMute, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanIssueMute) + @Html.ValidationMessageFor(model => model.CanIssueMute, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanReleaseBuild, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanReleaseBuild) + @Html.ValidationMessageFor(model => model.CanReleaseBuild, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanBlog, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanBlog) + @Html.ValidationMessageFor(model => model.CanBlog, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanAccessModCP, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanAccessModCP) + @Html.ValidationMessageFor(model => model.CanAccessModCP, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanAccessAdminCP, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanAccessAdminCP) + @Html.ValidationMessageFor(model => model.CanAccessAdminCP, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanAccessDevCP, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanAccessDevCP) + @Html.ValidationMessageFor(model => model.CanAccessDevCP, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanEditForumCategories, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanEditForumCategories) + @Html.ValidationMessageFor(model => model.CanEditForumCategories, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanPostTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanPostTopics) + @Html.ValidationMessageFor(model => model.CanPostTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanPostPolls, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanPostPolls) + @Html.ValidationMessageFor(model => model.CanPostPolls, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanPostReplies, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanPostReplies) + @Html.ValidationMessageFor(model => model.CanPostReplies, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanPostStatuses, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanPostStatuses) + @Html.ValidationMessageFor(model => model.CanPostStatuses, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanEditRoles, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanEditRoles) + @Html.ValidationMessageFor(model => model.CanEditRoles, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanDeleteRoles, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanDeleteRoles) + @Html.ValidationMessageFor(model => model.CanDeleteRoles, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanDeleteOwnTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanDeleteOwnTopics) + @Html.ValidationMessageFor(model => model.CanDeleteOwnTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanDeleteTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanDeleteTopics) + @Html.ValidationMessageFor(model => model.CanDeleteTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanDeleteOwnPosts, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanDeleteOwnPosts) + @Html.ValidationMessageFor(model => model.CanDeleteOwnPosts, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanDeletePosts, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanDeletePosts) + @Html.ValidationMessageFor(model => model.CanDeletePosts, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanDeleteOwnStatuses, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanDeleteOwnStatuses) + @Html.ValidationMessageFor(model => model.CanDeleteOwnStatuses, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanDeleteStatuses, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanDeleteStatuses) + @Html.ValidationMessageFor(model => model.CanDeleteStatuses, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanEditOwnTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanEditOwnTopics) + @Html.ValidationMessageFor(model => model.CanEditOwnTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanEditTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanEditTopics) + @Html.ValidationMessageFor(model => model.CanEditTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanEditOwnPosts, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanEditOwnPosts) + @Html.ValidationMessageFor(model => model.CanEditOwnPosts, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanEditPosts, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanEditPosts) + @Html.ValidationMessageFor(model => model.CanEditPosts, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanEditOwnStatuses, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanEditOwnStatuses) + @Html.ValidationMessageFor(model => model.CanEditOwnStatuses, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanVoteInPolls, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanVoteInPolls) + @Html.ValidationMessageFor(model => model.CanVoteInPolls, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanDeleteUsers, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanDeleteUsers) + @Html.ValidationMessageFor(model => model.CanDeleteUsers, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanAnonymizeUsers, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanAnonymizeUsers) + @Html.ValidationMessageFor(model => model.CanAnonymizeUsers, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanPostSkins, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanPostSkins) + @Html.ValidationMessageFor(model => model.CanPostSkins, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanEditOwnSkins, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanEditOwnSkins) + @Html.ValidationMessageFor(model => model.CanEditOwnSkins, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanEditSkins, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanEditSkins) + @Html.ValidationMessageFor(model => model.CanEditSkins, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanDeleteOwnSkins, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanDeleteOwnSkins) + @Html.ValidationMessageFor(model => model.CanDeleteOwnSkins, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanDeleteSkins, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanDeleteSkins) + @Html.ValidationMessageFor(model => model.CanDeleteSkins, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanUpvoteSkins, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanUpvoteSkins) + @Html.ValidationMessageFor(model => model.CanUpvoteSkins, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanDownvoteSkins, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanDownvoteSkins) + @Html.ValidationMessageFor(model => model.CanDownvoteSkins, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanStickyOwnTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanStickyOwnTopics) + @Html.ValidationMessageFor(model => model.CanStickyOwnTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanStickyTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanStickyTopics) + @Html.ValidationMessageFor(model => model.CanStickyTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanAnnounceOwnTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanAnnounceOwnTopics) + @Html.ValidationMessageFor(model => model.CanAnnounceOwnTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanAnnounceTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanAnnounceTopics) + @Html.ValidationMessageFor(model => model.CanAnnounceTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanGlobalOwnTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanGlobalOwnTopics) + @Html.ValidationMessageFor(model => model.CanGlobalOwnTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanGlobalTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanGlobalTopics) + @Html.ValidationMessageFor(model => model.CanGlobalTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanMoveOwnTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanMoveOwnTopics) + @Html.ValidationMessageFor(model => model.CanMoveOwnTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanMoveTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanMoveTopics) + @Html.ValidationMessageFor(model => model.CanMoveTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanUnlistOwnTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanUnlistOwnTopics) + @Html.ValidationMessageFor(model => model.CanUnlistOwnTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanUnlistTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanUnlistTopics) + @Html.ValidationMessageFor(model => model.CanUnlistTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanLockOwnTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanLockOwnTopics) + @Html.ValidationMessageFor(model => model.CanLockOwnTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanUnlockOwnTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanUnlockOwnTopics) + @Html.ValidationMessageFor(model => model.CanUnlockOwnTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanLockTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanLockTopics) + @Html.ValidationMessageFor(model => model.CanLockTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+ @Html.LabelFor(model => model.CanUnlockTopics, htmlAttributes: new { @class = "control-label col-md-2" }) +
+
+ @Html.EditorFor(model => model.CanUnlockTopics) + @Html.ValidationMessageFor(model => model.CanUnlockTopics, "", new { @class = "text-danger" }) +
+
+
+ +
+
+ +
+
+
+} + +
+ @Html.ActionLink("Back to List", "Index") +
-- cgit v1.2.3