<script type="text/ng-template" id="modals/auth.html">
	<div class="modal-header">
		<button type="button" class="close" ng-click="hideModal()" aria-hidden="true">×</button>
		<h3 class="modal-title">Confirm your details</h3>
	</div>
	<form class="form-horizontal" ng-submit="submit()">
		<div class="modal-body">
			<div class="form-group">
				<label class="col-sm-3 control-label label-required" for="authUsername">Username:</label>
				<div class="col-sm-9">
					<input id="authUsername" class="form-control" type="text" name="username" ng-model="data.username" ng-init="data.username = '{!! Auth::user()->username !!}'" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label label-required" for="authPassword">Password:</label>
				<div class="col-sm-9">
					<input id="authPassword" class="form-control" type="password" name="username" ng-model="data.password" required>
				</div>
			</div>
		</div>
		<div class="modal-footer">
			<button class="btn btn-primary" ng-disabled="helper.loading"><i ng-show="helper.loading" class="fa fa-spinner fa-spin fa-lg"></i> Authentificate</button>
		</div>
	</form>
</script>