@using InventoryTraker.Web.Helpers
@model InventoryTraker.Web.Models.DateRangeQuery
@{
    var query = Html.Angular().ModelFor("vm.query");
}
<form novalidate
	  name="vm.form"
	  ng-submit="vm.form.$valid && vm.submit()">
	<fieldset ng-disabled="vm.submitting">
        <error-list errors="vm.errorMessages"></error-list>

	    <div class="row">
	        <div class="col-md-6">
	            @query.FormGroupFor(m => m.StartDate)
	        </div>
            <div class="col-md-6">
	            @query.FormGroupFor(m => m.EndDate)
	        </div>
	    </div>

	    <button class="btn btn-success pull-right">Submit</button>
	</fieldset>
</form>