ref: master
app/views/account/login_block.html.erb
<% unless logged_in? %><%= _('Login') %>
<% @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 %> <%= safe_join(@plugins.dispatch(:login_extra_contents).collect { |content| instance_eval(&content) }, "") %> <%= 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) %><% else %><%= link_to _("I forgot my password!"), :controller => 'account', :action => 'forgot_password' %>
<% end %><%= user.identifier %>
<% end %>