@using EnVisage.Code @model EnVisage.Models.ProjectPartModel @{ var attributes = ViewData["htmlAttributes"]; }
@Html.HiddenFor(t=>t.Id) @Html.HiddenFor(t=>t.DeletedPart) @Html.HiddenFor(t=>t.ParentProjectId) @Html.HiddenFor(t=>t.CompanyId)
Part Details   
@Html.LabelFor(model => model.Name, new { @class = "control-label" }) @Html.TextBoxFor(model => model.Name, new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.Name)
@Html.LabelFor(model => model.TypeId, new { @class = "control-label" }) @{ ViewBag.TypeSelected = false; } @Html.ValidationMessageFor(model => model.TypeId)
@Html.LabelFor(model => model.ClientId, new { @class = "control-label" }) @Html.DropDownListFor(model => model.ClientId, Utils.GetClients(true), new { @class = "form-control forselect2 pm-clientId" }) @Html.ValidationMessageFor(model => model.ClientId)
@Html.LabelFor(model => model.Deadline, new { @class = "control-label" }) @Html.EditorFor(model => model.Deadline, new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.Deadline)
@Html.LabelFor(model => model.StatusId, new { @class = "control-label" }) @Html.DropDownListFor(model => model.StatusId, Utils.GetStatuses(true), new { @class = "form-control forselect2 pm-status" }) @Html.ValidationMessageFor(model => model.StatusId)
@Html.LabelFor(model => model.Probability, new { @class = "control-label" }) @Html.EditorFor(model => model.Probability) @Html.ValidationMessageFor(model => model.Probability)
@Html.LabelFor(model => model.IsRevenueGenerating, new { @class = "control-label" }) @Html.CheckBoxFor(model => model.IsRevenueGenerating, new { @class = "switcher form-control" }) @Html.ValidationMessageFor(model => model.IsRevenueGenerating)
@Html.LabelFor(model => model.Priority, new { @class = "control-label" }) @Html.TextBoxFor(model => model.Priority, new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.Priority)
@Html.LabelFor(model => model.Details, new { @class = "control-label" }) @Html.TextAreaFor(model => model.Details, new { @class = "form-control", @rows = "4" }) @Html.ValidationMessageFor(model => model.Details)
Teams
@Html.ListBoxFor(model => model.AssignedTeams, EnVisage.Code.Utils.GetTeams(false), new { @class = "pm-teams form-control" }) @Html.ValidationMessageFor(model => model.AssignedTeams)
Contacts
@Html.LabelFor(model => model.InternalContacts, new { @class = "control-label" }) @Html.ListBoxFor(model => model.InternalContacts, EnVisage.Code.Utils.GetProjectInternalContacts(Model.CompanyId), new { @class = "int-contacts form-control forselect2" }) @Html.ValidationMessageFor(model => model.InternalContacts)
@Html.LabelFor(model => model.ExternalContacts, new { @class = "control-label" }) @Html.ListBoxFor(model => model.ExternalContacts, EnVisage.Code.Utils.GetProjectExternalContacts(Model.ClientId), new { @class = "ext-contacts form-control forselect2" }) @Html.ValidationMessageFor(model => model.ExternalContacts)