Files
FoodsharingOnboarding/FoodsharingSiegen.Server/Dialogs/AddProspectModal.razor
2022-05-31 17:00:32 +02:00

34 lines
1.2 KiB
Plaintext

@using FoodsharingSiegen.Contracts.Entity
<Modal @ref="@ModalReference">
<ModalContent Centered Size="ModalSize.Default">
<ModalHeader>
<ModalTitle>@Header</ModalTitle>
<CloseButton/>
</ModalHeader>
<ModalBody>
<div class="row">
<div class="col">
<Field>
<FieldLabel>Name</FieldLabel>
<TextEdit @bind-Text="Prospect.Name"/>
</Field>
</div>
<div class="col">
<Field>
<FieldLabel>Foodsharing-ID</FieldLabel>
<NumericEdit TValue="int" @bind-Value="Prospect.FsId"></NumericEdit>
</Field>
</div>
</div>
<Field>
<FieldLabel>Memo (optional)</FieldLabel>
<TextEdit @bind-Text="Prospect.Memo" Placeholder="Beliebige Info"></TextEdit>
</Field>
</ModalBody>
<ModalFooter>
<Button Color="Color.Primary" Clicked="@SaveClick">@SaveButtonText</Button>
</ModalFooter>
</ModalContent>
</Modal>