<div id="wrapper" class="container">
    <div class="row">
        <div class="bs-sidebar col-md-3 clearfix" data-ng-include data-src="'partials/realm-menu.html'"></div>
        <div id="content-area" class="col-md-9" role="main">
            <div class="top-nav">
                <ul class="rcue-tabs">
                    <li><a href="#/realms/{{realm.id}}">General</a></li>
                    <li data-ng-show="realm.social"><a href="#/realms/{{realm.id}}/social-settings">Social</a></li>
                    <li><a href="#/realms/{{realm.id}}/registration-settings">Registration</a></li>
                    <li class="active"><a href="#/realms/{{realm.id}}/roles">Roles</a></li>
                    <li><a href="#/realms/{{realm.id}}/required-credentials">Credentials</a></li>
                    <li><a href="#/realms/{{realm.id}}/token-settings">Token</a></li>
                    <li><a href="#/realms/{{realm.id}}/keys-settings">Keys</a></li>
                    <li><a href="#/realms/{{realm.id}}/smtp-settings">SMTP</a></li>
                </ul>
            </div>
            <div id="content">
                <ol class="breadcrumb" data-ng-hide="create">
                    <li><a href="#/realms/{{realm.id}}">{{realm.realm}}</a></li>
                    <li><a href="#/realms/{{realm.id}}">Settings</a></li>
                    <li><a href="#/realms/{{realm.id}}/roles">Roles</a></li>
                    <li class="active">{{role.name}}</li>
                </ol>
                <h2 class="pull-left" data-ng-hide="create"><span>{{realm.realm}}</span> {{role.name}}</h2>
                <ol class="breadcrumb" data-ng-show="create">
                    <li><a href="#/realms/{{realm.id}}">{{realm.realm}}</a></li>
                    <li><a href="#/realms/{{realm.id}}">Settings</a></li>
                    <li><a href="#/realms/{{realm.id}}/roles">Roles</a></li>
                    <li class="active">Add Role</li>
                </ol>
                <h2 class="pull-left" data-ng-show="create"><span>{{realm.realm}}</span> Add Role</h2>
                <p class="subtitle" data-ng-show="create"><span class="required">*</span> Required fields</p>
                <form name="realmForm" novalidate>
                    <fieldset class="border-top">
                        <div class="form-group">
                            <label for="name">Role name <span class="required" data-ng-show="create">*</span></label>

                            <div class="controls">
                                <input type="text" id="name" name="name" data-ng-model="role.name" autofocus
                                       required data-ng-readonly="!create">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="description">Description </label>

                            <div class="controls">
                                <textarea rows="5" cols="50" id="description" name="description" data-ng-model="role.description"></textarea>
                            </div>
                        </div>
                    </fieldset>
                    <div class="form-actions" data-ng-show="create">
                        <button type="submit" kc-save class="primary" data-ng-show="changed">Save
                        </button>
                        <button type="submit" data-ng-click="cancel()" data-ng-click="cancel()"
                                data-ng-show="changed">Cancel
                        </button>
                    </div>

                    <div class="form-actions" data-ng-show="!create">
                        <button type="submit" kc-save class="primary" data-ng-show="changed">Save
                        </button>
                        <button type="submit" kc-reset data-ng-show="changed">Clear changes
                        </button>
                        <button type="submit" data-ng-click="remove()" class="destructive" data-ng-hide="changed">
                            Delete
                        </button>
                    </div>

                </form>
            </div>
        </div>
        <div id="container-right-bg"></div>
    </div>
</div>