1 <h1><%= t 'user.new.heading' %></h1>
3 <p><%= t 'user.new.fill_form' %></p>
5 <%= error_messages_for 'user' %>
7 <%= form_for :user, :url => { :action => 'terms' } do %>
8 <%= hidden_field_tag('referer', h(@referer)) unless @referer.nil? %>
10 <table id="signupForm">
12 <td class="fieldName"><%= t 'user.new.email address' %></td>
13 <td><%= email_field(:user, :email, { :size => 50, :maxlength => 255, :tabindex => 1 }) %></td>
16 <td class="fieldName"><%= t 'user.new.confirm email address' %></td>
17 <td><%= email_field(:user, :email_confirmation, { :size => 50, :maxlength => 255, :tabindex => 2 }) %></td>
21 <td><span class="minorNote"><%= raw(t 'user.new.not displayed publicly') %></span></td>
24 <tr><td colspan="2"> <!--vertical spacer--></td></tr>
27 <td class="fieldName"><%= t 'user.new.display name' %></td>
28 <td><%= text_field(:user, :display_name, { :size => 30, :maxlength => 255, :tabindex => 3 }) %></td></tr>
31 <td><span class="minorNote"><%= t 'user.new.display name description' %></span></td>
34 <tr id="openid_spacer"><td colspan="2"> <!--vertical spacer--></td></tr>
36 <tr id="openid_field">
37 <td class="fieldName"><%= raw t 'user.new.openid', :logo => openid_logo %></td>
38 <td><%= url_field(:user, :openid_url, { :id => "openid_url", :size => 50, :maxlength => 255, :tabindex => 4, :class => "openid_url" }) %></td>
41 <tr><td colspan="2"> <!--vertical spacer--></td></tr>
44 <td class="fieldName"><%= t 'user.new.password' %></td>
45 <td><%= password_field(:user, :pass_crypt, { :size => 30, :maxlength => 255, :tabindex => 5 }) %></td>
48 <td class="fieldName"><%= t 'user.new.confirm password' %></td>
49 <td><%= password_field(:user, :pass_crypt_confirmation, { :size => 30, :maxlength => 255, :tabindex => 6 }) %></td>
54 <span id="openid_prompt" class="minorNote"><%= link_to_function(raw(t('user.new.use openid', :logo => openid_logo)), "enableOpenID()") %></span>
55 <span id="openid_note" class="minorNote"><%= t 'user.new.openid no password' %></span>
59 <tr><td colspan="2" > <!--vertical spacer--></td></tr>
63 <td class="submitButton"><%= submit_tag t('user.new.continue'), :tabindex => 6 %></td>
68 <script type="text/javascript">
69 function enableOpenID()
71 $("#openid_prompt").hide();
73 $("#openid_spacer").show();
74 $("#openid_field").show();
75 $("#openid_note").show();
77 $("#openid_url").prop("disabled", false);
80 function disableOpenID()
82 $("#openid_prompt").show();
84 $("#openid_spacer").hide();
85 $("#openid_field").hide();
86 $("#openid_note").hide();
88 $("#openid_url").prop("disabled", true);
91 <% if params[:openid] or (@user and @user.openid_url and not @user.openid_url.empty?) -%>