From: John Firebaugh Date: Fri, 2 Aug 2013 01:26:04 +0000 (-0700) Subject: Use new design on terms page X-Git-Tag: live~4752^2~16 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/901de4a56a58b4967eec5f2a20e241e3d1c088e9?ds=inline Use new design on terms page --- diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index d4afea410..6eecae577 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -1046,6 +1046,9 @@ ul.results-list li { border-bottom: 1px solid #ccc; } } /* Overrides for pages that use new layout conventions */ +.user-new, +.user-create, +.user-terms, .user-confirm, .site-copyright, .site-welcome { @@ -1056,6 +1059,7 @@ ul.results-list li { border-bottom: 1px solid #ccc; } .user-new, .user-create, +.user-terms, .user-confirm { .content-heading { height: 200px; @@ -1063,7 +1067,8 @@ ul.results-list li { border-bottom: 1px solid #ccc; } } .user-new, -.user-create { +.user-create, +.user-terms { #content { padding: 0; } @@ -1526,7 +1531,7 @@ ul.results-list li { border-bottom: 1px solid #ccc; } /* Rules for the account confirmation page */ -#terms { +.user-terms { .legale { border: 1px solid #ccc; padding: $lineheight; @@ -1548,28 +1553,12 @@ ul.results-list li { border-bottom: 1px solid #ccc; } } } - form.sign { - input[type=submit] { - float: left; - } - #decline { - background: $lightblue; - &:hover { - background: darken($lightblue, $hovercolor); - } + #decline { + background: $lightblue; + &:hover { + background: darken($lightblue, $hovercolor); } } - fieldset { - margin-bottom: $lineheight; - } - #contributorGuidance { - background-color: $offwhite; - border-radius: 4px; - -moz-border-radius: 4px; - } - .signing-buttons { - height: 50px; - } } /* Rules for the account settings page */ diff --git a/app/views/user/new.html.erb b/app/views/user/new.html.erb index 6c89a7830..3c085c99e 100644 --- a/app/views/user/new.html.erb +++ b/app/views/user/new.html.erb @@ -4,7 +4,7 @@
<% end %> -<%= form_for :user, :url => { :action => 'create' }, :html => { :class => 'signup-form-wrapper standard-form fillL col6 pad2' } do %> +<%= form_for :user, :url => { :action => 'create' }, :html => { :class => 'standard-form fillL col6 pad2' } do %> <%= hidden_field_tag('referer', h(@referer)) unless @referer.nil? %>
diff --git a/app/views/user/terms.html.erb b/app/views/user/terms.html.erb index f95073df6..e26439394 100644 --- a/app/views/user/terms.html.erb +++ b/app/views/user/terms.html.erb @@ -1,45 +1,55 @@ <% content_for :heading do %>

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

+
+
<% end %> -
-
-

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

- - - <%= form_tag :action => 'terms' do %> -

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

-
- <% [['france', 'FR'], ['italy', 'IT'], ['rest_of_world', 'GB']].each do |name,legale| %> +<%= form_tag({:action => "save"}, { :class => "standard-form fillL col6 pad2" }) do %> + + + + <% [['france', 'FR'], ['italy', 'IT'], ['rest_of_world', 'GB']].each do |name, legale| %> +
+
- <% end %> -
+ <%= t('user.terms.legale_names.' + name) %> + + +
+ <% end %> +
<%= render :partial => "terms" %>
- - <%= form_tag({:action => "save"}, { :class => "sign" }) do %> -

- + +

+ + (<%= link_to(t('user.terms.consider_pd_why'), t('user.terms.consider_pd_why_url'), :target => :new)%>) +
+ + <%= hidden_field_tag('referer', h(params[:referer])) unless params[:referer].nil? %> + +
+ <%= submit_tag(t('user.terms.agree'), :name => "agree", :id => "agree") %> + <%= submit_tag(t('user.terms.decline'), :name => "decline", :id => "decline") %> +
+<% end %> + +
+

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

+

+ <%= raw t 'user.terms.guidance', + :summary => 'http://www.osmfoundation.org/wiki/License/Contributor_Terms_Summary', + :translations => 'http://www.osmfoundation.org/wiki/License/Contributor_Terms/Informal_Translations' %> +

+
diff --git a/config/locales/en.yml b/config/locales/en.yml index 212ef633e..5115342fd 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1735,7 +1735,7 @@ en: terms: title: "Contributor terms" heading: "Contributor terms" - read and accept: "Please read the agreement below and press the agree button to confirm that you accept the terms of this agreement for your existing and future contributions." + read and accept: "Please read the agreement and press the agree button to confirm that you accept the terms of this agreement for your existing and future contributions." consider_pd: "In addition to the above agreement, I consider my contributions to be in the Public Domain" consider_pd_why: "what's this?" consider_pd_why_url: http://www.osmfoundation.org/wiki/License/Why_would_I_want_my_contributions_to_be_public_domain @@ -1744,7 +1744,7 @@ en: declined: "http://wiki.openstreetmap.org/wiki/Contributor_Terms_Declined" decline: "Decline" you need to accept or decline: "Please read and then either accept or decline the new Contributor Terms to continue." - legale_select: "Please select your country of residence:" + legale_select: "Country of residence:" legale_names: france: "France" italy: "Italy"