<table class="table table-bordered"> <tr> <th> @Html.DisplayNameFor(model => model.Group.Name) </th> <th> @Html.DisplayNameFor(model => model.Name) </th> <th> @Html.DisplayNameFor(model => model.Subject.Name) </th> <th> @Html.DisplayNameFor(model => model.Day.Name) </th> <th> @Html.DisplayNameFor(model => model.Hall.Name) </th> <th> @Html.DisplayNameFor(model => model.Schedule.Period) </th> <th></th> </tr> @foreach (var item in Model) { <tr> <td rowspan="2"> @Html.DisplayFor(modelItem => item.Group.Name) </td> <td> @Html.DisplayFor(modelItem => item.Name) </td> <td> @Html.DisplayFor(modelItem => item.Subject.Name) </td> <td> @Html.DisplayFor(modelItem => item.Day.Name) </td> <td> @Html.DisplayFor(modelItem => item.Hall.Name) </td> <td> @Html.DisplayFor(modelItem => item.Schedule.Period) </td> <td> @Html.ActionLink("Edit", "Edit", new { id = item.Id }) | @Html.ActionLink("Details", "Details", new { id = item.Id }) | @Html.ActionLink("Delete", "Delete", new { id = item.Id }) </td> </tr> }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)