diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2012-12-17 12:01:45 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2012-12-17 12:01:45 +0100 |
commit | b80bd744ad873f6fc43018bc4bfb90677de167bd (patch) | |
tree | 072c4b0e33d442528555b82c415f5e7a1712b2b0 /app/views/api/rows/index.html.erb | |
parent | 3e706c2025ecc5523e81ad649639ef2ff75e7bac (diff) |
Start of GS5.
Diffstat (limited to 'app/views/api/rows/index.html.erb')
-rw-r--r-- | app/views/api/rows/index.html.erb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app/views/api/rows/index.html.erb b/app/views/api/rows/index.html.erb new file mode 100644 index 0000000..d65e059 --- /dev/null +++ b/app/views/api/rows/index.html.erb @@ -0,0 +1,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>
\ No newline at end of file |