AddInteractionModal, AddProspectModal
This commit is contained in:
30
FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor
Normal file
30
FoodsharingSiegen.Server/Dialogs/AddInteractionModal.razor
Normal file
@@ -0,0 +1,30 @@
|
||||
@using FoodsharingSiegen.Contracts.Entity
|
||||
|
||||
<Modal @ref="ModalReference">
|
||||
<ModalContent Centered Size="ModalSize.Small">
|
||||
<ModalHeader>
|
||||
<h6>@_header</h6>
|
||||
<CloseButton/>
|
||||
</ModalHeader>
|
||||
<ModalBody>
|
||||
<Field>
|
||||
<Select TValue="Guid" @bind-SelectedValue="SelectedUser">
|
||||
@foreach (var user in Users ?? new List<User>())
|
||||
{
|
||||
<SelectItem Value="@user.Id">@user.Name</SelectItem>
|
||||
}
|
||||
</Select>
|
||||
</Field>
|
||||
@if (_showInfo)
|
||||
{
|
||||
<Field>
|
||||
<MemoEdit @bind-Text="Interaction.Info" Placeholder="@_infoName" Rows="5"/>
|
||||
</Field>
|
||||
}
|
||||
</ModalBody>
|
||||
<ModalFooter>
|
||||
<Button Color="Color.Primary" Clicked="@AddInteraction">Speichern</Button>
|
||||
<Button Color="Color.Secondary" Clicked="ModalReference.Hide">Abbrechen</Button>
|
||||
</ModalFooter>
|
||||
</ModalContent>
|
||||
</Modal>
|
||||
Reference in New Issue
Block a user