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

42 lines
1002 B
Plaintext

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