Introduced `TermHelper.Translate` to centralize string mappings for `InteractionType`, reducing duplication across components. Updated related code to leverage this utility and streamline interaction row implementation by removing the `Caption` parameter. Minor UI adjustments were also made to align button positioning and styling.
31 lines
815 B
Plaintext
31 lines
815 B
Plaintext
@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>
|
|
|
|
<div class="d-flex justify-content-end">
|
|
<Button Color="Color.Primary" Clicked="@SaveClick">@SaveButtonText</Button>
|
|
</div>
|