аче а где

This commit is contained in:
Леонид Малафеев 2024-05-28 19:28:34 +04:00
parent 189b4573bc
commit 749f04230f
3 changed files with 0 additions and 147 deletions

View File

@ -1,61 +0,0 @@
@using CarCenterContracts.ViewModels;
@using CarCenterDataModels.Enums;
@{
ViewData["Title"] = "CarCreate";
}
<div class="text-center">
<h2 class="display-4">Создание машины</h2>
</div>
<form method="post">
<div class="row">
<div class="col-4">Марка:</div>
<div class="col-8">
<select name="brandType" id="brandType">
@foreach (var value in Enum.GetValues(typeof(CarBrand)))
{
<option value="@value">@value</option>
}
</select>
</div>
</div>
<div class="row">
<div class="col-4">Модель:</div>
<div class="col-8"><input type="text" name="model" id="model" /></div>
</div>
<div class="row">
<div class="col-4">Марка:</div>
<div class="col-8">
<select name="carClass" id="carClass">
@foreach (var value in Enum.GetValues(typeof(CarClass)))
{
<option value="@value">@value</option>
}
</select>
</div>
</div>
<div class="row">
<div class="col-8">Особенность:</div>
<!--Без реализации логики четко не ясно что тут писать-->
<select id="feature" name="feature" class="form-control" asp-items="@(new SelectList(@ViewBag.Features,"Id"))"></select>
</div>
<div class="row">
<div class="col-4">Год:</div>
<div class="col-8"><input type="text" name="year" id="year" /></div>
</div>
<div class="row">
<div class="col-4">Вин-номер:</div>
<div class="col-8"><input type="text" name="vin" id="vin" /></div>
</div>
<div class="row">
<div class="col-4">Цена:</div>
<div class="col-8"><input type="text" name="price" id="price" /></div>
</div>
<div class="row">
<div class="col-4"></div>
<div class="col-2"><input type="submit" value="Сохранить" class="btn btn-primary" /></div>
<div class="col-4"></div>
<div class="col-2"><input type="button" value="Отменить" class="btn btn-secondary" /></div>
</div>
</form>

View File

@ -1,19 +0,0 @@
@{
ViewData["Title"] = "CarDelete";
}
<div class="text-center">
<h2 class="display-4">Удалить машину</h2>
</div>
<form method="post">
<div class="row">
<div class="col-8">
<select id="car" name="car" class="form-control" asp-items="@(new SelectList(@ViewBag.Cars,"Id"))"></select>
</div>
</div>
<div class="row">
<div class="col-4"></div>
<div class="col-2"><input type="submit" value="Удалить" class="btn btn-primary" /></div>
<div class="col-4"></div>
<div class="col-2"><input type="button" value="Отменить" class="btn btn-secondary" /></div>
</div>
</form>

View File

@ -1,67 +0,0 @@
@using CarCenterContracts.ViewModels;
@using CarCenterDataModels.Enums;
@{
ViewData["Title"] = "CarUpdate";
}
<div class="text-center">
<h2 class="display-4">Обновление машины</h2>
</div>
<form method="post">
<div class="row mb-3">
<div class="col-4">Машина</div>
<div class="col-8">
<select id="car" name="car" class="form-control" asp-items="@(new SelectList(@ViewBag.Cars,"Id"))"></select>
</div>
</div>
<div class="row">
<div class="col-4">Марка:</div>
<div class="col-8">
<select name="brandType" id="brandType">
@foreach (var value in Enum.GetValues(typeof(CarBrand)))
{
<option value="@value">@value</option>
}
</select>
</div>
</div>
<div class="row">
<div class="col-4">Модель:</div>
<div class="col-8"><input type="text" name="model" id="model" /></div>
</div>
<div class="row">
<div class="col-4">Марка:</div>
<div class="col-8">
<select name="carClass" id="carClass">
@foreach (var value in Enum.GetValues(typeof(CarClass)))
{
<option value="@value">@value</option>
}
</select>
</div>
</div>
<div class="row">
<div class="col-8">Особенность:</div>
<!--Без реализации логики четко не ясно что тут писать-->
<select id="feature" name="feature" class="form-control" asp-items="@(new SelectList(@ViewBag.Features,"Id"))"></select>
</div>
<div class="row">
<div class="col-4">Год:</div>
<div class="col-8"><input type="text" name="year" id="year" /></div>
</div>
<div class="row">
<div class="col-4">Вин-номер:</div>
<div class="col-8"><input type="text" name="vin" id="vin" /></div>
</div>
<div class="row">
<div class="col-4">Цена:</div>
<div class="col-8"><input type="text" name="price" id="price" /></div>
</div>
<div class="row">
<div class="col-4"></div>
<div class="col-2"><input type="submit" value="Обновить" class="btn btn-primary" /></div>
<div class="col-4"></div>
<div class="col-2"><input type="button" value="Отменить" class="btn btn-secondary" /></div>
</div>
</form>