2016-08-27 21:40:21 -05:00
|
|
|
<p id="notice"><%= notice %></p>
|
|
|
|
|
|
|
|
<h1>Accounts</h1>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Username</th>
|
|
|
|
<th>Password</th>
|
|
|
|
<th>Site</th>
|
2016-09-11 19:53:02 -05:00
|
|
|
<th>Home</th>
|
2016-08-27 21:40:21 -05:00
|
|
|
<th colspan="3"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
<% @accounts.each do |account| %>
|
|
|
|
<tr>
|
|
|
|
<td><%= account.username %></td>
|
2016-09-11 19:53:02 -05:00
|
|
|
<td class="passwd" data-id="passwd">
|
|
|
|
<%= link_to reveal_password_path(account.id), remote: true do %>
|
|
|
|
<i class="fa fa-lock fa-lg"></i>
|
|
|
|
<% end %>
|
|
|
|
<span>********</span>
|
|
|
|
</td>
|
2016-08-27 21:40:21 -05:00
|
|
|
<td><%= account.site %></td>
|
2016-09-11 19:53:02 -05:00
|
|
|
<td><%= account.home %></td>
|
2016-08-27 21:40:21 -05:00
|
|
|
<td><%= link_to 'Show', account %></td>
|
|
|
|
<td><%= link_to 'Edit', edit_account_path(account) %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<%= link_to 'New Account', new_account_path %>
|