<%
@user ||= User.new
%>
<% labelled_form_for :user, @user,
:url => login_url do |f| %>
<%= f.text_field :login, :onchange => 'this.value = convToValidLogin( this.value )' %>
<%= f.password_field :password %>
<% button_bar do %>
<%= submit_button( 'login', _('Log in') )%>
<%= link_to content_tag( 'span', _('New user') ),
{ :controller => 'account', :action => 'signup' },
:class => 'button with-text icon-add' %>
<% end %>
<% end %>
<%= link_to _("I forgot my password!"), :controller => 'account', :action => 'forgot_password' %>
<% else %>