From f9b0490afcf5cbcb279b6ba504995214a86619c6 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 10 Feb 2021 15:09:29 +0000 Subject: [PATCH] Update terms form to use bootstrap --- app/assets/stylesheets/common.scss | 9 ----- app/views/users/terms.html.erb | 62 ++++++++++++++++-------------- 2 files changed, 34 insertions(+), 37 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index c010691c6..481025d81 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -4,8 +4,6 @@ /* Styles common to large and small screens */ -.fillL { background-color: white; } - /* Default rules for the body of every page */ body { @@ -1319,13 +1317,6 @@ tr.turn:hover { list-style-type: lower-alpha; } } - - #decline { - background: $lightblue; - &:hover { - background: darken($lightblue, $hovercolor); - } - } } /* Rules for the account settings page */ diff --git a/app/views/users/terms.html.erb b/app/views/users/terms.html.erb index b3e42189b..99af8b841 100644 --- a/app/views/users/terms.html.erb +++ b/app/views/users/terms.html.erb @@ -7,22 +7,21 @@
<% end %> -<%= form_tag({ :action => "save" }, { :class => "standard-form fillL" }) do %> +<%= form_tag({ :action => "save" }) do %>

<%= t ".read and accept with tou" %>

<%= t ".heading_ct" %>

-
-

<%= t ".contributor_terms_explain" %>

- - +

<%= t ".contributor_terms_explain" %>

+ +
<% [%w[france FR], %w[italy IT], %w[rest_of_world GB]].each do |name, legale| %> -
-
-
- +
+
+ <%= check_box_tag "read_ct", "1", false, :class => "form-check-input" %> + +

<%= t "layouts.tou" %>

<%= t ".tou_explain_html", :tou_link => link_to(t("layouts.tou"), "https://wiki.osmfoundation.org/wiki/Terms_of_Use", :target => :new) %>

-
- - - <%= hidden_field_tag("referer", h(params[:referer])) unless params[:referer].nil? %> -
- <%= submit_tag("Continue", :name => "continue", :id => "continue", :disabled => true) %> - <%= submit_tag("Cancel", :name => "decline", :id => "decline") %> +
+
+ <%= check_box_tag "read_tou", "1", false, :class => "form-check-input" %> +
+
+ + <%= hidden_field_tag("referer", h(params[:referer])) unless params[:referer].nil? %> -