X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/eb0f9ff63d5ad5d91ea941420e094dd2980df094..b4106383d99ccbf152d79b0f2c9deca95df9fb61:/app/views/user/new.html.erb?ds=sidebyside diff --git a/app/views/user/new.html.erb b/app/views/user/new.html.erb index 8b1dab5be..7fd537d14 100644 --- a/app/views/user/new.html.erb +++ b/app/views/user/new.html.erb @@ -1,38 +1,82 @@ -

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

+<% content_for :head do %> + <%= javascript_include_tag "user" %> +<% end %> -<% if Acl.find_by_address(request.remote_ip, :conditions => {:k => "no_account_creation"}) %> +<% content_for :heading do %> +

<%= t '.title' %>

+
+
+<% end %> -

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

+<%= form_for current_user, :url => { :action => 'create' }, :html => { :class => 'standard-form fillL col6 inner22' } do |f| %> + <%= hidden_field_tag('referer', h(@referer)) unless @referer.nil? %> -

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

+
+
+ + <%= f.email_field(:email, { :tabindex => 1 }) %> + <%= f.error_message_on(:email) %> +
+
+ + <%= f.email_field(:email_confirmation, { :tabindex => 2 }) %> + <%= f.error_message_on(:email_confirmation) %> +
+ <%= raw(t '.not displayed publicly') %> +
-<% else %> +
+
+ + <%= f.text_field(:display_name, { :tabindex => 3 }) %> + <%= f.error_message_on(:display_name) %> +
+ <%= t '.display name description' %> +
-

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

+
+
+ + <%= f.select(:auth_provider, Auth::PROVIDERS, { :default => "", :tabindex => 4 }) %> + <%= f.text_field(:auth_uid, { :tabindex => 5 }) %> + <%= f.error_message_on(:auth_uid) %> +
+ <%= t '.auth no password' %> +
-

<%= t 'user.new.license_agreement' %> -

+
+
+ + <%= f.password_field(:pass_crypt, { :tabindex => 6 }) %> + <%= f.error_message_on(:pass_crypt) %> +
+
+ + <%= f.password_field(:pass_crypt_confirmation, { :tabindex => 7 }) %> + <%= f.error_message_on(:pass_crypt_confirmation) %> +
+
-<%= error_messages_for 'user' %> +
+ <%= link_to raw(t(".use external auth")), "#", :id => "auth_enable" %> +
-<% form_tag :action => 'save' do %> -<%= hidden_field_tag('referer', h(params[:referer])) unless params[:referer].nil? %> - - - - - - - - - - - - -
<%= t 'user.new.email address' %><%= text_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}) %>
<%= t 'user.new.not displayed publicly' %>
 
<%= t 'user.new.display name' %><%= text_field('user', 'display_name',{:size => 30, :maxlength => 255, :tabindex => 3}) %>
 
<%= t 'user.new.password' %><%= password_field('user', 'pass_crypt',{:size => 30, :maxlength => 255, :tabindex => 4}) %>
<%= t 'user.new.confirm password' %><%= password_field('user', 'pass_crypt_confirmation',{:size => 30, :maxlength => 255, :tabindex => 5}) %>
 
+ <%= submit_tag t('.continue'), :tabindex => 8 %> <% end %> -<% end %> +
+

<%= t '.about.header' %>

+ <%= t '.about.html' %> +