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