Index.cshtml 2.5 KB
@model IEnumerable<Maps.Entities.RoadWidth>

@{
    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.Begin)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.CountLaneLeft)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.CountLaneRight)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.End)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.WidthReverseRoad)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.WidthRoadsideLeft)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.WidthRoadsideRight)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.WidthRoadwayForward)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.WidthStrip)
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody>
@foreach (var item in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Begin)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CountLaneLeft)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CountLaneRight)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.End)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.WidthReverseRoad)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.WidthRoadsideLeft)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.WidthRoadsideRight)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.WidthRoadwayForward)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.WidthStrip)
            </td>
            <td>
                <a asp-action="Edit" asp-route-id="@item.RoadWidthId">Edit</a> |
                <a asp-action="Details" asp-route-id="@item.RoadWidthId">Details</a> |
                <a asp-action="Delete" asp-route-id="@item.RoadWidthId">Delete</a>
            </td>
        </tr>
}
    </tbody>
</table>
</body>
</html>