User profile editing and password
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -36,13 +36,13 @@
|
||||
<a href="@(Html.BuildUrlFromExpression<TransactionController>(c => c.Index()))"><i class="fa fa-fw fa-list"></i> Transaction History</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"><i class="fa fa-file-o"></i> Reports</a>
|
||||
<a href="#"><i class="fa fa-fw fa-file-o"></i> Reports</a>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="@(Html.BuildUrlFromExpression<ReportController>(c => c.Distribution()))"><i class="fa fa-file-o"></i> Distribution</a>
|
||||
<a href="@(Html.BuildUrlFromExpression<ReportController>(c => c.Distribution()))"><i class="fa fa-fw fa-file-o"></i> Distribution</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="@(Html.BuildUrlFromExpression<ReportController>(c => c.Movement()))"><i class="fa fa-file-o"></i> Monthly Inventory</a>
|
||||
<a href="@(Html.BuildUrlFromExpression<ReportController>(c => c.Movement()))"><i class="fa fa-fw fa-file-o"></i> Monthly Inventory</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user