<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" data-ng-show="create">
                <ul class="rcue-tabs" >
                    <li class="active"><a href="#">New User</a></li>
                    <li><a href="#">Users</a></li>
                </ul>
            </div>
            <div class="top-nav" data-ng-show="!create">
                <ul class="rcue-tabs" >
                    <li class="active"><a href="#">Attributes</a></li>
                    <li><a href="#">Credentials</a></li>
                    <li><a href="#">Role Mappings</a></li>
                </ul>
            </div>
            <div id="content">
                <h2 class="pull-left" data-ng-show="create">New User</h2>
                <h2 class="pull-left" data-ng-hide="create">User <span>{{user.username}}</span></h2>
                <p class="subtitle"><span class="required">*</span> Required fields</p>
                <form name="applicationForm" novalidate>
                    <fieldset>
                        <legend uncollapsed><span class="text">Attributes</span></legend>
                        <div class="form-group">
                            <label for="username">Username </label><span class="required" data-ng-show="create">*</span>
                            <div class="controls">
                                <input type="text" id="username" name="username" data-ng-model="user.username" autofocus
                                       required data-ng-readonly="!create">
                            </div>
                        </div>

                        <div class="form-group clearfix block">
                            <label class="control-label">Enabled</label>
                            <div class="onoffswitch">
                                <input type="checkbox" data-ng-model="user.enabled" class="onoffswitch-checkbox"
                                       name="enabled" id="enabled">
                                <label for="enabled" class="onoffswitch-label">
                                            <span class="onoffswitch-inner">
                                                <span class="onoffswitch-active">ON</span>
                                                <span class="onoffswitch-inactive">OFF</span>
                                            </span>
                                    <span class="onoffswitch-switch"></span>
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="email" class="control-label">Email</label>

                            <div class="controls">
                                <input class="input-small" type="text" name="email" id="email"
                                       data-ng-model="user.email">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="firstName" class="control-label">First Name</label>

                            <div class="controls">
                                <input class="input-small" type="text" name="firstName" id="firstName"
                                       data-ng-model="user.firstName">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="lastName" class="control-label">Last Name</label>

                            <div class="controls">
                                <input class="input-small" type="text" name="lastName" id="lastName"
                                       data-ng-model="user.lastName">
                            </div>
                        </div>
                    </fieldset>
                    <div class="form-actions" data-ng-show="create">
                        <button type="submit" data-ng-click="save()" class="primary">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">
                            Delete
                        </button>
                    </div>

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