X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/546db822816d87943f93af545ab61bdd5b93fb25..9d3b419aad3069db13fc0169049a30fbc2b2a288:/app/views/user/new.html.erb diff --git a/app/views/user/new.html.erb b/app/views/user/new.html.erb index 97622ae13..71d3e875b 100644 --- a/app/views/user/new.html.erb +++ b/app/views/user/new.html.erb @@ -1,12 +1,6 @@ -

<%= 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 %> +<% content_for :heading do %> +

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

+<% end %>

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

@@ -18,11 +12,11 @@ - + - + @@ -43,7 +37,7 @@ - + @@ -59,7 +53,7 @@ @@ -76,31 +70,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' %>