34 lines
752 B
Plaintext
34 lines
752 B
Plaintext
|
<p id="notice"><%= notice %></p>
|
||
|
|
||
|
<h1>Accounts</h1>
|
||
|
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Username</th>
|
||
|
<th>Password</th>
|
||
|
<th>Home</th>
|
||
|
<th>Site</th>
|
||
|
<th colspan="3"></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
|
||
|
<tbody>
|
||
|
<% @accounts.each do |account| %>
|
||
|
<tr>
|
||
|
<td><%= account.username %></td>
|
||
|
<td><%= account.password %></td>
|
||
|
<td><%= account.home %></td>
|
||
|
<td><%= account.site %></td>
|
||
|
<td><%= link_to 'Show', account %></td>
|
||
|
<td><%= link_to 'Edit', edit_account_path(account) %></td>
|
||
|
<td><%= link_to 'Destroy', account, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
<%= link_to 'New Account', new_account_path %>
|