]> git.openstreetmap.org Git - rails.git/blob - app/views/user/new.html.erb
Hide OpenID url on signup page to make it less confusing
[rails.git] / app / views / user / new.html.erb
1 <%= javascript_include_tag 'openID.js' %>
2
3 <h1><%= t 'user.new.heading' %></h1>
4
5 <% if Acl.find_by_address(request.remote_ip, :conditions => {:k => "no_account_creation"}) %>
6
7 <p><%= t 'user.new.no_auto_account_create' %>
8 </p>
9
10 <p><%= t 'user.new.contact_webmaster' %>
11 </p>
12
13 <% else %>
14
15 <p><%= t 'user.new.fill_form' %>
16 </p>
17
18 <p><%= t 'user.new.license_agreement' %>
19 </p>
20
21 <%= error_messages_for 'user' %>
22
23 <% form_tag :action => 'save' do %>
24 <%= hidden_field_tag('referer', h(params[:referer])) unless params[:referer].nil? %>
25 <table id="signupForm">
26   <tr><td class="fieldName"><%= t 'user.new.email address' %></td><td><%= text_field('user', 'email',{:size => 50, :maxlength => 255, :tabindex => 1, :value => @email}) %></td></tr>
27   <tr><td class="fieldName"><%= t 'user.new.confirm email address' %></td><td><%= text_field('user', 'email_confirmation',{:size => 50, :maxlength => 255, :tabindex => 2}) %></td></tr>
28   <tr><td></td><td><span class="minorNote"><%= t 'user.new.not displayed publicly' %></span></td></tr>
29   <tr><td colspan="2">&nbsp;<!--vertical spacer--></td></tr>
30   <tr><td class="fieldName"><%= t 'user.new.display name' %></td><td><%= text_field('user', 'display_name',{:size => 30, :maxlength => 255, :tabindex => 3, :value => @nickname}) %></td></tr>
31   <tr><td></td><td><span class="minorNote"><%= t 'user.new.display name description' %></span></td></tr>
32   <tr><td colspan="2">&nbsp;<!--vertical spacer--></td></tr>
33   <tr><td class="fieldName"><%= t 'user.new.password' %></td><td><%= password_field('user', 'pass_crypt',{:size => 30, :maxlength => 255, :tabindex => 4}) %></td></tr>
34   <tr><td class="fieldName"><%= t 'user.new.confirm password' %></td><td><%= password_field('user', 'pass_crypt_confirmation',{:size => 30, :maxlength => 255, :tabindex => 5}) %></td></tr>
35   <tr><td colspan="2">&nbsp;<!--vertical spacer--></td></tr>
36   <tr><td></td><td><span class="minorNote"><a href="javascript:unhideopenID()">Associate an OpenID with your account</a></span></td></tr>
37   <tr id="openID_row-1" style="display: none"><td class="fieldName"><%= t 'user.new.openID' %></td><td><%= text_field('user', 'openid_url',{:size => 50, :maxlength => 255, :tabindex => 6, :value => @openID, :class => "openid_url"}) %></td></tr>
38   <tr id="openID_row-2" style="display: none"><td></td><td><span class="minorNote"><%= t 'user.new.openID description' %></span></td></tr>
39   <tr><td colspan="2" >&nbsp;<!--vertical spacer--></td></tr>
40   <tr><td></td><td align="right"><input type="submit" value="<%= t'user.new.signup' %>" tabindex="7"></td></tr>
41 </table>
42 <% end %>
43
44 <% if @openID %>
45 <script type="text/javascript">
46 unhideopenID();
47 </script>
48 <% end %>
49
50 <%= javascript_include_tag 'https://ethnio.com/remotes/62786' %>
51
52 <% end %>