AcceptInvitation.cshtml
2,950 bytes
| 1 | @model App.BLL.DTO.TripInvitationBllDto |
|---|---|
| 2 | |
| 3 | @{ |
| 4 | ViewData["Title"] = Localizer["Accept Invitation"]; |
| 5 | var token = (string)ViewData["Token"]!; |
| 6 | } |
| 7 | |
| 8 | <div class="sa-invite-page"> |
| 9 | <div class="sa-card-static sa-invite-card sa-animate-scale-in"> |
| 10 | <div style="height: 6px; background: var(--sa-secondary-gradient);"></div> |
| 11 | <div class="sa-card-body" style="padding: var(--sa-space-10) var(--sa-space-8);"> |
| 12 | <div class="sa-invite-icon" style="color: var(--sa-secondary);"> |
| 13 | <i class="bi bi-envelope-paper-heart-fill"></i> |
| 14 | </div> |
| 15 | |
| 16 | <h2 style="margin-bottom: var(--sa-space-4);">@Localizer["You've Been Invited!"]</h2> |
| 17 | |
| 18 | @if (Model.Trip != null) |
| 19 | { |
| 20 | <div class="sa-card-static" style="margin-bottom: var(--sa-space-6);"> |
| 21 | <div class="sa-card-body" style="padding: var(--sa-space-4);"> |
| 22 | <h4 style="margin-bottom: var(--sa-space-2); font-weight: 700;">@Model.Trip.Name</h4> |
| 23 | @if (!string.IsNullOrEmpty(Model.Trip.Destination)) |
| 24 | { |
| 25 | <div style="color: var(--sa-gray-600); font-size: 0.9rem; margin-bottom: 4px;"> |
| 26 | <i class="bi bi-geo-alt-fill me-1" style="color: var(--sa-primary);"></i> @Model.Trip.Destination |
| 27 | </div> |
| 28 | } |
| 29 | @if (Model.Trip.StartDate.HasValue || Model.Trip.EndDate.HasValue) |
| 30 | { |
| 31 | <div style="color: var(--sa-gray-500); font-size: 0.85rem;"> |
| 32 | <i class="bi bi-calendar-event me-1"></i> |
| 33 | @(Model.Trip.StartDate?.ToString("MMM dd, yyyy") ?? "?") — @(Model.Trip.EndDate?.ToString("MMM dd, yyyy") ?? "?") |
| 34 | </div> |
| 35 | } |
| 36 | </div> |
| 37 | </div> |
| 38 | } |
| 39 | |
| 40 | @if (Model.InvitedByUser != null) |
| 41 | { |
| 42 | <p style="color: var(--sa-gray-600); font-size: 0.9rem; margin-bottom: var(--sa-space-4);"> |
| 43 | <i class="bi bi-person-fill me-1"></i> |
| 44 | @Localizer["Invited by"] @Model.InvitedByUser.FirstName @Model.InvitedByUser.LastName |
| 45 | </p> |
| 46 | } |
| 47 | |
| 48 | <form asp-action="AcceptInvitation" asp-route-token="@token" method="post"> |
| 49 | <input type="hidden" name="_" value="1" /> |
| 50 | <button type="submit" class="sa-btn sa-btn-success sa-btn-lg" style="width: 100%;"> |
| 51 | <i class="bi bi-check-circle"></i> @Localizer["Accept Invitation"] |
| 52 | </button> |
| 53 | </form> |
| 54 | |
| 55 | <p style="font-size: 0.8rem; color: var(--sa-gray-400); margin-top: var(--sa-space-4);"> |
| 56 | @Localizer["By accepting, you will join this trip as a participant."] |
| 57 | </p> |
| 58 | </div> |
| 59 | </div> |
| 60 | </div> |
| 61 | |