@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>

            <Field>
                <Switch TValue="bool" @bind-Checked="Prospect.Warning">Achtung!</Switch>
            </Field>
        </ModalBody>
        <ModalFooter>
            <Button Color="Color.Primary" Clicked="@SaveClick">@SaveButtonText</Button>
        </ModalFooter>
    </ModalContent>
</Modal>