<div class="bs-sidebar col-sm-3 " data-ng-include data-src="'partials/realm-menu.html'"></div>
<div id="content-area" class="col-sm-9" role="main">
    <kc-navigation data-kc-current="general" data-kc-realm="realm.realm" data-kc-social="social"></kc-navigation>
    <h2></h2>
    <div id="content">
        <div data-ng-show="access.viewRealm">
            <h2><span>{{realm.realm}}</span> Theme Settings <span tooltip-placement="right" tooltip="Change the style for any rendered page." class="fa fa-info-circle"></span></h2>
            <form class="form-horizontal" name="realmForm" novalidate kc-read-only="!access.manageRealm">
                <fieldset class="border-top">
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="loginTheme">Login Theme</label>
                        <div class="col-sm-4">
                            <div class="select-kc">
                                <select id="loginTheme"
                                        ng-model="realm.loginTheme"
                                        ng-options="o as o for o in serverInfo.themes.login">
                                    <option value="" disabled selected>Select one...</option>
                                </select>
                            </div>
                        </div>
                        <span tooltip-placement="right" tooltip="Select theme for login, totp, grant, registrationn, and forgot password pages." class="fa fa-info-circle"></span>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="accountTheme">Account Theme</label>
                        <div class="col-sm-4">
                            <div class="select-kc">
                                <select id="accountTheme"
                                        ng-model="realm.accountTheme"
                                        ng-options="o as o for o in serverInfo.themes.account">
                                    <option value="" disabled selected>Select one...</option>
                                </select>
                            </div>
                        </div>
                        <span tooltip-placement="right" tooltip="Select theme for user account management pages." class="fa fa-info-circle"></span>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="adminTheme">Admin Console Theme</label>
                        <div class="col-sm-4">
                            <div class="select-kc">
                                <select id="adminTheme"
                                        ng-model="realm.adminTheme"
                                        ng-options="o as o for o in serverInfo.themes.admin">
                                    <option value="" disabled selected>Select one...</option>
                                </select>
                            </div>
                        </div>
                        <span tooltip-placement="right" tooltip="Select theme for admin console." class="fa fa-info-circle"></span>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="emailTheme">Email Theme</label>
                        <div class="col-sm-4">
                            <div class="select-kc">
                                <select id="emailTheme"
                                        ng-model="realm.emailTheme"
                                        ng-options="o as o for o in serverInfo.themes.email">
                                    <option value="" disabled selected>Select one...</option>
                                </select>
                            </div>
                        </div>
                        <span tooltip-placement="right" tooltip="Select theme for emails that are sent by the server." class="fa fa-info-circle"></span>
                    </div>
                </fieldset>
                <div class="pull-right form-actions" data-ng-show="access.manageRealm">
                    <button kc-reset data-ng-show="changed">Clear changes</button>
                    <button kc-save  data-ng-show="changed">Save</button>
                </div>
            </form>
        </div>
        <div data-ng-hide="access.viewRealm">
            <h2 ><span>{{realm.realm}}</span></h2>
        </div>

    </div>
</div>