@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", @data_val_integer = "Your priority must be a whole number from 1 to 25" }) @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)
@Html.LabelFor(model => model.UseThreshold, new { @class = "control-label" }) @Html.CheckBoxFor(model => model.UseThreshold, new { @class = "switcher form-control" }) (**Performance indicators assume deviation of ACTUALS above or below the PROJECTED amount.)
-
@Html.HiddenFor(model => model.PerformanceRedThreshold) @Html.HiddenFor(model => model.PerformanceYellowThreshold)
@Html.LabelFor(model => model.AssignedTeams, new { @class = "control-label" }) @Html.ListBoxFor(model => model.AssignedTeams, EnVisage.Code.Utils.GetTeams(false), new { @class = "pm-teams form-control" }) @Html.ValidationMessageFor(model => model.AssignedTeams)
@Html.LabelFor(model => model.StrategicGoals, new { @class = "control-label" }) @Html.ListBoxFor(model => model.StrategicGoals, EnVisage.Code.Utils.GetStrategicGoals(Model.CompanyId, false), new { @class = "pm-goals form-control forselect2" }) @Html.ValidationMessageFor(model => model.StrategicGoals)
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)
Attachments
@Html.EditorFor(model => model.Attachments) @Html.ValidationMessageFor(model => model.Attachments)