49 lines
1.5 KiB
Plaintext
49 lines
1.5 KiB
Plaintext
|
@using ComputerShopContracts.ViewModels
|
||
|
|
||
|
@model List<AssemblyViewModel>
|
||
|
|
||
|
@{
|
||
|
ViewData["Title"] = "CreateRequest";
|
||
|
}
|
||
|
|
||
|
<div class="text-center">
|
||
|
<h2 class="display-4">Создание заявки</h2>
|
||
|
</div>
|
||
|
<form method="post">
|
||
|
<div class="container">
|
||
|
<div>Сборки</div>
|
||
|
<div class="table-responsive-lg">
|
||
|
<table id="detailsTable" class="display">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Выбор</th>
|
||
|
<th>Название</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@foreach (var assembly in Model)
|
||
|
{
|
||
|
<tr>
|
||
|
<td>
|
||
|
<input type="checkbox" name="assemblies" value="@assembly.Id" />
|
||
|
</td>
|
||
|
<td>@assembly.AssemblyName</td>
|
||
|
</tr>
|
||
|
}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</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>
|
||
|
|
||
|
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||
|
<script src="https://cdn.datatables.net/1.11.3/js/jquery.dataTables.js"></script>
|
||
|
<script>
|
||
|
$(document).ready(function () {
|
||
|
$('#assembliesTable').DataTable();
|
||
|
});
|
||
|
</script>1
|