50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
@{
|
|
ViewData["Title"] = "SaleCreate";
|
|
}
|
|
<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">
|
|
<input type="number" name="sum" id="sum" readonly/>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-4">Клиент:</div>
|
|
<div class="col-8">
|
|
<select name="client" id="client" class="form-control"
|
|
asp-items="@(new SelectList(@ViewBag.Clients, "Id", "Name"))"></select>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-4">Автомобили:</div>
|
|
<div class="col-8">
|
|
<select name="cars" id="cars" class="form-control" multiple size="5">
|
|
@foreach (var car in ViewBag.Cars)
|
|
{
|
|
<option value="@car.Id">@car.Name</option>
|
|
}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-4">Услуги:</div>
|
|
<div class="col-8">
|
|
<select name="services" id="services" class="form-control" multiple size="5">
|
|
@foreach (var service in ViewBag.Services)
|
|
{
|
|
<option value="@service.Id">@service.Name</option>
|
|
}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-8"></div>
|
|
<div class="col-4">
|
|
<input type="submit" value="Создать" class="btn btn-primary" />
|
|
</div>
|
|
</div>
|
|
</form>
|