X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/546db822816d87943f93af545ab61bdd5b93fb25..e83d43ca822a30b6074834233064613ea6478f88:/app/views/user/new.html.erb diff --git a/app/views/user/new.html.erb b/app/views/user/new.html.erb index 97622ae13..f45072a92 100644 --- a/app/views/user/new.html.erb +++ b/app/views/user/new.html.erb @@ -1,13 +1,5 @@

<%= t 'user.new.heading' %>

-<% if Acl.address(request.remote_ip).where(:k => "no_account_creation").exists? %> - -

<%= t 'user.new.no_auto_account_create' %>

- -

<%= t 'user.new.contact_webmaster' %>

- -<% else %> -

<%= t 'user.new.fill_form' %>

<%= error_messages_for 'user' %> @@ -18,11 +10,11 @@ - + - + @@ -43,7 +35,7 @@ - + @@ -59,7 +51,7 @@ @@ -76,31 +68,33 @@ +$(document).ready(function () { + $("#openid_enable").click(enableOpenID); -<% end %> + <% if params[:openid] or (@user and @user.openid_url and not @user.openid_url.empty?) -%> + enableOpenID(); + <% else -%> + disableOpenID(); + <% end -%> +}); +
<%= t 'user.new.email address' %><%= text_field(:user, :email, { :size => 50, :maxlength => 255, :tabindex => 1 }) %><%= email_field(:user, :email, { :size => 50, :maxlength => 255, :tabindex => 1 }) %>
<%= t 'user.new.confirm email address' %><%= text_field(:user, :email_confirmation, { :size => 50, :maxlength => 255, :tabindex => 2 }) %><%= email_field(:user, :email_confirmation, { :size => 50, :maxlength => 255, :tabindex => 2 }) %>
<%= raw t 'user.new.openid', :logo => openid_logo %><%= text_field(:user, :openid_url, { :id => "openid_url", :size => 50, :maxlength => 255, :tabindex => 4, :class => "openid_url" }) %><%= url_field(:user, :openid_url, { :id => "openid_url", :size => 50, :maxlength => 255, :tabindex => 4, :class => "openid_url" }) %>
 
- <%= link_to_function(raw(t('user.new.use openid', :logo => openid_logo)), "enableOpenID()") %> + <%= link_to raw(t("user.new.use openid", :logo => openid_logo)), "#", :id => "openid_enable" %> <%= t 'user.new.openid no password' %>