realm-create.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  2. <h1>{{:: 'add-realm' | translate}}</h1>
  3. <form class="form-horizontal" name="realmForm" novalidate>
  4. <fieldset>
  5. <div class="form-group">
  6. <label for="name" class="col-sm-2 control-label">{{:: 'import' | translate}}</label>
  7. <div class="col-md-6" data-ng-hide="importing">
  8. <label for="import-file" class="btn btn-default">{{:: 'select-file' | translate}} <i class="pficon pficon-import"></i></label>
  9. <input id="import-file" type="file" class="hidden" kc-on-read-file="importFile($fileContent)">
  10. </div>
  11. <div class="col-md-6" data-ng-show="importing">
  12. <input type="button" class="btn btn-default" data-ng-click="viewImportDetails()" value="{{:: 'view-details' | translate}}"/>
  13. <input type="button" class="btn btn-default" data-ng-click="reset()" value="{{:: 'clear-import' | translate}}"/>
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label for="name" class="col-sm-2 control-label">{{:: 'name' | translate}} <span class="required">*</span></label>
  18. <div class="col-md-6">
  19. <input class="form-control" kc-no-reserved-chars type="text" id="name" name="name" data-ng-model="realm.realm" autofocusrequired>
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label for="enabled" class="col-md-2 control-label">{{:: 'enabled' | translate}}</label>
  24. <div class="col-md-6">
  25. <input ng-model="realm.enabled" name="enabled" id="enabled" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}"/>
  26. </div>
  27. </div>
  28. </fieldset>
  29. <div class="form-group">
  30. <div class="col-md-10 col-md-offset-2">
  31. <button kc-save data-ng-disabled="!changed">{{:: 'create' | translate}}</button>
  32. <button kc-cancel data-ng-click="cancel()">{{:: 'cancel' | translate}}</button>
  33. </div>
  34. </div>
  35. </form>
  36. </div>
  37. <kc-menu></kc-menu>