@using EnVisage.Code @model EnVisage.Models.ProjectPartModel
@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 input-required" }) @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 input-required" }) @Html.ValidationMessageFor(model => model.ClientId)
@Html.LabelFor(model => model.Deadline, new { @class = "control-label text-normal text-italic" }) @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 input-required" }) @Html.ValidationMessageFor(model => model.StatusId)
@Html.LabelFor(model => model.Probability, new { @class = "control-label text-normal text-italic" }) @Html.EditorFor(model => model.Probability) @Html.ValidationMessageFor(model => model.Probability)
@Html.LabelFor(model => model.IsRevenueGenerating, new { @class = "control-label text-normal text-italic", style = "text-align: left;" }) @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 input-required", Value = Model.Priority == 0 ? "" : Model.Priority.ToString() }) @Html.ValidationMessageFor(model => model.Priority)
@Html.LabelFor(model => model.PortfolioTags, new { @class = "control-label text-normal text-italic" }) @if (SecurityManager.CheckSecurityObjectPermission(Areas.PortfolioTags, AccessLevel.Write)) {    New } @Html.ValidationMessageFor(model => model.PortfolioTags)
@Html.LabelFor(model => model.ProjectTags, new { @class = "control-label text-normal text-italic" }) @if (SecurityManager.CheckSecurityObjectPermission(Areas.ProjectTags, AccessLevel.Write)) {    New }
@Html.LabelFor(model => model.Details, new { @class = "control-label text-normal text-italic" }) @Html.TextAreaFor(model => model.Details, new { @class = "form-control", rows = "4" }) @Html.ValidationMessageFor(model => model.Details)
@Html.LabelFor(model => model.Dependencies, new { @class = "control-label text-normal text-italic" }) @Html.DisplayFor(model => model.Dependencies, new { @class = "form-control" })
@Html.LabelFor(model => model.UseThreshold, new { @class = "control-label text-normal text-italic" }) @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 text-normal text-italic" }) @Html.ListBoxFor(model => model.AssignedTeams, Utils.GetTeams(), new { @class = "pm-teams form-control" }) @Html.ValidationMessageFor(model => model.AssignedTeams)
@Html.LabelFor(model => model.StrategicGoals, new { @class = "control-label text-normal text-italic" }) @Html.ListBoxFor(model => model.StrategicGoals, Utils.GetStrategicGoals(Model.CompanyId), new { @class = "pm-goals form-control forselect2" }) @Html.ValidationMessageFor(model => model.StrategicGoals)
Contacts
@Html.LabelFor(model => model.InternalContacts, new { @class = "control-label text-normal text-italic" }) @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 text-normal text-italic" }) @Html.ListBoxFor(model => model.ExternalContacts, EnVisage.Code.Utils.GetProjectExternalContacts(Model.ClientId), new { @class = "ext-contacts form-control forselect2" }) @Html.ValidationMessageFor(model => model.ExternalContacts)
Workflow
@Html.LabelFor(model => model.WorkFlowContacts, new { @class = "control-label text-normal text-italic" }) @Html.ListBoxFor(model => model.WorkFlowContacts, EnVisage.Code.Utils.GetWorkFlowProjectRoles((Model.Id == Guid.Empty ? Model.ParentProjectId.Value : Model.Id)), new { @class = "int-workflowcontacts form-control forselect2" }) @Html.ValidationMessageFor(model => model.WorkFlowContacts)
@Html.Partial("~/Views/Shared/EditorTemplates/_workflowScenarios.cshtml", new EnVisage.Models.WorkflowScenarioViewModel() { ProjectId = (Model.Id != Guid.Empty ? Model.Id : Model.ParentProjectId.Value), FullRefresh = true })
@{ if (Utils.ProjectHasWorkFlowHistory((Model.Id == Guid.Empty?Model.ParentProjectId.Value:Model.Id))) {
@Html.Partial("~/Views/Shared/EditorTemplates/_workflowApprovals.cshtml", (Model.Id != Guid.Empty ? Model.Id : Model.ParentProjectId))
} }
Attachments
@Html.EditorFor(model => model.Attachments) @Html.ValidationMessageFor(model => model.Attachments)
Links