39 lines
907 B
Plaintext
39 lines
907 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" data-id="genpass">
|
|
<%= f.label :password %>
|
|
<%= f.text_field :password, class: "passwd" %>
|
|
<%= link_to 'Generate', genpass_url, remote: true %>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<%= f.label :home_folder %>
|
|
<%= f.text_field :home_folder %>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<%= f.label :contact_email %>
|
|
<%= f.text_field :contact_email %>
|
|
</div>
|
|
|
|
<div class="actions">
|
|
<%= f.submit %>
|
|
</div>
|
|
<% end %>
|