-<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>
+<!-- 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>
+ <% end %>
+ </p>
+<% end %>