36 lines
1.5 KiB
Plaintext
36 lines
1.5 KiB
Plaintext
@inject IEntryService EntryService
|
|
@inject IAccountService AccountService
|
|
|
|
<div class="dialog-backdrop">
|
|
<div class="dialog-content" @onclick:stopPropagation="true">
|
|
<h5 class="mb-3">@(EditEntry != null ? "Umbuchung bearbeiten" : "Neue Umbuchung")</h5>
|
|
|
|
<div class="form-container">
|
|
<label class="form-label">Zielkonto</label>
|
|
<select class="form-select" @bind="targetAccountId">
|
|
<option value="0">— Auswählen —</option>
|
|
@foreach (var acc in accounts.Where(a => a.Id != SourceAccountId))
|
|
{
|
|
<option value="@acc.Id">@acc.Name</option>
|
|
}
|
|
</select>
|
|
|
|
<label class="form-label">Datum</label>
|
|
<input type="date" class="form-control" @bind="date" />
|
|
|
|
<label class="form-label">Bezeichnung</label>
|
|
<input type="text" class="form-control" @bind="title" placeholder="Beschreibung der Umbuchung" />
|
|
|
|
<label class="form-label">Betrag (€)</label>
|
|
<input type="number" class="form-control no-spinner" @bind="amount" step="0.01" min="0.01" />
|
|
</div>
|
|
|
|
<div class="d-flex justify-content-end gap-2">
|
|
<button class="btn btn-success" @onclick="Save"
|
|
disabled="@(!CanSave)"><i class="bi bi-arrow-left-right"></i> @(EditEntry != null ? "Speichern" : "Hinzufügen")</button>
|
|
<button class="btn btn-outline-secondary" @onclick="Cancel"><i class="bi bi-x-lg"></i> Abbrechen</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|