module-and-template-store/app/views/clients/index.html.erb

42 lines
1002 B
Plaintext
Raw Normal View History

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>
<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>
<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 %>