client-import.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  2. <ol class="breadcrumb">
  3. <li><a href="#/realms/{{realm.realm}}/clients">{{:: 'clients' | translate}}</a></li>
  4. <li>{{:: 'import-client' | translate}}</li>
  5. </ol>
  6. <h1>{{:: 'import-client' | translate}}</h1>
  7. <form class="form-horizontal" name="realmForm" novalidate>
  8. <fieldset class="border-top">
  9. <div class="form-group input-select">
  10. <label class="col-md-2 control-label" for="configFormats">{{:: 'format-option' | translate}}</label>
  11. <div class="col-md-6">
  12. <div class="input-group">
  13. <div>
  14. <select class="form-control" id="configFormats" name="configFormats" ng-model="configFormat" ng-options="format.name for format in configFormats">
  15. <option value="" selected> {{:: 'select-format' | translate}} </option>
  16. </select>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label class="col-md-2 control-label">{{:: 'import-file' | translate}} </label>
  23. <div class="col-md-6">
  24. <div class="controls kc-button-input-file" data-ng-show="!files || files.length == 0">
  25. <label for="import-file" class="btn btn-default">{{:: 'select-file' | translate}} <i class="pficon pficon-import"></i></label>
  26. <input id="import-file" type="file" class="hidden" ng-file-select="onFileSelect($files)">
  27. </div>
  28. <span class="kc-uploaded-file" data-ng-show="files.length > 0">
  29. {{files[0].name}}
  30. </span>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <div class="col-md-10 col-md-offset-2" data-ng-show="files.length > 0">
  35. <button type="submit" data-ng-click="uploadFile()" class="btn btn-primary">{{:: 'import' | translate}}</button>
  36. <button type="submit" data-ng-click="clearFileSelect()" class="btn btn-default">{{:: 'cancel' | translate}}</button>
  37. </div>
  38. </div>
  39. </fieldset>
  40. </form>
  41. </div>
  42. <kc-menu></kc-menu>