@model IEnumerable<PantheonApi.Data.DbModels.Pantheon.tPA_SyncManagerUsers>

@{
    ViewBag.Title = "Index";
}

<h2>Users</h2>
<div class="text-right">
    <a href="@Url.Action("RegisterNewUser", "Account")"
       class="btn btn-success"
       title="New administrator"><i class="glyphicon glyphicon-plus"></i></a>
</div>
<div class="table-responsive">
    <table class="table table-hover table-striped">
        <thead>
            <tr>
                <th>
                    First name
                </th>
                <th>
                    Last name
                </th>
                <th>
                    Username
                </th>
                <th>
                    Permissions
                </th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.acFirstName)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.acLastName)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.acUsername)
                    </td>
                    <td>
                        <a class="open-modal"
                           data-url="/Users/UserRoles?userId=@item.anQId" href="#"
                           data-modal-title="Permissions">
                            <i class="glyphicon glyphicon-eye-open"></i>
                        </a>
                    </td>
                </tr>
            }
        </tbody>
    </table>
    </div>
