ftp-manager/app/views/accounts/index.html.erb
2016-09-28 22:12:55 -05:00

38 lines
874 B
Plaintext

<p id="notice"><%= notice %></p>
<h1>FTP Accounts</h1>
<table>
<thead>
<tr>
<th>Home Folder</th>
<th>Username</th>
<th>Password</th>
<th>Contact eMail</th>
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @accounts.each do |account| %>
<tr>
<td><%= account.home_folder %></td>
<td><%= account.username %></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.contact_email %></td>
<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 %>