1 <% content_for :heading do %>
2 <h1><%= t 'user.new.heading' %></h1>
5 <p><%= t 'user.new.fill_form' %></p>
7 <%= error_messages_for 'user' %>
9 <%= form_for :user, :url => { :action => 'terms' } do %>
10 <%= hidden_field_tag('referer', h(@referer)) unless @referer.nil? %>
12 <table id="signupForm">
14 <td class="fieldName"><%= t 'user.new.email address' %></td>
15 <td><%= email_field(:user, :email, { :size => 50, :maxlength => 255, :tabindex => 1 }) %></td>
18 <td class="fieldName"><%= t 'user.new.confirm email address' %></td>
19 <td><%= email_field(:user, :email_confirmation, { :size => 50, :maxlength => 255, :tabindex => 2 }) %></td>
23 <td><span class="minorNote"><%= raw(t 'user.new.not displayed publicly') %></span></td>
26 <tr><td colspan="2"> <!--vertical spacer--></td></tr>
29 <td class="fieldName"><%= t 'user.new.display name' %></td>
30 <td><%= text_field(:user, :display_name, { :size => 30, :maxlength => 255, :tabindex => 3 }) %></td></tr>
33 <td><span class="minorNote"><%= t 'user.new.display name description' %></span></td>
36 <tr id="openid_spacer"><td colspan="2"> <!--vertical spacer--></td></tr>
38 <tr id="openid_field">
39 <td class="fieldName"><%= raw t 'user.new.openid', :logo => openid_logo %></td>
40 <td><%= url_field(:user, :openid_url, { :id => "openid_url", :size => 50, :maxlength => 255, :tabindex => 4, :class => "openid_url" }) %></td>
43 <tr><td colspan="2"> <!--vertical spacer--></td></tr>
46 <td class="fieldName"><%= t 'user.new.password' %></td>
47 <td><%= password_field(:user, :pass_crypt, { :size => 30, :maxlength => 255, :tabindex => 5 }) %></td>
50 <td class="fieldName"><%= t 'user.new.confirm password' %></td>
51 <td><%= password_field(:user, :pass_crypt_confirmation, { :size => 30, :maxlength => 255, :tabindex => 6 }) %></td>
56 <span id="openid_prompt" class="minorNote"><%= link_to raw(t("user.new.use openid", :logo => openid_logo)), "#", :id => "openid_enable" %></span>
57 <span id="openid_note" class="minorNote"><%= t 'user.new.openid no password' %></span>
61 <tr><td colspan="2" > <!--vertical spacer--></td></tr>
65 <td class="submitButton"><%= submit_tag t('user.new.continue'), :tabindex => 6 %></td>
70 <script type="text/javascript">
71 function enableOpenID()
73 $("#openid_prompt").hide();
75 $("#openid_spacer").show();
76 $("#openid_field").show();
77 $("#openid_note").show();
79 $("#openid_url").prop("disabled", false);
82 function disableOpenID()
84 $("#openid_prompt").show();
86 $("#openid_spacer").hide();
87 $("#openid_field").hide();
88 $("#openid_note").hide();
90 $("#openid_url").prop("disabled", true);
93 $(document).ready(function () {
94 $("#openid_enable").click(enableOpenID);
96 <% if params[:openid] or (@user and @user.openid_url and not @user.openid_url.empty?) -%>