-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview.html
68 lines (61 loc) · 2.29 KB
/
view.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<div ng-controller="UserCtrl as uc">
<div class="jumbotron">
<h2>A Modern Web Template</h2>
<p class="pull-right">... a UI created using AngularJS and Bootstrap</p>
</div>
<div>
<div class="form-group">
<h3>
Users
<a ng-href="/#/users/create" class="btn btn-primary pull-right" id="btn_user_create">Add User</a>
</h3>
<hr>
</div>
<div class="form-group">
<input class="form-control" type="text" ng-model="searchText" placeholder="Type here to filter Users...">
<hr>
</div>
<table id="user_list" class="table table-striped">
<thead>
<tr>
<th>FirstName</th>
<th>LastName</th>
<th>Age</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="usr in uc.users | filter:searchText">
<td>
{{ usr.firstName }}
</td>
<td>
{{ usr.lastName }}
</td>
<td>
{{ usr.age }}
</td>
<td>
<a ng-href="/#/users/edit/{{usr.firstName}}/{{usr.lastName}}" class="btn btn-success pull-right" id="btn_user_update">Edit User</a>
</td>
</tr>
<tr ng-hide="uc.users.length">
<td colspan="3">
<p class="text-center">No Users Found</p>
</td>
</tr>
</tbody>
</table>
<h3>
Debug
</h3>
<hr>
<accordion>
<accordion-group is-open="status.open">
<accordion-heading>
Json Data <i class="pull-right glyphicon" ng-class="{'glyphicon-chevron-down': status.open, 'glyphicon-chevron-right': !status.open}"></i>
</accordion-heading>
<pre>{{ uc.users | json }}</pre>
</accordion-group>
</accordion>
</div>
</div>