-<!-- 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 %>
- <%= label_tag "legale_#{legale}", t('user.terms.legale_names.' + name) %>
- <script type="text/javascript">
- <!--
- $("legale_<%= legale %>").observe("change", function () {
- <%= remote_function(
- :before => update_page do |page|
- page.replace_html 'contributorTerms', image_tag('searching.gif')
- end,
- :url => { :legale => legale }
- )
- %>
- });
- // -->
- </script>
+ <% [['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>