source: KernelRecordsMVC.Web/Views/Release/Details.cshtml@ 08aefc6

main
Last change on this file since 08aefc6 was 08aefc6, checked in by mmilevski <markomilevski3@…>, 4 weeks ago

Initial commit

  • Property mode set to 100644
File size: 2.4 KB
Line 
1@model KernelRecordsMVC.Models.Release
2
3<div class="row">
4
5 <div class="col-md-5">
6
7 <img src="@Model.CoverPhoto"
8 class="img-fluid rounded"
9 alt="@Model.Title" />
10
11 </div>
12
13
14 <div class="col-md-7">
15
16 <h1>@Model.Title</h1>
17
18 <p class="lead">
19 @Model.Genre
20 </p>
21
22 <p>
23 <strong>Record Label:</strong>
24 @Model.RecordLabel
25 </p>
26
27 <p>
28 <strong>Release Date:</strong>
29 @Model.ReleaseDate.ToString("MMMM dd, yyyy")
30 </p>
31
32
33 <h5>Artists</h5>
34
35 <p>
36
37 @string.Join(
38 ", ",
39 Model.ReleaseArtists
40 .OrderBy(x => x.ReleaseOrdinal)
41 .Select(x => x.Artist.ArtistName)
42 )
43
44 </p>
45
46 </div>
47
48</div>
49
50
51<hr />
52
53
54<h2>Available Products</h2>
55
56<div class="row">
57
58@foreach (var product in Model.Products)
59{
60 <div class="col-md-4 mb-3">
61
62 <div class="card h-100">
63
64 <div class="card-body">
65
66 <h4>
67 @product.Format
68 </h4>
69
70 <h5>
71 $@product.Price
72 </h5>
73
74 <p>
75 @product.ProductDescription
76 </p>
77
78
79 @if (product.Stock > 0)
80 {
81 <p class="text-success">
82 In stock: @product.Stock
83 </p>
84
85 <a asp-controller="Order"
86 asp-action="AddProduct"
87 asp-route-id="@product.ProductId"
88 class="btn btn-success">
89
90 Add to Cart
91
92 </a>
93 }
94 else
95 {
96 <p class="text-danger">
97 Out of stock
98 </p>
99 }
100
101 </div>
102
103 </div>
104
105 </div>
106}
107
108</div>
109
110
111@if (Model.Album != null)
112{
113 <hr />
114
115 <h2>Track List</h2>
116
117 <ol>
118
119 @foreach (var albumSong in Model.Album.AlbumSongs
120 .OrderBy(x => x.SongId))
121 {
122 <li>
123
124 @albumSong.Song.SongName
125
126 <span class="text-muted">
127 (@albumSong.Song.SongDuration)
128 </span>
129
130 </li>
131 }
132
133 </ol>
134}
135
136
137@if (Model.SingleRelease != null)
138{
139 <hr />
140
141 <h2>Single</h2>
142
143 <p>
144 Duration:
145 @Model.SingleRelease.Duration
146 </p>
147}
Note: See TracBrowser for help on using the repository browser.