-<p><%= t 'user.terms.legale_select' %>
-<% form_tag :action => 'terms' do %>
- <select name="legale">
- <%= options_for_select([['United Kingdom (default)', 'GB'], ['France', 'FR'], ['Italy', 'IT']], params[:legale]) %>
- <%= hidden_field_tag('referer', h(params[:referer])) unless params[:referer].nil? %>
- <%= hidden_field('user', 'email') %>
- <%= hidden_field('user', 'email_confirmation') %>
- <%= hidden_field('user', 'display_name') %>
- <%= hidden_field('user', 'pass_crypt') %>
- <%= hidden_field('user', 'pass_crypt_confirmation') %>
- <%= submit_tag(t('user.terms.legale_button')) %>
- </select>
-<% end %></p>
+ <% [['france', 'FR'], ['italy', 'IT'], ['rest_of_world', 'GB']].each do |name, legale| %>
+ <div class="form-row">
+ <label for="legale_<%= legale %>">
+ <%= radio_button_tag 'legale', legale, @legale == legale %>
+ <%= t('user.terms.legale_names.' + name) %>
+ </label>
+ <script>
+ $("#legale_<%= legale %>").change(function () {
+ $("#contributorTerms").html("<%=j image_tag 'searching.gif' %>");
+ $("#contributorTerms").load("<%= url_for :legale => legale %>");
+ });
+ </script>
+ </div>
+ <% end %>
+ </div>