Compare commits

..

2 Commits

Author SHA1 Message Date
762680537b New: Readme
All checks were successful
Build and Push Docker Image / build (push) Successful in 4m7s
2026-03-18 11:09:30 +01:00
dbcd9f4872 Update: Rental Form Styles
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m10s
2026-03-18 10:49:04 +01:00
2 changed files with 31 additions and 15 deletions

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 {

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# Smartrent
Deployed unter: https://sr.kocoder.xyz