yavsc/Yavsc/Views/Client/Index.cshtml

69 lines
1.7 KiB
Plaintext

@model IEnumerable<Client>
@{
ViewData["Title"] = "Index";
}
<h2>Index</h2>
<p>
<a asp-action="Create">Create New</a>
</p>
<table class="table">
<tr>
8 years ago
<th>
8 years ago
@Html.DisplayNameFor(model => model.Active)
8 years ago
</th>
<th>
@Html.DisplayNameFor(model => model.DisplayName)
</th>
<th>
@Html.DisplayNameFor(model => model.LogoutRedirectUri)
</th>
<th>
@Html.DisplayNameFor(model => model.RedirectUri)
</th>
8 years ago
<th>
@Html.DisplayNameFor(model => model.RefreshTokenLifeTime)
</th>
<th>
@Html.DisplayNameFor(model => model.Secret)
</th>
8 years ago
<th>
@Html.DisplayNameFor(model => model.Type)
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
8 years ago
<td>
8 years ago
@Html.DisplayFor(modelItem => item.Active)
8 years ago
</td>
<td>
@Html.DisplayFor(modelItem => item.DisplayName)
</td>
<td>
@Html.DisplayFor(modelItem => item.LogoutRedirectUri)
</td>
<td>
@Html.DisplayFor(modelItem => item.RedirectUri)
</td>
8 years ago
<td>
@Html.DisplayFor(modelItem => item.RefreshTokenLifeTime)
</td>
<td>
@Html.DisplayFor(modelItem => item.Secret)
</td>
<td>
8 years ago
@Html.DisplayFor(modelItem => item.Type)
</td>
<td>
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
</td>
</tr>
}
</table>