]> git.openstreetmap.org Git - rails.git/blob - app/views/users/terms.html.erb
Bootstrap 5: Add form-label class to hand-crafted form labels
[rails.git] / app / views / users / terms.html.erb
1 <% content_for :head do %>
2   <%= javascript_include_tag "user" %>
3 <% end %>
4
5 <% content_for :heading_class, "pb-0" %>
6 <% content_for :heading do %>
7   <div class='header-illustration new-user-terms'>
8     <h1><%= t ".heading" %></h1>
9   </div>
10 <% end %>
11
12 <%= form_tag({ :action => "save" }) do %>
13   <!-- legale is <%= @legale %> -->
14   <p class="text-muted"><%= t ".read and accept with tou" %></p>
15   <h4>
16     <%= t ".heading_ct" %>
17   </h4>
18   <p class="text-muted"><%= t ".contributor_terms_explain" %></p>
19   <label class="form-label">
20     <%= t ".legale_select" %>
21   </label>
22   <div class="form-group">
23     <% [%w[france FR], %w[italy IT], %w[rest_of_world GB]].each do |name, legale| %>
24       <div class="form-check form-check-inline">
25         <%= radio_button_tag "legale", legale, @legale == legale, :data => { :url => url_for(:legale => legale) }, :class => "form-check-input" %>
26         <label for="legale_<%= legale %>" class="form-check-label">
27           <%= t(".legale_names.#{name}") %>
28         </label>
29       </div>
30     <% end %>
31   </div>
32
33   <div id="contributorTerms" class="legale border border-grey rounded">
34     <%= render :partial => "terms" %>
35   </div>
36
37   <div>
38     <p id="contributorGuidance" class="text-muted">
39       <%= t ".guidance_html",
40             :summary => "https://www.osmfoundation.org/wiki/License/Contributor_Terms_Summary",
41             :translations => "https://www.osmfoundation.org/wiki/License/Contributor_Terms/Informal_Translations" %>
42     </p>
43   </div>
44   <div class="form-group">
45     <div class="form-check">
46       <%= check_box_tag "read_ct", "1", false, :class => "form-check-input" %>
47       <label for="read_ct" class="form-check-label">
48         <%= t ".read_ct" %>
49       </label>
50     </div>
51   </div>
52
53   <h4>
54     <%= t "layouts.tou" %>
55   </h4>
56   <p class="text-muted"><%= t ".tou_explain_html", :tou_link => link_to(t("layouts.tou"), "https://wiki.osmfoundation.org/wiki/Terms_of_Use", :target => :new) %></p>
57
58   <div class="form-group">
59     <div class="form-check">
60       <%= check_box_tag "read_tou", "1", false, :class => "form-check-input" %>
61       <label for="read_tou" class="form-check-label">
62         <%= t ".read_tou" %>
63       </label>
64     </div>
65   </div>
66
67   <%= hidden_field_tag("referer", h(params[:referer])) unless params[:referer].nil? %>
68
69   <div class="form-group">
70     <%= submit_tag("Continue", :name => "continue", :id => "continue", :disabled => true, :class => "btn btn-primary") %>
71     <%= submit_tag("Cancel", :name => "decline", :id => "decline", :class => "btn btn-outline-secondary") %>
72   </div>
73
74   <div class="form-group">
75     <div class="form-check">
76       <%= check_box("user", "consider_pd", :class => "form-check-input") %>
77     <label for="user_consider_pd" class="form-check-label">
78       <%= t ".consider_pd" %>
79     </label>
80     <span class="minorNote">(<%= link_to(t(".consider_pd_why"), t(".consider_pd_why_url"), :target => :new) %>)</span>
81   </div>
82 <% end %>