137 lines
5.9 KiB
Plaintext
137 lines
5.9 KiB
Plaintext
@model List<SoftwayWeb.Models.GiriConsegnaDaCreare>
|
|
@{
|
|
ViewData["Title"] = "Create";
|
|
Layout = "~/Views/Shared/_LayoutAreaRis.cshtml";
|
|
List<GiriConsegnaDaCreare> lst = new List<GiriConsegnaDaCreare>();
|
|
lst = Model;
|
|
}
|
|
<!-- Striped Rows -->
|
|
<div class="card">
|
|
<h5 class="card-header">Giri da creare</h5>
|
|
<div class="table-responsive text-nowrap">
|
|
<form asp-action="PostIndex">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th> </th>
|
|
<th>Data</th>
|
|
<th>Autista</th>
|
|
<th>Automezzo</th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="table-border-bottom-0">
|
|
@for (var i = 0; i < lst.Count(); i++)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.CheckBoxFor(a=>lst[i].IsSelected)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(a=>lst[i].DataGiro)
|
|
@Html.HiddenFor(a=>lst[i].DataGiro)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(a=>lst[i].CodAutista)-@Html.DisplayFor(a=>lst[i].Autista)
|
|
@Html.HiddenFor(a=>lst[i].CodAutista)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(a=>lst[i].CodMezzo)-@Html.DisplayFor(a=>lst[i].Automezzo)
|
|
@Html.HiddenFor(a=>lst[i].CodMezzo)
|
|
</td>
|
|
<td>
|
|
|
|
<a href="@Url.ActionLink("Index", "Destinazioni", new { id="", codAutista=lst[i].CodAutista, dataGiro=lst[i].DataGiro, codMezzo=lst[i].CodMezzo })" title="Destinazioni" class="links"><img alt="nocons" src="@Url.Content("~/images/icons8-oggetti-puntiforme-30.png")" style="width:24px;height:24px;"></a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
<button type="submit" class="btn btn-primary">Invia</button>
|
|
@Html.ActionLink("Seleziona tutti", "Create", "Giri",new { sel = true }, new { @class = "btn btn-primary" })
|
|
|
|
@Html.ActionLink("Deleziona tutti", "Create", "Giri",new { sel = false },new { @class = "btn btn-primary" })
|
|
|
|
<a asp-action="Index" value="Torna alla lista" class="btn btn-primary">Torna alla lista</a>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<!--/ Striped Rows -->
|
|
|
|
|
|
|
|
|
|
@*<div class="agy-project-wrapper agy-project-page-wrapper">
|
|
<div class="container">
|
|
<div class="row">
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
|
|
<form asp-action="PostIndex">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th> </th>
|
|
<th>Data</th>
|
|
<th>Autista</th>
|
|
<th>Automezzo</th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@for (var i = 0; i < lst.Count(); i++)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.CheckBoxFor(a=>lst[i].IsSelected)
|
|
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(a=>lst[i].DataGiro)
|
|
@Html.HiddenFor(a=>lst[i].DataGiro)
|
|
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(a=>lst[i].CodAutista)-@Html.DisplayFor(a=>lst[i].Autista)
|
|
@Html.HiddenFor(a=>lst[i].CodAutista)
|
|
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(a=>lst[i].CodMezzo)-@Html.DisplayFor(a=>lst[i].Automezzo)
|
|
@Html.HiddenFor(a=>lst[i].CodMezzo)
|
|
|
|
</td>
|
|
@Html.HiddenFor(a=>lst[i].Automezzo)
|
|
@Html.HiddenFor(a=>lst[i].Autista)
|
|
<td>
|
|
<a href="@Url.ActionLink("Index", "Destinazioni", new { id="", codAutista=lst[i].CodAutista, dataGiro=lst[i].DataGiro, codMezzo=lst[i].CodMezzo })" title="Destinazioni" class="links">Destinazioni</a>
|
|
</td>
|
|
|
|
</tr>
|
|
}
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<input type="submit" />
|
|
</form>
|
|
@Html.ActionLink("Seleziona tutti", "Create", "Giri",new { sel = true }, null)
|
|
|
|
@Html.ActionLink("Deleziona tutti", "Create", "Giri",new { sel = false }, null)
|
|
|
|
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
@section Scripts {
|
|
@{
|
|
await Html.RenderPartialAsync("_ValidationScriptsPartial");
|
|
}
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>*@
|