Edit.cshtml
3,870 bytes
| 1 | @model App.BLL.DTO.TripWishlistItemBllDto |
|---|---|
| 2 | |
| 3 | @{ |
| 4 | ViewData["Title"] = Localizer["Edit Wishlist Item"]; |
| 5 | var tripId = (Guid)ViewData["TripId"]!; |
| 6 | } |
| 7 | |
| 8 | <div class="row justify-content-center"> |
| 9 | <div class="col-md-8 col-lg-6"> |
| 10 | <div class="sa-card-static sa-card-accent sa-card-accent-accent"> |
| 11 | <div class="sa-card-body" style="padding: var(--sa-space-8);"> |
| 12 | <div class="text-center mb-4"> |
| 13 | <div style="font-size: 2rem; color: var(--sa-accent); margin-bottom: var(--sa-space-2);"> |
| 14 | <i class="bi bi-pencil-square"></i> |
| 15 | </div> |
| 16 | <h1 style="font-size: 1.5rem; margin-bottom: 4px;">@Localizer["Edit Wishlist Item"]</h1> |
| 17 | </div> |
| 18 | |
| 19 | <form asp-action="Edit" data-sa-loading> |
| 20 | <div asp-validation-summary="ModelOnly" class="text-danger"></div> |
| 21 | <input type="hidden" asp-for="Id" /> |
| 22 | <input type="hidden" asp-for="TripId" /> |
| 23 | <input type="hidden" asp-for="AddedByUserId" /> |
| 24 | |
| 25 | <div class="mb-3"> |
| 26 | <label asp-for="Title" class="form-label">@Localizer["Title"]</label> |
| 27 | <input asp-for="Title" class="form-control" /> |
| 28 | <span asp-validation-for="Title" class="text-danger"></span> |
| 29 | </div> |
| 30 | |
| 31 | <div class="mb-3"> |
| 32 | <label asp-for="Description" class="form-label">@Localizer["Description"]</label> |
| 33 | <textarea asp-for="Description" class="form-control" rows="3"></textarea> |
| 34 | <span asp-validation-for="Description" class="text-danger"></span> |
| 35 | </div> |
| 36 | |
| 37 | <div class="row mb-3"> |
| 38 | <div class="col-md-6 mb-3 mb-md-0"> |
| 39 | <label asp-for="Category" class="form-label">@Localizer["Category"]</label> |
| 40 | <select asp-for="Category" asp-items="@((SelectList)ViewData["Categories"]!)" class="form-select"></select> |
| 41 | </div> |
| 42 | <div class="col-md-6"> |
| 43 | <label asp-for="Priority" class="form-label">@Localizer["Priority"]</label> |
| 44 | <select asp-for="Priority" asp-items="@((SelectList)ViewData["Priorities"]!)" class="form-select"></select> |
| 45 | </div> |
| 46 | </div> |
| 47 | |
| 48 | <div class="mb-3"> |
| 49 | <label asp-for="EstimatedCost" class="form-label">@Localizer["Estimated Cost"]</label> |
| 50 | <input asp-for="EstimatedCost" type="number" step="0.01" min="0" class="form-control" /> |
| 51 | </div> |
| 52 | |
| 53 | <div class="mb-3"> |
| 54 | <label asp-for="Location" class="form-label"><i class="bi bi-geo-alt me-1"></i>@Localizer["Location"]</label> |
| 55 | <input asp-for="Location" class="form-control" /> |
| 56 | </div> |
| 57 | |
| 58 | <div class="mb-4"> |
| 59 | <label asp-for="Url" class="form-label"><i class="bi bi-link-45deg me-1"></i>@Localizer["URL"]</label> |
| 60 | <input asp-for="Url" type="url" class="form-control" /> |
| 61 | </div> |
| 62 | |
| 63 | <div class="d-flex gap-3"> |
| 64 | <button type="submit" class="sa-btn sa-btn-accent flex-grow-1"> |
| 65 | <i class="bi bi-check-lg"></i> @Localizer["Save"] |
| 66 | </button> |
| 67 | <a asp-action="Index" asp-route-tripId="@tripId" class="sa-btn sa-btn-ghost">@Localizer["Cancel"]</a> |
| 68 | </div> |
| 69 | </form> |
| 70 | </div> |
| 71 | </div> |
| 72 | </div> |
| 73 | </div> |
| 74 | |
| 75 | @section Scripts { |
| 76 | <partial name="_ValidationScriptsPartial" /> |
| 77 | } |
| 78 | |