<div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
    <h1 data-ng-hide="createRealm">Settings</h1>
    <h1 data-ng-show="createRealm">Add Realm</h1>

    <kc-tabs-realm></kc-tabs-realm>

    <form class="form-horizontal " name="realmForm" novalidate kc-read-only="!access.manageRealm">
            <div class="form-group">
                <label class="col-md-2 control-label" for="name"><span class="required">*</span> Name</label>
                <div class="col-md-6">
                    <input class="form-control" type="text" id="name" name="name" data-ng-model="realm.realm" autofocus required>
                </div>
            </div>

            <div class="form-group">
                <label class="col-md-2 control-label" for="enabled">Enabled</label>
                <div class="col-md-6">
                    <input ng-model="realm.enabled" name="enabled" id="enabled" onoffswitch />
                </div>
                <kc-tooltip>Users and clients can only access a realm if it's enabled</kc-tooltip>
            </div>

            <div class="form-group">
                <div class="col-md-10 col-md-offset-2" data-ng-show="createRealm && access.manageRealm">
                    <button kc-save data-ng-show="changed">Save</button>
                    <button kc-cancel data-ng-click="cancel()">Cancel</button>
                </div>

                <div class="col-md-10 col-md-offset-2" data-ng-show="!createRealm && access.manageRealm">
                    <button kc-save  data-ng-show="changed">Save</button>
                    <button kc-reset data-ng-show="changed">Cancel</button>
                    <button kc-delete data-ng-click="remove()" data-ng-hide="changed">Delete Realm</button>
                </div>
            </div>
    </form>
</div>

<kc-menu></kc-menu>