source: KernelRecordsMVC.Web/Views/Account/Profile.cshtml

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

Added major improvements.

  • Property mode set to 100644
File size: 4.6 KB
Line 
1@model KernelRecordsMVC.Application.ViewModels.ProfileViewModel
2
3@{
4 ViewData["Title"] = "My Profile";
5}
6
7<div class="profile-page">
8
9 <div class="profile-header">
10
11 <span class="page-eyebrow">
12 ACCOUNT
13 </span>
14
15 <h1>My Profile</h1>
16
17 <p>
18 Manage your account information.
19 </p>
20
21 </div>
22
23
24 @if (TempData["Success"] != null)
25 {
26 <div class="profile-alert success">
27 @TempData["Success"]
28 </div>
29 }
30
31
32 <div class="profile-layout">
33
34 <!-- =================================================
35 ACCOUNT SUMMARY
36 ================================================= -->
37
38 <aside class="profile-sidebar">
39
40 <div class="profile-avatar">
41 @(string.IsNullOrWhiteSpace(Model.Username)
42 ? "?"
43 : Model.Username.Substring(0, 1).ToUpper())
44 </div>
45
46 <h2>
47 @Model.Username
48 </h2>
49
50 <p>
51 @Model.Email
52 </p>
53
54 <div class="profile-member">
55
56 <span>MEMBER SINCE</span>
57
58 <strong>
59 @Model.DateCreated.ToString("MMMM yyyy")
60 </strong>
61
62 </div>
63
64
65 <div class="profile-points">
66
67 <span>REWARD POINTS</span>
68
69 <strong>
70 @Model.PointsCollected
71 </strong>
72
73 </div>
74
75 </aside>
76
77
78 <!-- =================================================
79 EDIT PROFILE
80 ================================================= -->
81
82 <section class="profile-card">
83
84 <div class="profile-card-header">
85
86 <div>
87
88 <span class="section-label">
89 PERSONAL INFORMATION
90 </span>
91
92 <h2>Account Details</h2>
93
94 </div>
95
96 </div>
97
98
99 <form asp-action="Profile"
100 method="post"
101 class="profile-form">
102
103 @Html.AntiForgeryToken()
104
105
106 <div asp-validation-summary="ModelOnly"
107 class="validation-summary">
108 </div>
109
110
111 <!-- USERNAME -->
112
113 <div class="profile-field">
114
115 <label asp-for="Username">
116 Username
117 </label>
118
119 <input asp-for="Username"
120 type="text"
121 readonly />
122
123 <small>
124 Your username cannot be changed.
125 </small>
126
127 </div>
128
129
130 <!-- EMAIL -->
131
132 <div class="profile-field">
133
134 <label asp-for="Email">
135 Email
136 </label>
137
138 <input asp-for="Email" />
139
140 <span asp-validation-for="Email"
141 class="field-error">
142 </span>
143
144 </div>
145
146
147 <!-- PHONE -->
148
149 <div class="profile-field">
150
151 <label asp-for="TelephoneNumber">
152 Telephone Number
153 </label>
154
155 <input asp-for="TelephoneNumber"
156 placeholder="Enter your phone number" />
157
158 <span asp-validation-for="TelephoneNumber"
159 class="field-error">
160 </span>
161
162 </div>
163
164
165 <!-- ADDRESS -->
166
167 <div class="profile-field">
168
169 <label asp-for="ShippingAddress">
170 Shipping Address
171 </label>
172
173 <textarea asp-for="ShippingAddress"
174 rows="4"
175 placeholder="Enter your shipping address">
176 </textarea>
177
178 <span asp-validation-for="ShippingAddress"
179 class="field-error">
180 </span>
181
182 </div>
183
184
185 <div class="profile-form-actions">
186
187 <button type="submit"
188 class="store-button primary">
189
190 Save Changes
191
192 </button>
193
194 <a asp-controller="Home"
195 asp-action="Index"
196 class="store-button secondary">
197
198 Cancel
199
200 </a>
201
202 </div>
203
204 </form>
205
206 </section>
207
208 </div>
209
210</div>
211
212
213@section Scripts
214{
215 <partial name="_ValidationScriptsPartial" />
216}
Note: See TracBrowser for help on using the repository browser.