<div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
    <h1>Authentication</h1>

    <kc-tabs-authentication></kc-tabs-authentication>
    <table class="table table-striped table-bordered">
        <thead>
        <tr data-ng-hide="unregisteredRequiredActions.length == 0">
            <th colspan = "3" class="kc-table-actions">
                <div class="pull-right" data-ng-show="access.manageRealm">
                    <button class="btn btn-default" data-ng-click="register()">Register</button>
                </div>
            </th>
        </tr>
        <tr data-ng-hide="requiredActions.length == 0">
            <th>Required Action</th>
            <th>Enabled</th>
            <th>Default Action <i class="fa fa-question-circle text-muted" tooltip="If enabled, any new user will have this required action assigned to it."></i></th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="requiredAction in requiredActions" data-ng-show="requiredActions.length > 0">
            <td>{{requiredAction.name}}</td>
            <td><input type="checkbox" ng-model="requiredAction.enabled" ng-change="updateRequiredAction(requiredAction)"></td>
            <td><input type="checkbox" ng-model="requiredAction.defaultAction" ng-change="updateRequiredAction(requiredAction)"></td>
        </tr>
        <tr data-ng-show="requiredActions.length == 0">
            <td>No required actions configured</td>
        </tr>
        </tbody>
    </table>

</div>

<kc-menu></kc-menu>