@using EnVisage.Code @using EnVisage.Code.HtmlHelpers @using EnVisage.Models @using EnVisage.Controllers @model EnVisage.Models.PeopleResourceModel @{ ViewBag.Title = "People Resource Details"; } @{ string userIdAsText = User.Identity.GetID(); var user = (new EnVisage.Code.Cache.UsersCache()).Value.FirstOrDefault(x => x.Id == new Guid(userIdAsText)); string skillsMatrixJson = String.Empty; using (var dbContext = new EnVisageEntities()) { // Create and fill model for initial Skills Matrix loading SkillsMatrixPageLoadModel skillsMatrixLoadModel = SkillsController.GetPageLoadModel(userIdAsText, ApplicationDashboards.ResourceBoard, dbContext); skillsMatrixLoadModel.OpenerType = ApplicationDashboards.ResourceBoard; skillsMatrixLoadModel.OpenerId = ((Model != null) && !Model.Id.Equals(Guid.Empty)) ? Model.Id.ToString() : String.Empty; skillsMatrixLoadModel.ReadOnly = !SecurityManager.CheckSecurityObjectPermission(Areas.RD_ResourceSkills, AccessLevel.Write); skillsMatrixJson = Newtonsoft.Json.JsonConvert.SerializeObject(new { prefs = "", model = skillsMatrixLoadModel }); } } @section stylesheets { @Html.RenderStyle("~/Content/stylesheets/activity-calendar.css") @Html.RenderStyle("~/Content/stylesheets/xeditable.css") @Html.RenderStyle("~/Content/stylesheets/bootstrap-modal-bs3patch.css") @Html.RenderStyle("~/Content/stylesheets/bootstrap-modal.css") @Html.RenderStyle("~/Content/stylesheets/skills-grid.css") } @section scripts { @Html.RenderScript(Url.Content("~/Scripts/CustomValidation.js")) @Html.RenderScript(Url.Content("~/Scripts/sliders.js")) @Html.RenderScript(Url.Content("~/Scripts/calendarMethods.js")) @Html.RenderScript(Url.Content("~/Scripts/Plugins/ScenarioDetailsGrid.js")) @Html.RenderScript(Url.Content("~/Scripts/Plugins/PageState.js")) @Html.RenderScript(Url.Content("~/Scripts/Angular/Controllers/scenarioDetailController.js")) @Html.RenderScript(Url.Content("~/Scripts/Angular/Controllers/scenarioBottomUpController.js")) @Html.RenderScript(Url.Content("~/Scripts/Angular/Controllers/costSavingController.js")) @Html.RenderScript(Url.Content("~/Scripts/Angular/Controllers/slidersGroupController.js")) @Html.RenderScript(Url.Content("~/Scripts/Angular/Controllers/SkillsControllers/skillsMatrixController.js")) @Html.RenderScript(Url.Content("~/Scripts/URIjs.min.js")) @Html.RenderScript(Url.Content("~/Scripts/Angular/Controllers/activityCalendarController.js")) @Html.RenderScript(Url.Content("~/Scripts/jquery.collapsiblepanel.js")) @Html.RenderScript(Url.Content("~/Scripts/bootstrap-modalmanager.js")) @Html.RenderScript(Url.Content("~/Scripts/bootstrap-modal.js")) @Html.RenderScript(Url.Content("~/Scripts/Plugins/NonProjectTimeGrid.js")) @Html.RenderScript(Url.Content("~/Scripts/Plugins/DatePickerRange.js")) }