<h2><%= link_to l(:label_ldap_user_plural), :action => 'index' %> &#187; <%= @ldap_user.new_record? ? l(:label_user_new) : h(@ldap_user.login) %></h2>

<%
  args = {:url => {:action => @ldap_user.new_record? ? "create" : "update"}}
  args[:html] = {:method => :put} unless @ldap_user.new_record?
%>
<% labelled_tabular_form_for :ldap_user, @ldap_user, args do |f| %>
<%= f.error_messages %>
<div class="box">
<% if @ldap_user.new_record? %>
  <p><%= f.text_field :login, :required => true, :size => 25  %></p>
<% end %>
  <p><%= f.password_field :password, :required => true, :size => 25 %></p>
  <p><%= f.password_field :password_confirmation, :required => true, :size => 25 %></p>
  <p><%= f.text_field :firstname, :required => true %></p>
  <p><%= f.text_field :lastname, :required => true %></p>
  <p><%= f.text_field :mail, :required => true %></p>
</div>
<%= f.submit l(@ldap_user.new_record? ? :button_create : :button_save) %>
<%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %>
<% end %>
