@using InventoryTraker.Web.Helpers
@model InventoryTraker.Web.Models.UserEditForm
<form novalidate
	  name="vm.form"
	  ng-submit="vm.form.$valid && vm.save()">
	<fieldset ng-disabled="vm.saving">

		<div class="modal-header">
			<h3 class="modal-title"><i class="fa fa-user"></i> Edit User</h3>
		</div>

		<div class="modal-body">

            <status-message message="vm.statusMessage"></status-message>
            <error-list errors="vm.errorMessages"></error-list>

			@Html.Angular().FormForModel("vm.user")

		</div>

		<div class="modal-footer">
			<button class="btn btn-success" ng-disabled="vm.form.$invalid || vm.form.$pristine">Save</button>
			<button type="button" class="btn" ng-click="$parent.$dismiss()">Cancel</button>
		</div>

	</fieldset>
</form>