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

		<div class="modal-header">
			<h3 class="modal-title">Add New Customer</h3>
		</div>

		<div class="modal-body">

			<div class="alert alert-info" ng-hide="vm.errorMessage != null">
				Enter details for the new customer below.
			</div>
			<div class="alert alert-danger" ng-show="vm.errorMessage != null">
				{{vm.errorMessage}}
			</div>

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

		</div>

		<div class="modal-footer">
			<button class="btn btn-success">Add</button>
			<button type="button" class="btn btn-warning" ng-click="$dismiss()">Cancel</button>
		</div>

	</fieldset>
</form>