2014-02-13 06:51:23 +00:00
|
|
|
<h1>Listing clients</h1>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Site name</th>
|
|
|
|
<th>Site token</th>
|
|
|
|
<th>Site</th>
|
2014-02-18 09:12:39 +00:00
|
|
|
<th>University</th>
|
|
|
|
<th>Department</th>
|
|
|
|
<th>Admin Email</th>
|
|
|
|
<th>Country</th>
|
|
|
|
<th>URL</th>
|
2014-02-13 06:51:23 +00:00
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
<% @clients.each do |client| %>
|
|
|
|
<tr>
|
|
|
|
<td><%= client.site_name %></td>
|
|
|
|
<td><%= client.site_token %></td>
|
|
|
|
<td><%= client.site_id %></td>
|
2014-02-18 09:12:39 +00:00
|
|
|
<td><%= client.university %></td>
|
|
|
|
<td><%= client.department %></td>
|
|
|
|
<td><%= client.email %></td>
|
|
|
|
<td><%= client.country %></td>
|
|
|
|
<td><%= client.url %></td>
|
2014-02-13 06:51:23 +00:00
|
|
|
<td><%= link_to 'Show', client %></td>
|
|
|
|
<td><%= link_to 'Edit', edit_client_path(client) %></td>
|
|
|
|
<td><%= link_to 'Destroy', client, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<%= link_to 'New Client', new_client_path %>
|