X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/276c29cb3138b2bd3e36d5f24430c7d55df3b8bc..9cb8311f02e1bd0e2188e3b1db623400aaf8da47:/app/views/user/terms.html.erb diff --git a/app/views/user/terms.html.erb b/app/views/user/terms.html.erb index 5dac8f692..3e93ff20c 100644 --- a/app/views/user/terms.html.erb +++ b/app/views/user/terms.html.erb @@ -1,6 +1,6 @@

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

-

<%= t 'user.terms.press accept button' %>

+

<%= t 'user.terms.read and accept' %>

<% form_tag :action => 'terms' do %> @@ -13,7 +13,7 @@ :before => update_page do |page| page.replace_html 'contributorTerms', image_tag('searching.gif') end, - :url => {:legale => legale} + :url => {:legale => legale, :has_decline => @user.new_record?} ) %> <%= label_tag "legale_#{legale}", t('user.terms.legale_names.' + name) %> @@ -22,10 +22,10 @@ <% end %>
- <%= render :partial => "terms" %> + <%= render :partial => "terms", :locals => { :has_decline => @user.new_record? } %>
-<% form_tag :action => 'save' do %> +<% form_tag({:action => "save"}, { :id => "termsForm" }) do %>

<%= check_box('user', 'consider_pd') %> @@ -33,14 +33,19 @@

<%= hidden_field_tag('referer', h(params[:referer])) unless params[:referer].nil? %> - <%= hidden_field('user', 'email') %> - <%= hidden_field('user', 'email_confirmation') %> - <%= hidden_field('user', 'display_name') %> - <%= hidden_field('user', 'pass_crypt') %> - <%= hidden_field('user', 'pass_crypt_confirmation') %> -

-
<%= submit_tag(t('user.terms.decline'), :name => "decline") %>
-
<%= submit_tag(t('user.terms.agree'), :name => "agree") %>
+ <% if @user.new_record? %> + <%= hidden_field('user', 'email') %> + <%= hidden_field('user', 'email_confirmation') %> + <%= hidden_field('user', 'display_name') %> + <%= hidden_field('user', 'pass_crypt') %> + <%= hidden_field('user', 'pass_crypt_confirmation') %> + <%= hidden_field('user', 'openid_url') %> + <% end %> +
+ <% if @user.new_record? %> + <%= submit_tag(t('user.terms.decline'), :name => "decline", :id => "decline") %> + <% end %> + <%= submit_tag(t('user.terms.agree'), :name => "agree", :id => "agree") %>

<% end %>