<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">
    <ul class="nav nav-tabs nav-tabs-pf">
        <li><a href="#/realms/{{realm.realm}}">General</a></li>
        <li data-ng-show="realm.social"><a href="#/realms/{{realm.realm}}/social-settings">Social</a></li>
        <li><a href="#/realms/{{realm.realm}}/roles">Roles</a></li>
        <li><a href="#/realms/{{realm.realm}}/default-roles">Default Roles</a></li>
        <li><a href="#/realms/{{realm.realm}}/required-credentials">Credentials</a></li>
        <li><a href="#/realms/{{realm.realm}}/token-settings">Token</a></li>
        <li class="active"><a href="#/realms/{{realm.realm}}/keys-settings">Keys</a></li>
        <li><a href="#/realms/{{realm.realm}}/smtp-settings">Email</a></li>
    </ul>
    <div id="content">
        <ol class="breadcrumb">
            <li><a href="#/realms/{{realm.realm}}">{{realm.realm}}</a></li>
            <li><a href="#/realms/{{realm.realm}}">Settings</a></li>
            <li class="active">Keys</li>
        </ol>
        <h2><span>{{realm.realm}}</span> Keys</h2>
        <form name="realmForm" novalidate>
            <fieldset class="border-top">
                <div class="form-group">
                    <label for="publicKey">Public key</label>

                    <div class="controls">
                        <textarea type="text" id="publicKey" name="publicKey" class="xlarge" rows="5"
                                  kc-select-action="click" readonly>{{realm.publicKey}}</textarea>
                    </div>
                </div>
            </fieldset>
            <div class="pull-right form-actions">
                <button class="btn btn-primary btn-lg" type="submit" data-ng-click="generate()">Generate new keys</button>
            </div>
        </form>
    </div>
</div>