@using InventoryTraker.Web.Helpers
@model InventoryTraker.Web.Models.UserEditForm

<form novalidate
	  name="vm.form"
	  ng-submit="vm.form.$valid && vm.create()">
	<fieldset ng-disabled="vm.saving">

		<div class="modal-header">
		    <h3 class="modal-title"><i class="fa fa-user"></i> Create 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">Create</button>
		<button type="button" class="btn" ng-click="$dismiss()">Cancel</button>
	</div>

	</fieldset>
</form>