<div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
    <form class="form-horizontal" name="realmForm" novalidate>
        <fieldset>
            <legend><span class="text">Import Realm</span></legend>
            <div class="form-group">
                <label for="import-file" class="col-sm-2 control-label">Import JSON File </label>
                <div class="col-md-6">
                    <div class="controls kc-button-input-file" data-ng-show="!files || files.length == 0">
                        <label for="import-file" class="btn btn-default">Select file <i class="pficon pficon-import"></i></label>
                        <input id="import-file" type="file" class="hidden" ng-file-select="onFileSelect($files)">
                    </div>
                    <span class="kc-uploaded-file" data-ng-show="files.length > 0">{{files[0].name}}</span>
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-10 col-md-offset-2">
                    <button type="submit" data-ng-disabled="files.length == 0" data-ng-click="uploadFile()" class="btn btn-primary">Upload</button>
                    <button type="submit" data-ng-disabled="files.length == 0" data-ng-click="clearFileSelect()" class="btn btn-default">Cancel</button>
                </div>
            </div>
        </fieldset>
    </form>

    <form class="form-horizontal" name="realmForm" novalidate>
        <fieldset>
            <legend><span class="text">Create Realm</span></legend>
            <div class="form-group">
                <label for="name" class="col-sm-2 control-label">Name <span class="required">*</span></label>

                <div class="col-md-6">
                    <input class="form-control" type="text" id="name" name="name" data-ng-model="realm.realm" autofocusrequired>
                </div>
            </div>
            <div class="form-group">
                <label for="enabled" class="col-sm-2 control-label">Enabled</label>
                <div class="col-md-6">
                    <input ng-model="realm.enabled" name="enabled" id="enabled" onoffswitch />
                </div>
            </div>
        </fieldset>

        <div class="form-group">
            <div class="col-md-10 col-md-offset-2">
                <button kc-save data-ng-disabled="!changed">Create</button>
            </div>
        </div>
    </form>
</div>

<kc-menu></kc-menu>