Files
Disco/Disco.Web/Views/User/_UserTable.cshtml
T
2013-02-01 12:35:28 +11:00

60 lines
1.8 KiB
Plaintext

@model IEnumerable<Disco.Models.BI.Search.UserSearchResultItem>
<div class="genericData userTable">
@if (Model != null && Model.Count() > 0)
{
<table class="genericData userTable">
<thead>
<tr>
<th>
Id
</th>
<th>
Surname
</th>
<th>
Given Name
</th>
<th>
Display Name
</th>
<th>
Assigned Devices
</th>
<th>
Jobs
</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td>
@Html.ActionLink(item.Id, MVC.User.Show(item.Id))
</td>
<td>
@item.Surname
</td>
<td>
@item.GivenName
</td>
<td>
@item.DisplayName
</td>
<td>
@item.AssignedDevicesCount
</td>
<td>
@item.JobCount
</td>
</tr>
}
</tbody>
</table>
}
else
{
<span class="smallMessage">No Users Found</span>
}
</div>