<div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
    <ol class="breadcrumb">
        <li><a href="#/realms/{{realm.realm}}/groups">Groups</a></li>
        <li>{{group.name}}</li>
    </ol>
    <kc-tabs-group></kc-tabs-group>

    <table class="table table-striped table-bordered">
        <caption data-ng-show="users" class="hidden">Table of group members</caption>
        <thead>
         <tr>
        <tr data-ng-show="searchLoaded && users.length > 0">
            <th>Username</th>
            <th>Last Name</th>
            <th>First Name</th>
            <th>Email</th>
            <th>Actions</th>
        </tr>
        </tr>
        </thead>
        <tfoot data-ng-show="users && (users.length >= query.max || query.first > 0)">
        <tr>
            <td colspan="7">
                <div class="table-nav">
                    <button data-ng-click="firstPage()" class="first" ng-disabled="query.first == 0">First page</button>
                    <button data-ng-click="previousPage()" class="prev" ng-disabled="query.first == 0">Previous page</button>
                    <button data-ng-click="nextPage()" class="next" ng-disabled="users.length < query.max">Next page</button>
                </div>
            </td>
        </tr>
        </tfoot>
        <tbody>
        <tr ng-repeat="user in users">
            <td><a href="#/realms/{{realm.realm}}/users/{{user.id}}">{{user.username}}</a></td>
            <td>{{user.lastName}}</td>
            <td>{{user.firstName}}</td>
            <td>{{user.email}}</td>
            <td class="kc-action-cell">
                <button class="btn btn-default btn-block btn-sm" kc-open="/realms/{{realm.realm}}/users/{{user.id}}">Edit</button>
            </td>
        </tr>
        <tr data-ng-show="!users || users.length == 0">
            <td class="text-muted" data-ng-show="searchLoaded && users.length == 0 && lastSearch != null">No group members</td>
            <td class="text-muted" data-ng-show="searchLoaded && users.length == 0 && lastSearch == null">No group members</td>
        </tr>
        </tbody>
    </table>
</div>

<kc-menu></kc-menu>