source: KernelRecordsMVC.Web/Views/Admin/EditArtist.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: 2.7 KB
Line 
1@model KernelRecordsMVC.Application.ViewModels.EditArtistViewModel
2
3@{
4 ViewData["Title"] = "Edit Artist";
5}
6
7<div class="admin-page admin-form-page">
8
9 <div class="admin-header">
10
11 <div>
12
13 <a asp-action="Artists"
14 class="admin-back-link">
15 ← Artists
16 </a>
17
18 <span class="admin-eyebrow">
19 CATALOG MANAGEMENT
20 </span>
21
22 <h1>Edit Artist</h1>
23
24 <p>
25 Update artist information shown in the catalog.
26 </p>
27
28 </div>
29
30 </div>
31
32
33 <form asp-action="EditArtist"
34 method="post">
35
36 @Html.AntiForgeryToken()
37
38 <input asp-for="ArtistId"
39 type="hidden" />
40
41
42 <div asp-validation-summary="ModelOnly"
43 class="admin-validation">
44 </div>
45
46
47 <section class="admin-form-card">
48
49 <div class="admin-form-field">
50
51 <label asp-for="ArtistName"></label>
52
53 <input asp-for="ArtistName" />
54
55 <span asp-validation-for="ArtistName"
56 class="admin-field-error">
57 </span>
58
59 </div>
60
61
62 <div class="admin-form-field">
63
64 <label asp-for="ArtistDescription"></label>
65
66 <textarea asp-for="ArtistDescription"
67 rows="6">
68 </textarea>
69
70 <span asp-validation-for="ArtistDescription"
71 class="admin-field-error">
72 </span>
73
74 </div>
75
76
77 <div class="admin-form-field">
78
79 <label asp-for="ArtistPhoto"></label>
80
81 <input asp-for="ArtistPhoto" />
82
83 <span asp-validation-for="ArtistPhoto"
84 class="admin-field-error">
85 </span>
86
87 </div>
88
89
90 @if (!string.IsNullOrWhiteSpace(
91 Model.ArtistPhoto))
92 {
93 <div class="admin-cover-preview">
94
95 <span class="admin-eyebrow">
96 CURRENT PHOTO
97 </span>
98
99 <div class="admin-cover-preview-image">
100
101 <img src="@Model.ArtistPhoto"
102 alt="@Model.ArtistName" />
103
104 </div>
105
106 </div>
107 }
108
109
110 <div class="admin-form-actions">
111
112 <a asp-action="Artists"
113 class="admin-button secondary">
114 Cancel
115 </a>
116
117 <button type="submit"
118 class="admin-button primary">
119 Save Changes
120 </button>
121
122 </div>
123
124 </section>
125
126 </form>
127
128</div>
Note: See TracBrowser for help on using the repository browser.