]> git.openstreetmap.org Git - rails.git/blob - app/views/user/terms.html.erb
525e0cc81591c56accfb09552e8f3c323f760f18
[rails.git] / app / views / user / terms.html.erb
1 <% content_for :heading do %>
2   <h1><%= t 'user.terms.heading' %></h1>
3   <div class='header-illustration new-user-terms'></div>
4 <% end %>
5
6 <%= form_tag({:action => "save"}, { :class => " inner22 standard-form fillL" }) do %>
7   <!-- legale is <%= @legale %> -->
8   <div class='margin3 col6 horizontal-list'>
9     <label class="standard-label">
10       <%= t 'user.terms.legale_select' %>
11     </label>
12
13     <% [['france', 'FR'], ['italy', 'IT'], ['rest_of_world', 'GB']].each do |name, legale| %>
14       <div class="form-row">
15         <label for="legale_<%= legale %>">
16           <%= radio_button_tag 'legale', legale, @legale == legale %>
17           <%= t('user.terms.legale_names.' + name) %>
18         </label>
19         <script>
20           $("#legale_<%= legale %>").change(function () {
21             $("#contributorTerms").html("<%=j image_tag 'searching.gif' %>");
22             $("#contributorTerms").load("<%= url_for :legale => legale %>");
23           });
24         </script>
25       </div>
26     <% end %>
27   </div>
28
29   <div id="contributorTerms" class="col12 legale">
30     <%= render :partial => "terms" %>
31   </div>
32
33     <div class="form-row margin3 col6">
34       <label for="user_consider_pd">
35         <%= check_box('user', 'consider_pd') %>
36         <%= t 'user.terms.consider_pd' %>
37       </label>
38       <span class="minorNote">(<%= link_to(t('user.terms.consider_pd_why'), t('user.terms.consider_pd_why_url'), :target => :new)%>)</span>
39
40     <%= hidden_field_tag('referer', h(params[:referer])) unless params[:referer].nil? %>
41
42     <div class="buttons form-row inner20 clearfix">
43       <p class="deemphasize"><%= t 'user.terms.read and accept' %></p>
44       <%= submit_tag(t('user.terms.agree'), :name => "agree", :id => "agree") %>
45       <%= submit_tag(t('user.terms.decline'), :name => "decline", :id => "decline") %>
46     </div>
47   <% end %>
48
49   <div class="deemphasize">
50     <p id="contributorGuidance">
51       <%= raw t 'user.terms.guidance',
52                 :summary => 'http://www.osmfoundation.org/wiki/License/Contributor_Terms_Summary',
53                 :translations => 'http://www.osmfoundation.org/wiki/License/Contributor_Terms/Informal_Translations' %>
54     </p>
55   </div>
56 </div>