<div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
    <kc-tabs-realm></kc-tabs-realm>

    <form class="form-horizontal" name="realmForm" novalidate kc-read-only="!access.manageRealm">
        <fieldset class="border-top">
            <div class="form-group">
                <label for="registrationAllowed" class="col-md-2 control-label">User registration</label>
                <div class="col-md-6">
                    <input ng-model="realm.registrationAllowed" name="registrationAllowed" id="registrationAllowed" onoffswitch />
                </div>
                <kc-tooltip>Enable/disable the registration page. A link for registration will show on login page too.</kc-tooltip>
            </div>
            <div class="form-group" ng-show="realm.registrationAllowed">
                <label for="registrationEmailAsUsername" class="col-md-2 control-label">Email as username</label>
                <div class="col-md-6">
                    <input ng-model="realm.registrationEmailAsUsername" name="registrationEmailAsUsername" id="registrationEmailAsUsername" onoffswitch />
                </div>
                <kc-tooltip>If enabled then username field is hidden from registration form and email is used as username for new user.</kc-tooltip>
            </div>
            <div class="form-group">
                <label for="editUsernameAllowed" class="col-md-2 control-label">Edit username</label>
                <div class="col-md-6">
                    <input ng-model="realm.editUsernameAllowed" name="editUsernameAllowed" id="editUsernameAllowed" onoffswitch />
                </div>
                <kc-tooltip>If enabled, the username field is editable, readonly otherwise.</kc-tooltip>
            </div>
            <div class="form-group">
                <label for="resetPasswordAllowed" class="col-md-2 control-label">Forget password</label>
                <div class="col-md-6">
                    <input ng-model="realm.resetPasswordAllowed" name="resetPasswordAllowed" id="resetPasswordAllowed" onoffswitch />
                </div>
                <kc-tooltip>Show a link on login page for user to click on when they have forgotten their credentials.</kc-tooltip>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label" for="rememberMe">Remember Me</label>
                <div class="col-md-6">
                    <input ng-model="realm.rememberMe" name="rememberMe" id="rememberMe" onoffswitch />
                </div>
                <kc-tooltip>Show checkbox on login page to allow user to remain logged in between browser restarts until session expires.</kc-tooltip>
            </div>
            <div class="form-group">
                <label for="verifyEmail" class="col-md-2 control-label">Verify email</label>
                <div class="col-md-6">
                    <input ng-model="realm.verifyEmail" name="verifyEmail" id="verifyEmail" onoffswitch />
                </div>
                <kc-tooltip>Require the user to verify their email address the first time they login.</kc-tooltip>
            </div>
            <div class="form-group">
                <label for="sslRequired" class="col-md-2 control-label">Require SSL</label>
                <div class="col-md-2">
                    <div>
                        <select id="sslRequired" ng-model="realm.sslRequired" class="form-control">
                            <option value="all">all requests</option>
                            <option value="external">external requests</option>
                            <option value="none">none</option>
                        </select>
                    </div>
                </div>
                <kc-tooltip>Is HTTPS required?  'None' means HTTPS is not required for any client IP address. 'External requests' means localhost and private IP addresses can access without HTTPS.  'All requests' means HTTPS is required for all IP addresses.</kc-tooltip>
            </div>
        </fieldset>

        <div class="form-group" data-ng-show="access.manageRealm">
            <div class="col-md-10 col-md-offset-2">
                <button kc-save  data-ng-show="changed">Save</button>
                <button kc-reset data-ng-show="changed">Cancel</button>
            </div>
        </div>
    </form>
</div>


<kc-menu></kc-menu>