<%
@user ||= User.new
%>
<%= labelled_form_for :user, :url => login_url do |f| %>
<%= f.text_field :login, :onchange => 'this.value = convToValidLogin( this.value )' %>
<%= f.password_field :password %>
<%= @plugins.dispatch(:login_extra_contents).collect { |content| instance_eval(&content) }.join("") %>
<% button_bar do %>
<%= submit_button( 'login', _('Log in') )%>
<% unless @plugins.dispatch(:allow_user_registration).include?(false) %>
<%= button(:add, _('New user'), { :controller => 'account', :action => 'signup' }) %>
<% end %>
<% end %>
<% end %>
<% unless @plugins.dispatch(:allow_password_recovery).include?(false) %>
<%= link_to _("I forgot my password!"), :controller => 'account', :action => 'forgot_password' %>
<% end %>
<% else %>