Files
rent-a-car/RentACar/WebApp/Views/Cars/Create.cshtml
ani_konarcheva@abv.bg 6f246bff8b Completed cars
2022-04-06 19:27:11 +03:00

58 lines
2.2 KiB
Plaintext

@model Data.Entities.Car
@{
ViewData["Title"] = "Create";
}
<h1>Create new vehicle</h1>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<label asp-for="Brand" class="control-label"></label>
<input asp-for="Brand" class="form-control" />
<span asp-validation-for="Brand" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Model" class="control-label"></label>
<input asp-for="Model" class="form-control" />
<span asp-validation-for="Model" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Year" class="control-label"></label>
<input asp-for="Year" class="form-control" />
<span asp-validation-for="Year" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="CountPassengerSeats" class="control-label"></label>
<input asp-for="CountPassengerSeats" class="form-control" />
<span asp-validation-for="CountPassengerSeats" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Description" class="control-label"></label>
<a style="color:red;"> *optional</a>
<input asp-for="Description" class="form-control" />
<span asp-validation-for="Description" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="PriceForDay" class="control-label"></label>
<input asp-for="PriceForDay" class="form-control" />
<span asp-validation-for="PriceForDay" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}