<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>
            <th class="kc-table-actions" colspan="5">
                <div class="form-inline">
                    <div class="form-group">
                        <div class="input-group">
                            <input type="text" placeholder="Search..." data-ng-model="search.name" class="form-control search" onkeyup="if(event.keyCode == 13){$(this).next('I').click();}">
                            <div class="input-group-addon">
                                <i class="fa fa-search" type="submit"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </th>
        </tr>
        -->
        <tr data-ng-hide="executions.length == 0">
            <th colspan="2">Auth Type</th>
            <th colspan="{{flowmax}}">Requirement</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="execution in executions">
            <td ng-show="execution.subFlow"></td>
            <td><h2>{{execution.referenceType}}</h2></td>
            <td ng-hide="execution.subFlow"></td>
            <td ng-repeat="choice in execution.requirementChoices">
                <!--
                <div class="dropdown pull-left">
                <select class="form-control"
                        ng-model="execution.requirement"
                        ng-options="choice for choice in execution.requirementChoices">
                </select>
                </div>
                -->
                <!--
                <div ng-repeat="choice in execution.requirementChoices">
                <label >
                    <input type="radio" ng-model="execution.requirement" ng-value="choice">
                    {{choice}}
                </label>
                </div>
                -->
            <label >
                <input type="radio" ng-model="execution.requirement" ng-value="choice" ng-change="updateExecution(execution)">
                {{choice}}
            </label>

            </td>
            <td ng-repeat="emptee in execution.empties"></td>
         </tr>
        <tr data-ng-show="executions.length == 0">
            <td>No executions available</td>
        </tr>
        </tbody>
    </table>
</div>

<kc-menu></kc-menu>