X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4549c765f64d4e5c20b2d33303a297a2d5ab6356..b681163e98fda3e8e1f7fc289cc651c9f09a90ed:/app/views/user/new.html.erb diff --git a/app/views/user/new.html.erb b/app/views/user/new.html.erb index 59aa7410e..2b1138666 100644 --- a/app/views/user/new.html.erb +++ b/app/views/user/new.html.erb @@ -1,90 +1,104 @@ -

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

- -<% if Acl.find_by_address(request.remote_ip, :conditions => {:k => "no_account_creation"}) %> - -

<%= 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' %>

<%= error_messages_for 'user' %> -<% form_tag :action => 'terms' do %> +<%= form_for :user, :url => { :action => 'terms' } do %> <%= hidden_field_tag('referer', h(@referer)) unless @referer.nil? %> - - - - - - - - - - - - - - - - - - - - - - - +
+
+
+ + <%= email_field(:user, :email, { :tabindex => 1 }) %> +
+
+ + <%= email_field(:user, :email_confirmation, { :tabindex => 2 }) %> +
+

<%= raw(t 'user.new.not displayed publicly') %>

+
+ +
+
+ + <%= text_field(:user, :display_name, { :tabindex => 3 }) %> +
+

<%= t 'user.new.display name description' %> +

+ +
+
+ + <%= url_field(:user, :openid_url, { :id => "openid_url", :tabindex => 4, :class => "openid_url" }) %> +
+
+ +
+
+ + <%= password_field(:user, :pass_crypt, {:tabindex => 5 }) %> +
+
+ + <%= password_field(:user, :pass_crypt_confirmation, { :tabindex => 6 }) %> +
+ + <%= link_to raw(t("user.new.use openid", :logo => openid_logo)), "#", :id => "openid_enable" %> + + + <%= t 'user.new.openid no password' %> + +
+ <%= submit_tag t('user.new.continue'), :tabindex => 6 %> +
+<% end %> - +
<%= t 'user.new.email address' %><%= text_field(:user, :email, { :size => 50, :maxlength => 255, :tabindex => 1, :value => params[:email] }) %>
<%= t 'user.new.confirm email address' %><%= text_field(:user, :email_confirmation, { :size => 50, :maxlength => 255, :tabindex => 2, :value => params[:email] }) %>
<%= t 'user.new.not displayed publicly' %>
 
<%= t 'user.new.display name' %><%= text_field(:user, :display_name, { :size => 30, :maxlength => 255, :tabindex => 3, :value => params[:nickname] }) %>
<%= t 'user.new.display name description' %>