<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 class="active"><a href="#/create/role/{{realm.id}}/applications/{{application.id}}">New {{application.name}} Role</a></li>
                    <li><a href="#/realms/{{realm.id}}/applications/{{application.id}}/roles">{{application.name}} Roles</a></li>
                    <li><a href="#/realms/{{realm.id}}/applications/{{application.id}}">{{application.name}} Settings</a></li>
                </ul>
            </div>
            <div id="content">
                <h2 class="pull-left" data-ng-show="create">New Application {{application.name}} Role</h2>
                <h2 class="pull-left" data-ng-hide="create">Application {{application.name}} Role <span>{{role.name}}</span></h2>
                <p class="subtitle" data-ng-show="create"><span class="required">*</span> Required fields</p>
                <form name="realmForm" novalidate>
                    <fieldset>
                        <legend uncollapsed><span class="text">Details</span> </legend>
                        <div class="form-group">
                            <label for="name">Role name </label><span class="required" data-ng-show="create">*</span>

                            <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">
                                <input type="text" id="description" name="description" data-ng-model="role.description" autofocus
                                       required>
                            </div>
                        </div>
                    </fieldset>
                    <div class="form-actions" data-ng-show="create">
                        <button type="submit" data-ng-click="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" data-ng-click="save()" class="primary" data-ng-show="changed">Save
                            changes
                        </button>
                        <button type="submit" data-ng-click="reset()" data-ng-show="changed">Clear changes
                        </button>
                        <button type="submit" data-ng-click="remove()" class="danger" data-ng-hide="changed">
                            Delete
                        </button>
                    </div>

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