<script type="text/ng-template" id="modals/no-price-confirmation.html">
	<form name="reasonForm" ng-submit="submit()">
		<div class="modal-header">
			<button type="button" class="close" ng-click="cancel()" aria-hidden="true">×</button>
			<h3 class="modal-title">Closing with no price</h3>
		</div>
		<div class="modal-body">
			<div class="alert alert-danger">
				You are trying to close this job with no price. Please give a reason why this is the case below:
			</div>
			<div class="form-group">
				<select class="form-control" ng-model="data.selected_reason" ng-options="o as o for o in reasons"></select>
			</div>
			<div class="form-group" ng-show="data.selected_reason == 'Other'">
				<textarea id="reasonTextarea" class="form-control" rows="4" name="reason" ng-model="data.reason" placeholder="Enter the reason why you are not charging for this job here..." ng-required="data.selected_reason == 'Other'"></textarea>
			</div>
		</div>
		<div class="modal-footer">
			<button class="btn btn-primary">Update job</button>
		</div>
	</form>
</script>