<script type="text/ng-template" id="clients/site.html">
	<form name="siteForm" class="form-horizontal" ng-submit="submit()">
		<div class="modal-header">
			<button type="button" class="close" ng-click="cancel()">×</button>
			<h3 class="modal-title" ng-hide="data.id">Add new Site</h3>
			<h3 class="modal-title" ng-show="data.id">Edit site</h3>
		</div>
		<div class="modal-body">

			<div class="form-group">
				<label class="col-sm-3 control-label label-required" for="siteName">Name:</label>
				<div class="col-sm-9">
					<input id="siteName" class="form-control" type="text" name="name" ng-model="data.name" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label label-required" for="siteAddress">Address:</label>
				<div class="col-sm-9">
					<input id="siteAddress" class="form-control" type="text" name="address" ng-model="data.address" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label" for="siteAddress2">Address line 2:</label>
				<div class="col-sm-9">
					<input id="siteAddress2" class="form-control" type="text" name="address" ng-model="data.address2">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label label-required" for="sitePostcode">Postcode:</label>
				<div class="col-sm-9">
					<input id="sitePostcode" class="form-control" type="text" name="postcode" ng-model="data.postcode" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label label-required" for="sitePrimaryPhone">Primary phone:</label>
				<div class="col-sm-9">
					<input id="sitePrimaryPhone" class="form-control" type="text" name="primary_phone" ng-model="data.primary_phone" numbers-only required>
				</div>
			</div>

		</div>
		<div class="modal-footer">
			<span class="btn btn-default" ng-click="cancel()">Close</span>
			<button class="btn btn-primary" ng-hide="data.id">Create</button>
			<button class="btn btn-warning" ng-show="data.id">Update</button>
		</div>
	</form>
</script>