required-actions.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  2. <h1>{{:: 'authentication' | translate}}</h1>
  3. <kc-tabs-authentication></kc-tabs-authentication>
  4. <table class="table table-striped table-bordered">
  5. <thead>
  6. <tr data-ng-hide="unregisteredRequiredActions.length == 0">
  7. <th colspan = "3" class="kc-table-actions">
  8. <div class="pull-right" data-ng-show="access.manageRealm">
  9. <button class="btn btn-default" data-ng-click="register()">{{:: 'register' | translate}}</button>
  10. </div>
  11. </th>
  12. </tr>
  13. <tr data-ng-hide="requiredActions.length == 0">
  14. <th>{{:: 'required-action' | translate}}</th>
  15. <th>{{:: 'enabled' | translate}}</th>
  16. <th>{{:: 'default-action' | translate}} <i class="fa fa-question-circle text-muted" tooltip-trigger="mouseover mouseout" tooltip="{{:: 'auth.default-action.tooltip' | translate}}" tooltip-placement="top"></i></th>
  17. </tr>
  18. </thead>
  19. <tbody>
  20. <tr ng-repeat="requiredAction in requiredActions" data-ng-show="requiredActions.length > 0">
  21. <td class="kc-sorter">
  22. <button data-ng-hide="flow.builtIn" data-ng-disabled="$first" class="btn btn-default btn-sm" data-ng-click="raisePriority(requiredAction)"><i class="fa fa-angle-up"></i></button>
  23. <button data-ng-hide="flow.builtIn" data-ng-disabled="$last" class="btn btn-default btn-sm" data-ng-click="lowerPriority(requiredAction)"><i class="fa fa-angle-down"></i></button>
  24. <span>{{requiredAction.name}}</span></span>
  25. </td>
  26. <td><input type="checkbox" ng-model="requiredAction.enabled" ng-change="updateRequiredAction(requiredAction)" id="{{requiredAction.alias}}.enabled"></td>
  27. <td><input type="checkbox" ng-model="requiredAction.defaultAction" ng-change="updateRequiredAction(requiredAction)" ng-disabled="!requiredAction.enabled" ng-checked="requiredAction.enabled && requiredAction.defaultAction" id="{{requiredAction.alias}}.defaultAction"></td>
  28. </tr>
  29. <tr data-ng-show="requiredActions.length == 0">
  30. <td>{{:: 'no-required-actions-configured' | translate}}</td>
  31. </tr>
  32. </tbody>
  33. </table>
  34. </div>
  35. <kc-menu></kc-menu>