ftp-manager/app/views/accounts/_form.html.erb

39 lines
907 B
Plaintext
Raw Normal View History

2016-08-27 21:40:21 -05:00
<%= form_for(account) do |f| %>
<% if account.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(account.errors.count, "error") %> prohibited this account from being saved:</h2>
<ul>
<% account.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= f.label :username %>
<%= f.text_field :username %>
</div>
2016-09-28 22:39:42 -05:00
<div class="field" data-id="genpass">
2016-08-27 21:40:21 -05:00
<%= f.label :password %>
2016-10-14 22:21:12 -05:00
<%= f.text_field :password, class: "passwd" %>
2016-09-28 22:39:42 -05:00
<%= link_to 'Generate', genpass_url, remote: true %>
2016-08-27 21:40:21 -05:00
</div>
<div class="field">
2016-09-28 22:12:55 -05:00
<%= f.label :home_folder %>
<%= f.text_field :home_folder %>
2016-08-27 21:40:21 -05:00
</div>
<div class="field">
2016-09-28 22:12:55 -05:00
<%= f.label :contact_email %>
<%= f.text_field :contact_email %>
2016-08-27 21:40:21 -05:00
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>