<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}}/oauth-clients/{{oauth.id}}">Settings</a></li>
                    <li class="active"><a href="#/realms/{{realm.id}}/oauth-clients/{{oauth.id}}/credentials">Credentials</a></li>
                    <li><a href="#/realms/{{realm.id}}/oauth-clients/{{oauth.id}}/scope-mappings">Scope</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}}/oauth-clients">OAuth Clients</a></li>
                    <li><a href="#/realms/{{realm.id}}/oauth-clients/{{oauth.id}}">{{oauth.name}}</a></li>
                    <li class="active">Credentials</li>
                </ol>
                <h2 data-ng-hide="create"><span>{{oauth.name}}</span> Credentials</h2>
                <form name="credentialForm" novalidate >
                    <fieldset data-ng-show="passwordRequired">
                        <legend uncollapsed><span class="text">Change 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-actions">
                            <button type="submit" data-ng-click="changePassword()" class="primary" ng-show="password != null">Save
                            </button>
                        </div>
                    </fieldset>
                    <fieldset data-ng-show="totpRequired">
                        <legend uncollapsed><span class="text">Change TOTP Key</span></legend>
                        <div class="form-group">
                            <label for="totp">New Key</label>
                            <div class="controls">
                                <input type="text" id="totp" name="totp" data-ng-model="totp" autofocus
                                       required>
                                <button type="submit" data-ng-click="generateTotp()">Generate
                                </button>
                            </div>
                        </div>
                        <div class="form-actions">
                            <label></label>
                            <button type="submit" data-ng-click="changeTotp()" class="primary" ng-show="totp != null">Save
                            </button>
                        </div>
                    </fieldset>
                </form>
            </div>
        </div>
        <div id="container-right-bg"></div>
    </div>
</div>
