40 lines
1.7 KiB
Plaintext
40 lines
1.7 KiB
Plaintext
@*
|
|
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
|
|
*@
|
|
@{
|
|
ViewData["Title"] = "UpdateDefect";
|
|
}
|
|
<form method="post">
|
|
<div class="container d-flex justify-content-center align-items-center w-50">
|
|
<div class="card-body ">
|
|
<div class="form-group">
|
|
<label>Неисправности: </label>
|
|
<select id="defect" name="defect" class="form-control" asp-items="@(new SelectList(@ViewBag.Defects, "Id", "DefectType", "DefectPrice"))"></select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Тип неисравности</label>
|
|
<input type="text" id="DefectType" placeholder="Введите тип неисправности" name="DefectType" class="form-control" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Цена починки</label>
|
|
<input type="number" min="100" step="100" id="DefectPrice" placeholder="Введите цену" name="DefectPrice" class="form-control" />
|
|
</div>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Номер машины</th>
|
|
<th scope="col">Марка машины</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@* полученные машины *@
|
|
</tbody>
|
|
</table>
|
|
<br>
|
|
<div>
|
|
<input type="submit" value="Сохранить" class="btn btn-secondary text-center" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|