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 <div id="signupForm" class="standard-form">
14 <div class="form-row">
15 <label for="email" class="fieldName">
16 <%= t 'user.new.email address' %>
18 <%= email_field(:user, :email, { :tabindex => 1 }) %>
20 <div class="form-row">
21 <label for="email_confirmation" class="fieldName">
22 <%= t 'user.new.confirm email address' %>
24 <%= email_field(:user, :email_confirmation, { :tabindex => 2 }) %>
26 <p class="form-help deemphasize"><%= raw(t 'user.new.not displayed publicly') %></p>
30 <div class="form-row">
31 <label for="display_name" class="fieldName">
32 <%= t 'user.new.display name' %>
34 <%= text_field(:user, :display_name, { :tabindex => 3 }) %>
36 <p class="form-help deemphasize"><%= t 'user.new.display name description' %></span>
39 <fieldset id="openid_field">
40 <div class="form-row">
41 <label for="openid_url" class="fieldName">
42 <%= raw t 'user.new.openid', :logo => openid_logo %>
44 <%= url_field(:user, :openid_url, { :id => "openid_url", :tabindex => 4, :class => "openid_url" }) %>
49 <div class="form-row">
50 <label for='user[pass_crypt]' class="fieldName">
51 <%= t 'user.new.password' %>
53 <%= password_field(:user, :pass_crypt, {:tabindex => 5 }) %>
55 <div class="form-row">
56 <label class="fieldName">
57 <%= t 'user.new.confirm password' %>
59 <%= password_field(:user, :pass_crypt_confirmation, { :tabindex => 6 }) %>
61 <span id="openid_prompt" class="">
62 <%= link_to raw(t("user.new.use openid", :logo => openid_logo)), "#", :id => "openid_enable" %>
64 <span id="openid_note" class="">
65 <%= t 'user.new.openid no password' %>
69 <div class="submitButton"><%= submit_tag t('user.new.continue'), :tabindex => 6 %></div>
73 <script type="text/javascript">
74 function enableOpenID()
76 $("#openid_prompt").hide();
78 $("#openid_spacer").show();
79 $("#openid_field").show();
80 $("#openid_note").show();
82 $("#openid_url").prop("disabled", false);
85 function disableOpenID()
87 $("#openid_prompt").show();
89 $("#openid_spacer").hide();
90 $("#openid_field").hide();
91 $("#openid_note").hide();
93 $("#openid_url").prop("disabled", true);
96 $(document).ready(function () {
97 $("#openid_enable").click(enableOpenID);
99 <% if params[:openid] or (@user and @user.openid_url and not @user.openid_url.empty?) -%>