SoftwayWeb/Views/Giri/Create.cshtml

79 lines
3.4 KiB
Plaintext

@model List<SoftwayWeb.Models.GiriConsegnaDaCreare>
@{
ViewData["Title"] = "Create";
Layout = "~/Views/Shared/_LayoutAreaRis.cshtml";
List<GiriConsegnaDaCreare> lst = new List<GiriConsegnaDaCreare>();
lst = Model;
}
<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>&nbsp;</th>
<th>Data</th>
<th>Autista</th>
<th>Automezzo</th>
<th>&nbsp;</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)
&nbsp;
@Html.ActionLink("Deleziona tutti", "Create", "Giri",new { sel = false }, null)
</div>
</div>
@section Scripts {
@{
await Html.RenderPartialAsync("_ValidationScriptsPartial");
}
}
</div>
</div>
</div>