User profile editing and password

This commit is contained in:
2016-09-26 11:13:59 -04:00
parent 6789c1b3b5
commit 75b7c02979
54 changed files with 373 additions and 209 deletions
+6 -31
View File
@@ -1,38 +1,13 @@
@using InventoryTraker.Web.Helpers
@model InventoryTraker.Web.Models.ProfileForm
@model InventoryTraker.Web.Models.ProfileForm
@{
ViewBag.Title = "Your Profile";
}
<h1 class="page-header">Update @ViewBag.Title</h1>
<form novalidate
name="vm.form"
ng-controller="EditProfileController as vm"
ng-submit="vm.form.$valid && vm.save()"
style="max-width: 500px;">
<fieldset ng-disabled="vm.saving">
<div class="alert alert-info" ng-show="vm.errorMessage == null && !vm.saving && !vm.success">
Make changes below.
</div>
<div class="alert alert-info" ng-show="vm.saving">
Saving changes...
</div>
<div class="alert alert-success" ng-show="vm.success">
<span class="fa fa-check"></span>
Changes saved!
</div>
<div class="alert alert-danger" ng-show="vm.errorMessage != null">
{{vm.errorMessage}}
</div>
@Html.Angular().FormForModel("vm.profile")
<div class="form-group">
<button class="btn btn-success">Save Changes</button>
<a class="btn btn-warning" href="/">Cancel</a>
</div>
</fieldset>
</form>
<div class="row" ng-controller="ProfileController as vm">
<div class="panel panel-default col-md-6">
<profile-edit profile="vm.profile"></profile-edit>
</div>
</div>