<p><%= t 'user.terms.press accept button' %></p>
-<p><%= t 'user.terms.legale_select' %>
+<!-- legale is <%= @legale %> -->
<% 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>
+ <p><%= t 'user.terms.legale_select' %></p>
+ <% [['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) %><br/>
+ <% end %>
+ <%= 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')) %>
+<% end %>
<div id="contributorTerms">
<p id="first"><%= @text['intro'] %></p>
<%= hidden_field('user', 'display_name') %>
<%= hidden_field('user', 'pass_crypt') %>
<%= hidden_field('user', 'pass_crypt_confirmation') %>
- <a href="<%= t 'user.terms.exit_wiki' %>"><%= t 'user.terms.decline' %></a>
- <%= submit_tag(t('user.terms.button')) %>
+ <div class="left_right_line">
+ <div class="left"><a class="looks_like_button" href="<%= t 'user.terms.exit_wiki' %>"><%= t 'user.terms.decline' %></a></div>
+ <div class="right"><%= submit_tag(t('user.terms.button'), :class => 'float_right') %></div>
+ </div>
</p>
<% end %>
continue: Continue
flash create success message: "User was successfully created. Check your email for a confirmation note, and you will be mapping in no time :-)<br /><br />Please note that you will not be able to login until you've received and confirmed your email address.<br /><br />If you use an antispam system which sends confirmation requests then please make sure you whitelist webmaster@openstreetmap.org as we are unable to reply to any confirmation requests."
terms:
- heading: Contributor terms
+ heading: "Contributor terms"
press accept button: "Please read the agreement below and press the agree button to activate your account."
consider_pd: "I consider my contributions to be in the Public Domain"
- consider_pd_why: what's this?
+ consider_pd_why: "what's this?"
consider_pd_why_url: http://wiki.openstreetmap.org/wiki/Why_would_I_want_my_contributions_to_be_public_domain
button: Agree
exit_wiki: "http://wiki.openstreetmap.org/wiki/Contributor_Terms_Declined"
decline: "Decline"
legale_select: "Please select your country of residence:"
legale_button: "Go"
+ legale_names:
+ france: "France"
+ italy: "Italy"
+ rest_of_world: "Rest of the world"
no_such_user:
title: "No such user"
heading: "The user {{user}} does not exist"
def self.legal_text_for_country(country_code)
file_name = File.join(RAILS_ROOT, "config", "legales", country_code.to_s + ".yml")
- file_name = File.join(RAILS_ROOT, "config", "legales", "GB.yml") unless File.exist? file_name
+ file_name = File.join(RAILS_ROOT, "config", "legales", APP_CONFIG['default_legale'] + ".yml") unless File.exist? file_name
YAML::load_file(file_name)
end
.table1 {
background: #fff;
}
+
+/* rules for styling a link to look like a button to get around the difficulty
+ * of laying anything out properly in html. */
+
+a.looks_like_button {
+ color: black;
+ background: buttonface;
+ border: 1px solid black;
+ font-size: small;
+ padding: 1px;
+}
+
+/* hack to get left/right alignment on a line working. apparently still works in IE too.
+ * shamelessly stolen from http://www.spartanicus.utvinternet.ie/left_and_right_alignment_using_css.htm
+ */
+div.left_right_line {
+ text-align:right;
+ margin:1em 0;
+ padding:0;
+ width:80%;
+}
+div.left_right_line div {
+ display:inline;
+ white-space:nowrap
+}
+div.left_right_line div.left {
+ float:left
+}
+#content>div.left_right_line {
+ display:table;
+ width:60%
+}
+#content>div.left_right_line div {
+ display:table-cell
+}
+#content>div.left_right_line div.left {
+ float:none;
+ text-align:left
+}
+#content>div.left_right_line div.right {
+ text-align:right
+}
+