Update: Rental Form Styles
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m10s
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m10s
This commit is contained in:
@@ -11,25 +11,38 @@
|
|||||||
<h1>Rent</h1>
|
<h1>Rent</h1>
|
||||||
|
|
||||||
<form @onsubmit="RentCar">
|
<form @onsubmit="RentCar">
|
||||||
<InputSelect @bind-Value="_vehicleId">
|
|
||||||
@foreach (Vehicle v in _vehicles)
|
|
||||||
{
|
|
||||||
<option value=@v.Id>@v.Id - @v.Brand - @v.Model</option>
|
|
||||||
}
|
|
||||||
</InputSelect>
|
|
||||||
|
|
||||||
<InputSelect @bind-Value="_customerId">
|
<div class="form-group mb-3">
|
||||||
@foreach (Customer c in _customers)
|
<label for="vehicle">Vehicle: </label>
|
||||||
{
|
<InputSelect @bind-Value="_vehicleId" id="vehicle" class="form-control" placeholder="Fahrzeug">
|
||||||
<option value=@c.Id>@c.Name</option>
|
@foreach (Vehicle v in _vehicles)
|
||||||
}
|
{
|
||||||
</InputSelect>
|
<option value=@v.Id>@v.Id - @v.Brand - @v.Model</option>
|
||||||
|
}
|
||||||
|
</InputSelect>
|
||||||
|
</div>
|
||||||
|
|
||||||
<InputDate @bind-Value="_from"/>
|
<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="_thru"/>
|
<div class="form-group mb-3">
|
||||||
|
<label for="from">Von: </label>
|
||||||
|
<InputDate @bind-Value="_from" class="form-control" id="from" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<button type="submit">Submit</button>
|
<div class="form-group mb-3">
|
||||||
|
<label for="thru">Bis: </label>
|
||||||
|
<InputDate @bind-Value="_thru" class="form-control" id="thru" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button type="submit" class="btn btn-primary">Mieten!</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
|
|||||||
Reference in New Issue
Block a user