@page "/create"
@rendermode InteractiveServer
<h3>Neue Rechnung</h3>

<hr />

<div class="mb-3">
  <label class="form-label">Rechnungsnummer</label>
  <InputText class="form-control" @bind-Value="@InvoiceId" style="width: 100%; max-width: 400px;"></InputText>
</div>

@if (!string.IsNullOrWhiteSpace(AlertMessage))
{
  <div class="alert alert-danger mt-3">
    @AlertMessage
  </div>
}

<button type="button" class="btn btn-primary" @onclick="CreateInvoiceAsync">Anlegen</button>