@* For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860 *@ @using Microsoft.AspNetCore.Mvc.Localization @using gehGassi.Web.Models @using Microsoft.Extensions.Localization @using gehGassi.Web.Helper @using gehGassi.Core.Services @using gehGassi.Web.Services @model gehGassi.Web.Models.PublicWalkRequestWithNamesVm @inject IViewLocalizer Localizer @inject ICountryService CountryService @inject ICurrentTimeZoneService CurrentTimeZoneService @{ IStringLocalizer annotationsLocalizer = ViewBag.AnnotationsLocalizer; List responses = new List(); if(ViewBag.Responses != null) { responses = ViewBag.Responses; } TimeSpan userOffset = await CurrentTimeZoneService.GetOffsetAsync(); }
@if (!string.IsNullOrWhiteSpace(Model.DogOwnerPhoto)) { } else { }

@Model.DogOwnerName

@annotationsLocalizer["PublicWalkRequest_RequestType"]
@Model.RequestType.GetDisplayName(annotationsLocalizer)
@annotationsLocalizer["PublicWalkRequest_Status"]
@Model.Status.GetDisplayName(annotationsLocalizer)
@annotationsLocalizer["PublicWalkRequest_Price"]
@Model.Price.ToString("n2")
@annotationsLocalizer["Common_Created"]
@Model.Created.ToOffset(userOffset).ToString("g")
(@Model.UpdatedAt.ToOffset(userOffset).ToString("g"))
@annotationsLocalizer["PublicWalkRequest_StartDate"]
@Model.StartDate.ToOffset(userOffset).ToString("g")
@annotationsLocalizer["PublicWalkRequest_EndDate"]
@Model.EndDate.ToOffset(userOffset).ToString("g")
@Localizer["Common_Address"]
@Model.PickupAddress_AddressLine1, @Model.PickupAddress_AddressLine2, @Model.PickupAddress_Zip, @Model.PickupAddress_City, @CountryService.GetState(Model.PickupAddress_CountryCode, Model.PickupAddress_State).Name, @CountryService.GetCountry(Model.PickupAddress_CountryCode).Name
@Localizer["Common_Dogs"] - @Model.DogCount
@string.Join(", ", Model.Dogs.Select(x => x.Name))
@annotationsLocalizer["PublicWalkRequest_Info"]
@Model.Info

Antworten

@if(responses.Count == 0) {
keine
} @foreach (var response in responses) { var css = string.Empty; if (response.Status == PublicWalkResponseStatusVm.Accepted) { css = "bg-success text-white"; }
@annotationsLocalizer["Common_Created"]
@response.Created.ToOffset(userOffset).ToString("g")
(@response.UpdatedAt.ToOffset(userOffset).ToString("g"))
@Localizer["Common_DogWalker"]
@response.DogWalkerName
@Localizer["Common_Offer"]
@response.Price.ToString("n2")
@Localizer["Common_Status"]
@response.Status.GetDisplayName(annotationsLocalizer)
@if (!string.IsNullOrWhiteSpace(response.Info)) {
Info
@response.Info
} @if (!string.IsNullOrWhiteSpace(response.Answer)) {
Antort
@response.Answer
} @if (!string.IsNullOrWhiteSpace(response.CancellationReason)) {
Stornogrund
@response.CancellationReason
}
}