source: KernelRecordsMVC.Web/Views/Admin/Artists.cshtml

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

Added few implementaions, minor UI changes.

  • Property mode set to 100644
File size: 3.4 KB
Line 
1@model IEnumerable<KernelRecordsMVC.Models.Artist>
2
3@{
4 ViewData["Title"] = "Manage Artists";
5}
6
7<div class="admin-page">
8
9 <div class="admin-header">
10
11 <div>
12
13 <a asp-action="Index"
14 class="admin-back-link">
15 ← Dashboard
16 </a>
17
18 <span class="admin-eyebrow">
19 CATALOG MANAGEMENT
20 </span>
21
22 <h1>Artists</h1>
23
24 <p>
25 Manage artists displayed in the store catalog.
26 </p>
27
28 </div>
29
30
31 <div class="admin-header-actions">
32
33 <a asp-action="CreateArtist"
34 class="admin-button primary">
35 + New Artist
36 </a>
37
38 </div>
39
40 </div>
41
42
43 @if (TempData["Success"] != null)
44 {
45 <div class="admin-alert success">
46 ✓ @TempData["Success"]
47 </div>
48 }
49
50
51 <div class="admin-table-wrapper">
52
53 <table class="admin-table">
54
55 <thead>
56 <tr>
57 <th>Artist</th>
58 <th>Description</th>
59 <th></th>
60 </tr>
61 </thead>
62
63 <tbody>
64
65 @foreach (var artist in Model)
66 {
67 <tr>
68
69 <td>
70
71 <div class="admin-artist-cell">
72
73 @if (!string.IsNullOrWhiteSpace(
74 artist.ArtistPhoto))
75 {
76 <img src="@artist.ArtistPhoto"
77 alt="@artist.ArtistName"
78 class="admin-artist-thumb" />
79 }
80 else
81 {
82 <div class="admin-artist-thumb placeholder">
83 ♪
84 </div>
85 }
86
87 <strong>
88 @artist.ArtistName
89 </strong>
90
91 </div>
92
93 </td>
94
95
96 <td>
97
98 @if (string.IsNullOrWhiteSpace(
99 artist.ArtistDescription))
100 {
101 <span class="admin-muted">
102 No description
103 </span>
104 }
105 else
106 {
107 @artist.ArtistDescription
108 }
109
110 </td>
111
112
113 <td class="admin-table-actions">
114
115 <a asp-action="EditArtist"
116 asp-route-id="@artist.ArtistId"
117 class="admin-button secondary">
118 Edit
119 </a>
120
121 <a asp-controller="Artist"
122 asp-action="Details"
123 asp-route-id="@artist.ArtistId"
124 class="admin-button secondary">
125 View
126 </a>
127
128 </td>
129
130 </tr>
131 }
132
133 </tbody>
134
135 </table>
136
137 </div>
138
139</div>
Note: See TracBrowser for help on using the repository browser.