password reveal toggling
Squashed commit of the following: commit fde3cc16310062842ccc676a7c33ebfe9b7a3372 Author: Mark Moser <MarkAMoser@gmail.com> Date: Sun Sep 11 19:51:32 2016 -0500 icons commit f4765d24073cdc7e790e9d6fbb73155ba96ac414 Author: Mark Moser <MarkAMoser@gmail.com> Date: Sun Sep 11 19:22:14 2016 -0500 view toggling commit 0929b005981a34e46aa0ad6e59d315d5203eed02 Author: Mark Moser <MarkAMoser@gmail.com> Date: Sun Sep 11 10:21:03 2016 -0500 controller xhr commit 859e1dff28f17feb43f9facc57f887f24e9e8fed Author: Mark Moser <MarkAMoser@gmail.com> Date: Sun Sep 11 09:18:57 2016 -0500 wip
This commit is contained in:
@ -7,8 +7,8 @@
|
||||
<tr>
|
||||
<th>Username</th>
|
||||
<th>Password</th>
|
||||
<th>Home</th>
|
||||
<th>Site</th>
|
||||
<th>Home</th>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -17,12 +17,16 @@
|
||||
<% @accounts.each do |account| %>
|
||||
<tr>
|
||||
<td><%= account.username %></td>
|
||||
<td><%= account.password %></td>
|
||||
<td><%= account.home %></td>
|
||||
<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>
|
||||
<td><%= account.site %></td>
|
||||
<td><%= account.home %></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>
|
||||
|
@ -7,7 +7,12 @@
|
||||
|
||||
<p>
|
||||
<strong>Password:</strong>
|
||||
<%= @account.password %>
|
||||
<span 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>
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -20,5 +25,6 @@
|
||||
<%= @account.site %>
|
||||
</p>
|
||||
|
||||
<%= link_to 'Destroy', @account, method: :delete, data: { confirm: 'Are you sure?' } %>
|
||||
<%= link_to 'Edit', edit_account_path(@account) %> |
|
||||
<%= link_to 'Back', accounts_path %>
|
||||
|
Reference in New Issue
Block a user