Update: Rental Form Styles
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m10s

This commit is contained in:
2026-03-18 10:49:04 +01:00
parent 18289006d1
commit dbcd9f4872

View File

@@ -11,25 +11,38 @@
<h1>Rent</h1>
<form @onsubmit="RentCar">
<InputSelect @bind-Value="_vehicleId">
<div class="form-group mb-3">
<label for="vehicle">Vehicle: </label>
<InputSelect @bind-Value="_vehicleId" id="vehicle" class="form-control" placeholder="Fahrzeug">
@foreach (Vehicle v in _vehicles)
{
<option value=@v.Id>@v.Id - @v.Brand - @v.Model</option>
}
</InputSelect>
</div>
<InputSelect @bind-Value="_customerId">
<div class="form-group mb-3">
<label for="customer">Kunde: </label>
<InputSelect @bind-Value="_customerId" id="customer" class="form-control" placeholder="Kunde">
@foreach (Customer c in _customers)
{
<option value=@c.Id>@c.Name</option>
}
</InputSelect>
</div>
<InputDate @bind-Value="_from"/>
<div class="form-group mb-3">
<label for="from">Von: </label>
<InputDate @bind-Value="_from" class="form-control" id="from" />
</div>
<InputDate @bind-Value="_thru"/>
<div class="form-group mb-3">
<label for="thru">Bis: </label>
<InputDate @bind-Value="_thru" class="form-control" id="thru" />
</div>
<button type="submit">Submit</button>
<button type="submit" class="btn btn-primary">Mieten!</button>
</form>
@code {