38 lines
1.7 KiB
Plaintext
Raw Normal View History

@*
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
ViewData["Title"] = "UpdateCar";
}
<form method="post">
<div class="container d-flex justify-content-center align-items-center w-25">
<div class="card-body ">
<div class="form-group">
<label class="u-label u-text-custom-color-1 u-label-1">Машины: </label>
<select id="defect" name="defect" class="form-control" asp-items="@(new SelectList(@ViewBag.Cars, "Id", "DefectType", "DefectPrice"))"></select>
</div>
<div class="form-group">
<label class="u-label u-text-custom-color-1 u-label-1">Номер машины</label>
<input type="text"
id="DefectType"
placeholder="Введите номер машины"
name="DefectType"
class="form-control" />
</div>
<div class="form-group">
<label class="u-label u-text-custom-color-1 u-label-2">Марка машины</label>
<input type="text"
id="DefectPrice"
placeholder="Введите марку машины"
name="DefectPrice"
class="form-control"
step="1" />
</div>
<br>
<div class="u-container-layout u-container-layout-2">
<input type="submit" value="Сохранить" class="btn btn-secondary text-center d-flex justify-content-md-center" />
</div>
</div>
</div>
</form>