<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}}/clients">Clients</a></li>
        <li>{{client.clientId}}</li>
    </ol>

    <kc-tabs-client></kc-tabs-client>

    <table class="table table-striped table-bordered">
        <thead>
        <tr>
            <th class="kc-table-actions" colspan="4" data-ng-show="access.manageClients">
                <div class="pull-right">
                    <a class="btn btn-default" href="#/create/role/{{realm.realm}}/clients/{{client.id}}">Add Role</a>
                </div>
            </th>
        </tr>
        <tr data-ng-hide="!roles || roles.length == 0">
            <th>Role Name</th>
            <th>Composite</th>
            <th>Description</th>
            <th>Actions</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="role in roles">
            <td><a href="#/realms/{{realm.realm}}/clients/{{client.id}}/roles/{{role.id}}">{{role.name}}</a></td>
            <td>{{role.composite}}</td>
            <td>{{role.description}}</td>
            <td class="kc-action-cell">
                <button class="btn btn-default btn-block btn-sm" kc-open="/realms/{{realm.realm}}/clients/{{client.id}}/roles/{{role.id}}">Edit</button>
            </td>
        </tr>
        <tr data-ng-show="!roles || roles.length == 0">
            <td>No client roles available</td>
        </tr>
        </tbody>
    </table>
</div>

<kc-menu></kc-menu>
