@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" Color="Color.Danger">Achtung!</Switch>
</Field>

<div class="d-flex justify-content-end">
    <Button Color="Color.Primary" Clicked="@SaveClick">@SaveButtonText</Button>
</div>
