Move edit prospect dialog logic
This commit is contained in:
28
FoodsharingSiegen.Server/Dialogs/EditProspectDialog.razor
Normal file
28
FoodsharingSiegen.Server/Dialogs/EditProspectDialog.razor
Normal file
@@ -0,0 +1,28 @@
|
||||
@using FoodsharingSiegen.Contracts.Entity
|
||||
@inherits FsBase
|
||||
|
||||
<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>Info (optional)</FieldLabel>
|
||||
<TextEdit @bind-Text="Prospect.Memo" Placeholder="Beliebige Info"></TextEdit>
|
||||
</Field>
|
||||
|
||||
<Field>
|
||||
<Switch TValue="bool" @bind-Checked="Prospect.Warning">Achtung!</Switch>
|
||||
</Field>
|
||||
|
||||
<Button Color="Color.Primary" Clicked="@SaveClick">@SaveButtonText</Button>
|
||||
Reference in New Issue
Block a user