1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-01-03 20:19:17 +00:00

add settings/password_change state

This commit is contained in:
Rokt33r
2015-06-15 18:43:51 +09:00
parent a3ae5f02dd
commit 4094fff859
8 changed files with 102 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
<img width="30" class="img-circle" ng-src="http://www.gravatar.com/avatar/{{ vm.currentUser.email | gravatar }}">
<a href ng-bind="vm.currentUser.name"></a>
<span class="nav-control-group pull-right">
<a href class="btn btn-sm btn-default"><i class="fa fa-gears fa-fw"></i></a>
<a ui-sref="settings" class="btn btn-sm btn-default" ui-sref-active="active"}"><i class="fa fa-gears fa-fw"></i></a>
<a href class="btn btn-sm btn-default" ng-click="vm.signOut()"><i class="fa fa-sign-out fa-fw"></i></a>
</span>

View File

@@ -0,0 +1,33 @@
<div class="settings-state container-fluid">
<div class="row">
<div class="col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2 col-lg-6 col-lg-offset-3 panel panel-default">
<h1><i class="fa fa-gears"></i> Settings</h1>
<p>
Some settings...
</p>
<hr>
<div class="section">
<h4>Change Password</h4>
<form ng-submit="vm.changePassword()">
<alert type="success" ng-show="vm.isSuccess" close="vm.isSuccess=false">
Successfully changed!!
</alert>
<alert type="danger" ng-show="vm.isError" close="vm.isError=false">
Request failed!!
</alert>
<div class="form-group">
<label for="password">Current Password</label>
<input ng-model="vm.password" class="form-control" type="password" name="password" placeholder="Current Password">
</div>
<div class="form-group">
<label for="newPassword"> New Password</label>
<input ng-model="vm.newPassword" class="form-control" type="password" name="newPassword" placeholder="New Password">
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary form-control">Change Password</button>
</div>
</form>
</div>
</div>
</div>
</div>