<%= error_messages_for 'user' %>

<%=l(:label_information_plural)%>

<%= f.text_field :login, :required => true, :size => 25 %>

<%= f.text_field :firstname, :required => true %>

<%= f.text_field :lastname, :required => true %>

<%= f.text_field :mail, :required => true %>

<%= f.select :language, lang_options_for_select %>

<% for @custom_value in @custom_values %>

<%= custom_field_tag_with_label @custom_value %>

<% end if @custom_values%>

<%= f.check_box :admin %>

<%=l(:label_authentication)%>

<% unless @auth_sources.empty? %>

<%= f.select :auth_source_id, ([[l(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] }), {}, :onchange => "if (this.value=='') {Element.show('password_fields');} else {Element.hide('password_fields');}" %>

<% end %>

<%= password_field_tag 'password', nil, :size => 25 %>
<%= l(:text_length_between, 4, 12) %>

<%= password_field_tag 'password_confirmation', nil, :size => 25 %>

<% content_for :header_tags do %> <%= javascript_include_tag 'calendar/calendar' %> <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %> <%= javascript_include_tag 'calendar/calendar-setup' %> <%= stylesheet_link_tag 'calendar' %> <% end %>