32 lines
686 B
Plaintext
32 lines
686 B
Plaintext
|
<h1>Listing clients</h1>
|
||
|
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Site name</th>
|
||
|
<th>Site token</th>
|
||
|
<th>Site</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><%= 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 %>
|