Files
David Štaleker 03b92525d7 Prvi commit
2023-05-12 09:00:07 +02:00

94 lines
5.1 KiB
Plaintext

@page
@model EveryThing.Pages.FleetFueling.CreateModel
<h4>VehicleFueling</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form method="post">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<label asp-for="VehicleFueling.IdVehicleFk" class="control-label"></label>
<select asp-for="VehicleFueling.IdVehicleFk" class ="form-control" asp-items="ViewBag.IdVehicleFk"></select>
</div>
<div class="form-group">
<label asp-for="VehicleFueling.IdEmployeeFk" class="control-label"></label>
<select asp-for="VehicleFueling.IdEmployeeFk" class ="form-control" asp-items="ViewBag.IdEmployeeFk"></select>
</div>
<div class="form-group">
<label asp-for="VehicleFueling.DateOfFueling" class="control-label"></label>
<input asp-for="VehicleFueling.DateOfFueling" class="form-control" />
<span asp-validation-for="VehicleFueling.DateOfFueling" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="VehicleFueling.IdVehicleFuelingCardFk" class="control-label"></label>
<select asp-for="VehicleFueling.IdVehicleFuelingCardFk" class ="form-control" asp-items="ViewBag.IdVehicleFuelingCardFk"></select>
</div>
<div class="form-group">
<label asp-for="VehicleFueling.FuelingCardInvoiceDate" class="control-label"></label>
<input asp-for="VehicleFueling.FuelingCardInvoiceDate" class="form-control" />
<span asp-validation-for="VehicleFueling.FuelingCardInvoiceDate" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="VehicleFueling.FuelingCardInvoiceNumber" class="control-label"></label>
<input asp-for="VehicleFueling.FuelingCardInvoiceNumber" class="form-control" />
<span asp-validation-for="VehicleFueling.FuelingCardInvoiceNumber" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="VehicleFueling.IdVehicleFuelTypeFk" class="control-label"></label>
<select asp-for="VehicleFueling.IdVehicleFuelTypeFk" class ="form-control" asp-items="ViewBag.IdVehicleFuelTypeFk"></select>
</div>
<div class="form-group">
<label asp-for="VehicleFueling.Quantity" class="control-label"></label>
<input asp-for="VehicleFueling.Quantity" class="form-control" />
<span asp-validation-for="VehicleFueling.Quantity" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="VehicleFueling.Mileage" class="control-label"></label>
<input asp-for="VehicleFueling.Mileage" class="form-control" />
<span asp-validation-for="VehicleFueling.Mileage" class="text-danger"></span>
</div>
<div class="form-group form-check">
<label class="form-check-label">
<input class="form-check-input" asp-for="VehicleFueling.FullTank" /> @Html.DisplayNameFor(model => model.VehicleFueling.FullTank)
</label>
</div>
<div class="form-group">
<label asp-for="VehicleFueling.Amount" class="control-label"></label>
<input asp-for="VehicleFueling.Amount" class="form-control" />
<span asp-validation-for="VehicleFueling.Amount" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="VehicleFueling.IdCountryFk" class="control-label"></label>
<select asp-for="VehicleFueling.IdCountryFk" class ="form-control" asp-items="ViewBag.IdCountryFk"></select>
</div>
<div class="form-group">
<label asp-for="VehicleFueling.City" class="control-label"></label>
<input asp-for="VehicleFueling.City" class="form-control" />
<span asp-validation-for="VehicleFueling.City" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="VehicleFueling.Reference" class="control-label"></label>
<input asp-for="VehicleFueling.Reference" class="form-control" />
<span asp-validation-for="VehicleFueling.Reference" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="VehicleFueling.Note" class="control-label"></label>
<input asp-for="VehicleFueling.Note" class="form-control" />
<span asp-validation-for="VehicleFueling.Note" 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-page="Index">Back to List</a>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}