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/Forum/CreateTopic.cshtml | 86 ++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 Project-Unite/Views/Forum/CreateTopic.cshtml (limited to 'Project-Unite/Views/Forum/CreateTopic.cshtml') diff --git a/Project-Unite/Views/Forum/CreateTopic.cshtml b/Project-Unite/Views/Forum/CreateTopic.cshtml new file mode 100644 index 0000000..cb080dd --- /dev/null +++ b/Project-Unite/Views/Forum/CreateTopic.cshtml @@ -0,0 +1,86 @@ +@model Project_Unite.Models.CreateTopicViewModel +@{ + ViewBag.Title = "Create topic"; +} + +

Create topic

+ +@using (Html.BeginForm()) +{ + @Html.AntiForgeryToken() + @Html.HiddenFor(Model => Model.Category) + + + + + + + + + + + + + + +
@Html.DisplayNameFor(Model => Model.Subject)@Html.TextBoxFor(Model => Model.Subject, new { @class = "form-control", style = "width:100%" })
@Html.DisplayNameFor(Model => Model.Body) +

This is the content of your topic. You can use Markdown formatting to style your post.

+
@Html.TextAreaFor(Model => Model.Body, new { @class = "form-control", style = "width:100%", rows = "10" })
+ +

Topic options

+ + + bool showGeneral = false; + if (ACL.Granted(User.Identity.Name, "CanStickyOwnTopics") || ACL.Granted(User.Identity.Name, "CanGlobalOwnTopics") || ACL.Granted(User.Identity.Name, "CanAnnounceOwnTopics")) + { + showGeneral = true; + } + string generalStyle = "tab-pane fade in"; + string pollStyle = "tab-pane fade in"; + if (showGeneral == true) { + generalStyle += " active"; + + } + else + { + pollStyle += " active"; + } + + + + +
+
+

Topic status

+ +

Below you can set the status of your topic.

+ + @if (ACL.Granted(User.Identity.Name, "CanStickyOwnTopics")) + { +

Sticky: @Html.CheckBoxFor(Model => Model.IsSticky, new { @class = "form-control" })

+ } + @if (ACL.Granted(User.Identity.Name, "CanAnnounceOwnTopics")) + { +

Announcement: @Html.CheckBoxFor(Model => Model.IsAnnounce, new { @class = "form-control" })

+ } + @if (ACL.Granted(User.Identity.Name, "CanGlobalOwnTopics")) + { +

Global announcement: @Html.CheckBoxFor(Model => Model.IsGlobal, new { @class = "form-control" })

+ } +
+
+

Polls

+

Not yet implemented.

+
+
+} \ No newline at end of file -- cgit v1.2.3