summaryrefslogtreecommitdiff
path: root/app/views/api/rows/index.html.erb
blob: d65e0593fb58c0e7825995212a2adc348e3f727e (plain)
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
<h1>Listing rows</h1>

<table>
  <tr>
    <th>ID</th>
    <th>User name</th>
    <th>Last name</th>
    <th>First name</th>
    <th>Internal extension</th>
    <th>Office phone number</th>
    <th>Fax phone number</th>
    <th>Email</th>
    <th>Pin</th>
  </tr>

<% @rows.each do |row| %>
  <tr class='<%= cycle('odd', 'even') %>'>
    <td><%= row.id %></td>
    <td><%= link_to row.user_name, tenant_user_path(row.user.current_tenant, row.user) %></td>
    <td><%= row.last_name %></td>
    <td><%= row.first_name %></td>
    <td><%= row.internal_extension %></td>
    <td><%= row.office_phone_number %></td>
    <td><%= row.fax_phone_number %></td>
    <td><%= row.email %></td>
    <td><%= row.pin %></td>
  </tr>
<% end %>
</table>