realm-localization-upload.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  2. <kc-tabs-realm></kc-tabs-realm>
  3. <ul class="nav nav-tabs nav-tabs-pf">
  4. <li><a href="#/realms/{{realm.realm}}/localization">{{:: 'lookup' | translate}}</a></li>
  5. <li class="active"><a href="#/realms/{{realm.realm}}/localization/upload">{{:: 'localization-upload-file' | translate}}</a></li>
  6. </ul>
  7. <form class="form-horizontal" name="realmForm" novalidate kc-read-only="!access.manageRealm">
  8. <div class="form-group">
  9. <label class="col-md-2 control-label" for="locale"><span class="required">*</span> {{:: 'locale' | translate}}</label>
  10. <div class="col-md-6">
  11. <input class="form-control" id="locale" type="text" ng-model="locale" placeholder="{{:: 'locale' | translate}}" required>
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="col-md-2 control-label"><span class="required">*</span> {{:: 'file' | translate}}</label>
  16. <div class="col-md-6">
  17. <div data-ng-show="!files || files.length == 0">
  18. <label for="import-file" class="btn btn-default">{{:: 'select-file' | translate}} <i class="pficon pficon-import"></i></label>
  19. <input id="import-file" type="file" class="hidden" ng-file-select="onFileSelect($files)" required>
  20. </div>
  21. <span class="kc-uploaded-file" data-ng-show="files.length > 0">
  22. {{files[0].name}}
  23. </span>
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <div class="col-md-10 col-md-offset-2">
  28. <button data-kc-save>{{:: 'import' | translate}}</button>
  29. <button data-kc-reset>{{:: 'cancel' | translate}}</button>
  30. </div>
  31. </div>
  32. </form>
  33. </div>
  34. <kc-menu></kc-menu>