Index.cshtml 3.07 KB
@model IEnumerable<Maps.Entities.CrossSection>

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
<p>
    <a asp-action="Create">Create New</a>
</p>
<table class="table">
    <thead>
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.Angle)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Direction)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.DistanceEdge)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.LengthSection)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.LengthSurface)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.LocationLeft)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.LocationRight)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.SafetyAvailability)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.TubeAvailability)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Width)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.YearBuild)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.YearRepair)
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody>
@foreach (var item in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Angle)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Direction)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.DistanceEdge)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.LengthSection)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.LengthSurface)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.LocationLeft)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.LocationRight)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.SafetyAvailability)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.TubeAvailability)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Width)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.YearBuild)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.YearRepair)
            </td>
            <td>
                <a asp-action="Edit" asp-route-id="@item.CrossSectionId">Edit</a> |
                <a asp-action="Details" asp-route-id="@item.CrossSectionId">Details</a> |
                <a asp-action="Delete" asp-route-id="@item.CrossSectionId">Delete</a>
            </td>
        </tr>
}
    </tbody>
</table>
</body>
</html>