<div class="page-header">
	<h1>Wszystkie kontakty</h1>
</div>

<div id="alertContainer"></div>

<div class="table-responsive">
	<table class="table table-striped">
		<thead>
			<tr>
				<th>Imię i nazwisko</th>
				<th>Adres e-mail</th>
				<th>Telefon</th>
				<th>Operacje</th>
			</tr>
		</thead>
		<tbody>
			<tr ng-repeat="contact in contacts | filter:search">
				<td>{{contact.name}}</td>
				<td>{{contact.email}}</td>
				<td>{{contact.phone}}</td>
				<td>
					<a href="/contact/{{contact.id}}" class="btn btn-default btn-xs">Wyświetl</a>
					<button class="btn btn-danger btn-xs" ng-click="delete($index)">Usuń</button>
				</td>
			</tr>
		</tbody>
	</table>
</div>