-<!-- legale is <%= @legale %> -->
-<% form_tag :action => 'terms' do %>
- <p>
- <%= t 'user.terms.legale_select' %>
- <% [['france', 'FR'], ['italy', 'IT'], ['rest_of_world', 'GB']].each do |name,legale| %>
- <%=
- radio_button_tag 'legale', legale, @legale == legale,
- :onchange => remote_function(
- :before => update_page do |page|
- page.replace_html 'contributorTerms', image_tag('searching.gif')
- end,
- :url => {:legale => legale}
- )
- %>
- <%= label_tag "legale_#{legale}", t('user.terms.legale_names.' + name) %>
+ <% [['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>