diff --git a/RPS.Web/Pages/Backlog/Details.cshtml b/RPS.Web/Pages/Backlog/Details.cshtml index 65d396d..aeac119 100644 --- a/RPS.Web/Pages/Backlog/Details.cshtml +++ b/RPS.Web/Pages/Backlog/Details.cshtml @@ -1,8 +1,37 @@ -@page "/{id:int}/Details" +@page "/{id:int}/{screen}" + +@using RPS.Web.Models.Routing; @model RPS.Web.Pages.Backlog.DetailsModel + + +
+
+

@Model.Item.Title

+
+ +
+
+
+ @{ - ViewData["Title"] = "Details"; + switch (Model.Screen) + { + case DetailScreenEnum.Details: + + break; + case DetailScreenEnum.Tasks: + + break; + case DetailScreenEnum.Chitchat: + + break; + } } -

Details

- +@section styles { + +} diff --git a/RPS.Web/Pages/Backlog/Details.cshtml.cs b/RPS.Web/Pages/Backlog/Details.cshtml.cs index 017ef15..4f88842 100644 --- a/RPS.Web/Pages/Backlog/Details.cshtml.cs +++ b/RPS.Web/Pages/Backlog/Details.cshtml.cs @@ -6,6 +6,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using RPS.Core.Models; using RPS.Data; +using RPS.Web.Models.Routing; namespace RPS.Web.Pages.Backlog { @@ -20,6 +21,9 @@ namespace RPS.Web.Pages.Backlog public PtItem Item { get; set; } + [BindProperty(SupportsGet = true)] + public DetailScreenEnum Screen { get; set; } + public DetailsModel( IPtUserRepository rpsUserData, @@ -39,7 +43,7 @@ namespace RPS.Web.Pages.Backlog var users = rpsUserRepo.GetAll(); var currentUser = users.Single(u => u.Id == CURRENT_USER_ID); - //ViewBag.screen = DetailScreenEnum.Details; + //ViewData.Add("screen", DetailScreenEnum.Details); //ViewBag.users = users; //ViewBag.currentUser = currentUser; diff --git a/RPS.Web/Pages/Backlog/_Chitchat.cshtml b/RPS.Web/Pages/Backlog/_Chitchat.cshtml new file mode 100644 index 0000000..2952fb3 --- /dev/null +++ b/RPS.Web/Pages/Backlog/_Chitchat.cshtml @@ -0,0 +1 @@ +

Chitchat

\ No newline at end of file diff --git a/RPS.Web/Pages/Backlog/_Chitchat.cshtml.cs b/RPS.Web/Pages/Backlog/_Chitchat.cshtml.cs new file mode 100644 index 0000000..4f46298 --- /dev/null +++ b/RPS.Web/Pages/Backlog/_Chitchat.cshtml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace RPS.Web.Pages.Backlog +{ + public class _ChitchatModel : PageModel + { + public void OnGet() + { + + } + } +} \ No newline at end of file diff --git a/RPS.Web/Pages/Backlog/_Details.cshtml b/RPS.Web/Pages/Backlog/_Details.cshtml new file mode 100644 index 0000000..b80f771 --- /dev/null +++ b/RPS.Web/Pages/Backlog/_Details.cshtml @@ -0,0 +1,2 @@ + +

Details form

\ No newline at end of file diff --git a/RPS.Web/Pages/Backlog/_Details.cshtml.cs b/RPS.Web/Pages/Backlog/_Details.cshtml.cs new file mode 100644 index 0000000..c1054b8 --- /dev/null +++ b/RPS.Web/Pages/Backlog/_Details.cshtml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace RPS.Web.Pages.Backlog +{ + public class _DetailsModel : PageModel + { + public void OnGet() + { + + } + } +} \ No newline at end of file diff --git a/RPS.Web/Pages/Backlog/_Tasks.cshtml b/RPS.Web/Pages/Backlog/_Tasks.cshtml new file mode 100644 index 0000000..7ef7b46 --- /dev/null +++ b/RPS.Web/Pages/Backlog/_Tasks.cshtml @@ -0,0 +1 @@ +

Tasks

\ No newline at end of file diff --git a/RPS.Web/Pages/Backlog/_Tasks.cshtml.cs b/RPS.Web/Pages/Backlog/_Tasks.cshtml.cs new file mode 100644 index 0000000..71a6ce3 --- /dev/null +++ b/RPS.Web/Pages/Backlog/_Tasks.cshtml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.RazorPages; + +namespace RPS.Web.Pages.Backlog +{ + public class _TasksModel : PageModel + { + public void OnGet() + { + + } + } +} \ No newline at end of file