
<div class="row">
    <div class="col-md-2 fusio-sidebar" ng-include src="'app/account/nav.html'"></div>
    <div class="col-md-10">
        <div class="fusio-content">
            <h2>Security</h2>
            <div uib-alert ng-class="'alert-danger'" close="closeResponse()" ng-if="response.success === false">
                {{response.message}}
            </div>
            <div uib-alert ng-class="'alert-success'" close="closeResponse()" ng-if="response.success === true">
                {{response.message}}
            </div>

            <form style="max-width:400px;" ng-submit="update(account)">
                <div class="form-group">
                    <label for="oldPassword">Old password:</label>
                    <input type="password" id="oldPassword" ng-model="account.oldPassword" aria-describedby="oldPasswordHelp" required minlength="8" maxlength="128" class="form-control">
                    <span class="help-block" id="oldPasswordHelp"></span>
                </div>
                <div class="form-group">
                    <label for="newPassword">New password:</label>
                    <input type="password" id="newPassword" ng-model="account.newPassword" aria-describedby="newPasswordHelp" required minlength="8" maxlength="128" class="form-control">
                    <span class="help-block" id="newPasswordHelp"></span>
                </div>
                <div class="form-group">
                    <label for="verifyPassword">Verify password:</label>
                    <input type="password" id="verifyPassword" ng-model="account.verifyPassword" aria-describedby="verifyPasswordHelp" required minlength="8" maxlength="128" class="form-control">
                    <span class="help-block" id="verifyPasswordHelp"></span>
                </div>
                <button type="submit" class="btn btn-primary">Change password</button>
            </form>
        </div>
    </div>
</div>
