Index.cshtml 2.13 KB
@model IEnumerable<Maps.Entities.RoadSurface>

@{
    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.CrossSectionNumber)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.ElastisityModule)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.End)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.LaneCountLeft)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.LaneCountRight)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.RoadSurfaceConstructionId)
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody>
@foreach (var item in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Begin)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CrossSectionNumber)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.ElastisityModule)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.End)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.LaneCountLeft)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.LaneCountRight)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.RoadSurfaceConstructionId)
            </td>
            <td>
                <a asp-action="Edit" asp-route-id="@item.RoadSurfaceId">Edit</a> |
                <a asp-action="Details" asp-route-id="@item.RoadSurfaceId">Details</a> |
                <a asp-action="Delete" asp-route-id="@item.RoadSurfaceId">Delete</a>
            </td>
        </tr>
}
    </tbody>
</table>
</body>
</html>