Prospects Page

This commit is contained in:
Andre Beging
2022-04-02 15:28:45 +02:00
parent efa27a2122
commit 51088460b4
6 changed files with 242 additions and 0 deletions

View File

@@ -0,0 +1,93 @@
@using FoodsharingSiegen.Contracts.Entity
@{
var divClass = "pc-main";
if (Prospect.Complete) divClass += " complete";
}
<div class="@divClass">
<h5 class="mb-0">
@Prospect.Name
<small style="font-size: .9rem; opacity: .7;">
<a class="invert" href="https://foodsharing.de/profile/@Prospect.FsId" target="_blank">Profil öffnen</a>
</small>
</h5>
<div>@Prospect.Memo</div>
<table>
<InteractionRow
Prospect="Prospect"
Type="InteractionType.Welcome"
AddClick="() => AddInteraction(InteractionType.Welcome)"
RemoveClick="@RemoveInteraction"
Caption="Begrüßung"
ButtonText="Abhaken"
IconClass="fa-solid fa-handshake-simple">
</InteractionRow>
<InteractionRow
Prospect="Prospect"
Type="InteractionType.EinAb"
AddClick="() => AddInteraction(InteractionType.EinAb)"
RemoveClick="@RemoveInteraction"
Caption="Einführungen"
Multiple="true"
Minimum="3"
ButtonText="Hinzufügen"
IconClass="fa-solid fa-basket-shopping">
</InteractionRow>
<InteractionRow
Prospect="Prospect"
Type="InteractionType.IdCheck"
AddClick="() => AddInteraction(InteractionType.IdCheck)"
RemoveClick="@RemoveInteraction"
Caption="Perso prüfen"
ButtonText="Abhaken"
IconClass="fa-solid fa-magnifying-glass">
</InteractionRow>
<InteractionRow
Prospect="Prospect"
Type="InteractionType.PdfPass"
AddClick="() => AddInteraction(InteractionType.PdfPass)"
RemoveClick="@RemoveInteraction"
Caption="FS-Ausweis (digital)"
ButtonText="Abhaken"
IconClass="fa-solid fa-file-pdf">
</InteractionRow>
<InteractionRow
Prospect="Prospect"
Type="InteractionType.PrintPass"
AddClick="() => AddInteraction(InteractionType.PrintPass)"
RemoveClick="@RemoveInteraction"
Caption="FS-Ausweis (print)"
ButtonText="Abhaken"
IconClass="fa-solid fa-id-card">
</InteractionRow>
<InteractionRow
Prospect="Prospect"
Type="InteractionType.Verify"
AddClick="() => AddInteraction(InteractionType.Verify)"
RemoveClick="@RemoveInteraction"
Caption="Verifizieren"
ButtonText="Abhaken"
IconClass="fa-solid fa-user-check">
</InteractionRow>
<InteractionRow
Prospect="Prospect"
Type="InteractionType.Complete"
AddClick="() => AddInteraction(InteractionType.Complete)"
RemoveClick="@RemoveInteraction"
Caption="Fertig"
ButtonText="Abhaken"
IconClass="fa-solid fa-flag-checkered">
</InteractionRow>
</table>
</div>