Changeset 595d2e5 for KernelRecordsMVC.Web/Views/Wishlist/Index.cshtml
- Timestamp:
- 09/02/26 05:22:09 (4 weeks ago)
- Branches:
- main
- Children:
- 1dcdb2c
- Parents:
- d89d25b
- File:
-
- 1 edited
-
KernelRecordsMVC.Web/Views/Wishlist/Index.cshtml (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
KernelRecordsMVC.Web/Views/Wishlist/Index.cshtml
rd89d25b r595d2e5 8 8 9 9 <div class="page-header"> 10 10 11 <div> 11 <span class="page-eyebrow">YOUR COLLECTION</span> 12 13 <span class="page-eyebrow"> 14 YOUR COLLECTION 15 </span> 16 12 17 <h1>My Wishlist</h1> 13 <p>Save releases and physical formats you want to get later.</p> 14 </div> 18 19 <p> 20 Save releases and physical formats you want to get later. 21 </p> 22 23 </div> 24 15 25 </div> 26 16 27 17 28 @if (TempData["Success"] != null) … … 35 46 </div> 36 47 } 48 37 49 38 50 @if (Model.WishlistProducts == null || … … 45 57 </div> 46 58 47 <h2>Your wishlist is empty</h2> 59 <h2> 60 Your wishlist is empty 61 </h2> 48 62 49 63 <p> … … 54 68 <a asp-controller="Release" 55 69 asp-action="Index" 56 class="btn-primary"> 70 class="store-button primary"> 71 57 72 Browse Releases 73 58 74 </a> 59 75 … … 69 85 var release = product.Release; 70 86 87 71 88 <div class="wishlist-card"> 89 90 <!-- COVER --> 72 91 73 92 <a asp-controller="Release" … … 76 95 class="wishlist-cover"> 77 96 78 <img src="@release.CoverPhoto" 79 alt="@release.Title" /> 97 @if (!string.IsNullOrWhiteSpace( 98 release.CoverPhoto)) 99 { 100 <img src="@release.CoverPhoto" 101 alt="@release.Title" /> 102 } 103 else 104 { 105 <div class="release-no-cover"> 106 <span>♪</span> 107 </div> 108 } 80 109 81 110 </a> 111 112 113 <!-- CONTENT --> 82 114 83 115 <div class="wishlist-info"> … … 87 119 </span> 88 120 121 89 122 <h2> 123 90 124 <a asp-controller="Release" 91 125 asp-action="Details" 92 126 asp-route-id="@release.ReleaseId"> 127 93 128 @release.Title 129 94 130 </a> 131 95 132 </h2> 133 96 134 97 135 <p class="wishlist-genre"> … … 99 137 </p> 100 138 101 <div class="wishlist-price"> 102 @product.Price.ToString("C") 103 </div> 104 105 @if (product.Stock > 0) 106 { 107 <span class="stock available"> 108 In stock 109 </span> 110 } 111 else 112 { 113 <span class="stock unavailable"> 114 Out of stock 115 </span> 116 } 117 118 <div class="wishlist-actions"> 119 120 @if (product.Stock > 0) 121 { 139 140 <!-- PRICE + BUTTONS --> 141 142 <div class="wishlist-bottom"> 143 144 <div class="wishlist-price-area"> 145 146 <div class="wishlist-price"> 147 @product.Price.ToString("C") 148 </div> 149 150 151 @if (product.Stock > 0) 152 { 153 <span class="stock available"> 154 In stock 155 </span> 156 } 157 else 158 { 159 <span class="stock unavailable"> 160 Out of stock 161 </span> 162 } 163 164 </div> 165 166 167 <div class="wishlist-actions"> 168 169 @if (product.Stock > 0) 170 { 171 <form asp-controller="Wishlist" 172 asp-action="AddToCart" 173 method="post"> 174 175 @Html.AntiForgeryToken() 176 177 <input type="hidden" 178 name="productId" 179 value="@product.ProductId" /> 180 181 <button type="submit" 182 class="store-button"> 183 184 Add to Cart 185 186 </button> 187 188 </form> 189 } 190 191 122 192 <form asp-controller="Wishlist" 123 asp-action=" AddToCart"193 asp-action="Remove" 124 194 method="post"> 125 195 … … 131 201 132 202 <button type="submit" 133 class="btn-primary"> 134 Add to Cart 203 class="btn-remove"> 204 205 Remove 206 135 207 </button> 136 208 137 209 </form> 138 } 139 140 <form asp-controller="Wishlist" 141 asp-action="Remove" 142 method="post"> 143 144 @Html.AntiForgeryToken() 145 146 <input type="hidden" 147 name="productId" 148 value="@product.ProductId" /> 149 150 <button type="submit" 151 class="btn-remove"> 152 Remove 153 </button> 154 155 </form> 210 211 </div> 156 212 157 213 </div>
Note:
See TracChangeset
for help on using the changeset viewer.
