@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. Markdown Help

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

Topic options

bool showGeneral = false; if (User.Identity.IsModerator()) { 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.

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

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

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

Polls

Not yet implemented.

}