<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">Create Realm</span></legend>
            <div class="form-group">
                <label for="name" class="col-sm-2 control-label">Import</label>

                <div class="col-md-6" data-ng-hide="importing">
                    <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" kc-on-read-file="importFile($fileContent)">
                </div>

                <div class="col-md-6" data-ng-show="importing">
                    <button class="btn btn-default" data-ng-click="viewImportDetails()">View details</button>
                    <button class="btn btn-default" data-ng-click="reset()">Clear import</button>
                </div>
            </div>

            <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>
                <button kc-cancel data-ng-click="cancel()">Cancel</button>
            </div>
        </div>
    </form>
</div>

<kc-menu></kc-menu>