108 lines
No EOL
5.2 KiB
Text
108 lines
No EOL
5.2 KiB
Text
@model IEnumerable<LANCommander.Data.Models.Game>
|
|
|
|
@{
|
|
ViewData["Title"] = "Games";
|
|
}
|
|
<div class="container-xl">
|
|
<div class="page-header d-print-none">
|
|
<div class="row align-items-center">
|
|
<div class="col">
|
|
<h2 class="page-title">
|
|
Games
|
|
</h2>
|
|
</div>
|
|
|
|
<div class="col-auto ms-auto">
|
|
<div class="btn-list">
|
|
<a asp-action="Create" class="btn btn-primary d-none d-sm-inline-block">
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
|
|
Create
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="page-body">
|
|
<div class="container-xl">
|
|
<div class="row row-cards">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="table-responsive">
|
|
<table class="table table-vcenter table-mobile-md card-table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Title)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.SortTitle)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Description)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.ReleasedOn)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.CreatedOn)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.CreatedBy)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.UpdatedOn)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.UpdatedBy)
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
@foreach (var item in Model)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Title)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.SortTitle)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Description)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.ReleasedOn)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.CreatedOn)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.CreatedBy.UserName)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.UpdatedOn)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.UpdatedBy.UserName)
|
|
</td>
|
|
<td>
|
|
<div class="btn-list flex-nowrap">
|
|
<a asp-action="Edit" asp-route-id="@item.Id" class="btn">Edit</a>
|
|
<a asp-action="Details" asp-route-id="@item.Id" class="btn">Details</a>
|
|
<a asp-action="Delete" asp-route-id="@item.Id" class="btn">Delete</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |