-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview_contacts_view.html
More file actions
26 lines (22 loc) · 901 Bytes
/
view_contacts_view.html
File metadata and controls
26 lines (22 loc) · 901 Bytes
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
{{extend 'layout.html'}}
<h1>Contacts</h1>
| <a href='/{{=request.application}}/{{=request.controller}}/add'>new</a>
| <a href='/{{=request.application}}/{{=request.controller}}/view/A'>A</a>
| <a href='/{{=request.application}}/{{=request.controller}}/view/B'>B</a>
| <a href='/{{=request.application}}/{{=request.controller}}/view/C'>C</a>
| <a href='/{{=request.application}}/{{=request.controller}}/view'>all</a>
|
<table class='table table-striped table-hover'>
<tr>
<th>Name</th>
<th>Address</th>
<th>Web</th>
</tr>
{{ for x in rows: }}
<tr>
<td><a href='/{{=request.application}}/{{=request.controller}}/update/{{=x.id}}'>{{=x.last_name}}, {{=x.first_name}}</a></td>
<td>{{=x.address}}</td>
<td><a href='{{=x.web}}' target='_new'>{{=x.web}}</a></td>
</tr>
{{ pass }}
</table>