mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
76 lines
1.9 KiB
Plaintext
76 lines
1.9 KiB
Plaintext
@using cicm_web.Areas.Admin.Models
|
|
@model IEnumerable<cicm_web.Areas.Admin.Models.MachinePhotoViewModel>
|
|
|
|
@{
|
|
ViewData["Title"] = "Index";
|
|
}
|
|
|
|
<h1>Machine photos</h1>
|
|
|
|
<p>
|
|
<a asp-action="Create"
|
|
class="btn btn-primary">
|
|
Create New
|
|
</a>
|
|
</p>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Machine)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.UploadUser)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.UploadDate)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Author)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.License)
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach(MachinePhotoViewModel item in Model)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Machine)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.UploadUser)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.UploadDate)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Author)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.License)
|
|
</td>
|
|
<td>
|
|
<a asp-action="Details"
|
|
asp-route-id="@item.Id"
|
|
class="btn btn-primary">
|
|
Details
|
|
</a>
|
|
<a asp-action="Edit"
|
|
asp-route-id="@item.Id"
|
|
class="btn btn-secondary">
|
|
Edit
|
|
</a>
|
|
<a asp-action="Delete"
|
|
asp-route-id="@item.Id"
|
|
class="btn btn-danger">
|
|
Delete
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table> |