<script type="text/ng-template" id="bookings/modals/customer-notification.html">
<form name="customerNotificationForm" ng-submit="submit()">
	<div class="modal-header">
		<button type="button" class="close" ng-click="cancel()" aria-hidden="true">×</button>
		<h3 class="modal-title"><i ng-show="notification.type=='email'" class="icon-li fa fa-envelope"></i><i ng-show="notification.type=='sms'" class="icon-li fa fa-mobile"></i>  Notification sent to the client</h3>
	</div>
	<div class="modal-body">

		<!--Email textarea block-->
		<p><strong>Sent to: </strong> <br><p style="padding-left:10px; font-size:90%; font-style:italic;" ><pre>{[{ notification.sent_to }]}</pre></p></p>
		<p ng-hide="notification.type=='sms'">
			<strong>Subject: </strong> <br><p style="padding-left:10px; font-size:90%; font-style:italic;" ><pre ng-hide="notification.type=='sms'">{[{ notification.subject }]}</pre></p>
		</p>
		<p>
			<strong>Message: </strong> <br><p style="padding-left:10px; font-size:90%; font-style:italic;" ><pre  ng-bind-html="notification.message"></pre></p>
		</p>

	</div>

	<div class="modal-footer text-right">

		By <strong>{[{ notification.user.name }]}</strong>

		<small class="muted"><i class="icon-time"></i> {[{ notification.created_at | fromNow }]}</small>

		<button class=" btn btn-primary pull-right"  ng-click="cancel()" >Close</button>


	</div>
</form>
</script>

