Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (28 sloc) 980 Bytes
<br/>
<div class="row">
<div class="col-md-12">
<a class="btn btn-primary" href="#/users/new">Create a user</a>
<h3 class="block">Users</h3>
<table class="table table-striped">
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
<th>Phone</th>
<th></th>
</tr>
<tr ng-hide="users.length" >
<td colspan="5">No users found, Please create one.</td>
</tr>
<tr ng-show="users.length" ng-repeat="user in users">
<td>{{user.first_name}}</td>
<td>{{user.last_name}}</td>
<td>{{user.email}}</td>
<td>{{user.phone}}</td>
<td>
<a href="#/users/{{user.id}}/edit">Edit</a> | <a href="" ng-click="deleteUser(user.id)">Remove</a>
</td>
</tr>
</table>
</div>
</div>