<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.realm}}/users/{{user.username}}">Attributes</a></li>
                    <li class="active"><a href="#/realms/{{realm.realm}}/users/{{user.username}}/user-credentials">Credentials</a></li>
                    <li><a href="#/realms/{{realm.realm}}/users/{{user.username}}/role-mappings">Role Mappings</a></li>
                </ul>
            </div>
            <div id="content">
                <ol class="breadcrumb">
                    <li><a href="#/realms/{{realm.realm}}">{{realm.realm}}</a></li>
                    <li class="active">Users</li>
                </ol>
                <h2><span>{{user.username}}'s</span> Credentials</h2>

                <form name="userForm" novalidate>
                    <fieldset class="border-top">
                        <legend uncollapsed><span class="text">Reset Password</span></legend>
                        <div class="form-group">
                            <label for="password">New Password</label>
                            <div class="controls">
                                <input type="password" id="password" name="password" data-ng-model="password" autofocus
                                       required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="two-lines" for="password">New Password Confirmation</label>
                            <div class="controls">
                                <input type="password" id="confirmPassword" name="confirmPassword"
                                       data-ng-model="confirmPassword" required>
                            </div>
                        </div>
                        <div class="form-group clearfix block" >
                            <label for="userTotp" class="control-label">TOTP Enabled</label>
                            <input ng-model="user.totp" name="userTotp" class="kokosak"  ng-disabled="!isTotp" id="userTotp" onoffswitch/>
                        </div>
                    </fieldset>
                    <div class="form-actions">
                        <button type="submit" data-ng-click="resetPassword()" class="primary" data-ng-show="userChange && !pwdChange">Save</button>
                        <button type="submit" data-ng-click="resetPassword()" class="primary" data-ng-show="!userChange && pwdChange">Reset Password</button>
                        <button type="submit" data-ng-click="resetPassword()" class="primary" data-ng-show="userChange && pwdChange">Save and Reset Password</button>
                        <button type="submit" kc-reset data-ng-show="userChange || pwdChange">Clear changes</button>
                    </div>
                </form>

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