user-storage.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  2. <h1>
  3. <span>{{:: 'user-storage' | translate}}</span>
  4. </h1>
  5. <table class="table table-striped table-bordered">
  6. <thead>
  7. <tr ng-show="providers.length > 0 && access.manageRealm">
  8. <th colspan="5" class="kc-table-actions">
  9. <div class="pull-right">
  10. <div>
  11. <select class="form-control" ng-model="selectedProvider"
  12. ng-options="p.id for p in providers"
  13. data-ng-change="addProvider(selectedProvider); selectedProvider = null">
  14. <option value="" disabled selected>{{:: 'add-provider.placeholder' | translate}}</option>
  15. </select>
  16. </div>
  17. </div>
  18. </th>
  19. </tr>
  20. <tr data-ng-show="instances && instances.length > 0">
  21. <th>{{:: 'id' | translate}}</th>
  22. <th>{{:: 'provider-name' | translate}}</th>
  23. <th>{{:: 'enabled' | translate}}</th>
  24. <th>{{:: 'priority' | translate}}</th>
  25. <th colspan="2">{{:: 'actions' | translate}}</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. <tr ng-repeat="instance in instances">
  30. <td><a href="#/realms/{{realm.realm}}/user-storage/providers/{{instance.providerId}}/{{instance.id}}">{{instance.name}}</a></td>
  31. <td>{{instance.providerId|capitalize}}</td>
  32. <td>{{instance.config['enabled'][0]}}</td>
  33. <td>{{instance.config['priority'][0]}}</td>
  34. <td class="kc-action-cell" kc-open="/realms/{{realm.realm}}/user-storage/providers/{{instance.providerId}}/{{instance.id}}">{{:: 'edit' | translate}}</td>
  35. <td class="kc-action-cell" data-ng-click="removeUserStorage(instance)">{{:: 'delete' | translate}}</td>
  36. </tr>
  37. <tr data-ng-show="!instances || instances.length == 0">
  38. <td class="text-muted">{{:: 'no-user-storage-providers-configured' | translate}}</td>
  39. </tr>
  40. </tbody>
  41. </table>
  42. </div>
  43. <kc-menu></kc-menu>