]> git.openstreetmap.org Git - rails.git/blob - app/views/users/terms.html.erb
Merge remote-tracking branch 'upstream/pull/4705'
[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="mb-3">
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-secondary-subtle rounded">
34     <%= render :partial => "terms" %>
35   </div>
36
37   <div>
38     <p id="contributorGuidance" class="text-muted">
39       <%= t ".guidance_info_html",
40             :readable_summary_link => link_to(t(".readable_summary"),
41                                               "https://www.osmfoundation.org/wiki/License/Contributor_Terms_Summary"),
42             :informal_translations_link => link_to(t(".informal_translations"),
43                                                    "https://www.osmfoundation.org/wiki/License/Contributor_Terms/Informal_Translations") %>
44     </p>
45   </div>
46   <div class="mb-3">
47     <div class="form-check">
48       <%= check_box_tag "read_ct", "1", false, :class => "form-check-input" %>
49       <label for="read_ct" class="form-check-label">
50         <%= t ".read_ct" %>
51       </label>
52     </div>
53   </div>
54
55   <h4>
56     <%= t "layouts.tou" %>
57   </h4>
58   <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>
59
60   <div class="mb-3">
61     <div class="form-check">
62       <%= check_box_tag "read_tou", "1", false, :class => "form-check-input" %>
63       <label for="read_tou" class="form-check-label">
64         <%= t ".read_tou" %>
65       </label>
66     </div>
67   </div>
68
69   <%= hidden_field_tag("referer", h(params[:referer])) unless params[:referer].nil? %>
70
71   <div class="mb-3">
72     <%= submit_tag("Continue", :name => "continue", :id => "continue", :disabled => true, :class => "btn btn-primary") %>
73     <%= submit_tag("Cancel", :name => "decline", :id => "decline", :class => "btn btn-outline-secondary") %>
74   </div>
75
76   <div class="mb-3">
77     <div class="form-check">
78       <%= check_box("user", "consider_pd", :class => "form-check-input") %>
79     <label for="user_consider_pd" class="form-check-label">
80       <%= t ".consider_pd" %>
81     </label>
82     <span class="minorNote">(<%= link_to(t(".consider_pd_why"), t(".consider_pd_why_url"), :target => :new) %>)</span>
83   </div>
84 <% end %>