ftp-manager/app/views/accounts/_form.html.erb
2016-08-27 21:40:21 -05:00

38 lines
783 B
Plaintext

<%= 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>
<div class="field">
<%= f.label :password %>
<%= f.text_field :password %>
</div>
<div class="field">
<%= f.label :home %>
<%= f.text_field :home %>
</div>
<div class="field">
<%= f.label :site %>
<%= f.text_field :site %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>