@using FoodsharingSiegen.Contracts.Entity @using FoodsharingSiegen.Contracts.Enums @using FoodsharingSiegen.Shared.Helper @inherits FsBase @{ var colorClass = ""; if(Done) colorClass = "interaction--color-done"; var rowClass = ""; if (Done) rowClass += " done"; if (NotNeeded) rowClass += " notneeded"; if (Alert) rowClass += " fs-alert"; } @if(!AllowInteraction || Prospect is {Complete: true }) { } else { @if(Interactions.Count == 0 || Multiple) { if (Multiple) ButtonIconClass = "fa-solid fa-plus"; } else { } }
@Type.Translate(AppSettings)
@if(Interactions.Count > 0) { (@Interactions.First().User.Name @Interactions.First().Date.ToShortDateString()) }
@if(Multiple && Interactions.Count > 0) { @foreach (var interaction in Interactions) {
@if ((Prospect is not { Complete: true } || interaction.Type == InteractionType.Complete) && AllowInteraction) { } else { }
@interaction.User.Name (@interaction.Date.ToShortDateString()) @if (!string.IsNullOrWhiteSpace(interaction.FeedbackInfo)) { (@interaction.FeedbackInfo) }
@FeedbackBuilder(interaction)
} }