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 => 'create' } do %>
10 <%= hidden_field_tag('referer', h(@referer)) unless @referer.nil? %>
12 <div id="signupForm" class="standard-form">
15 <div class="form-row">
16 <label for="email" class="standard-label">
17 <%= t 'user.new.email address' %>
19 <%= email_field(:user, :email, { :tabindex => 1 }) %>
21 <div class="form-row">
22 <label for="email_confirmation" class="standard-label">
23 <%= t 'user.new.confirm email address' %>
25 <%= email_field(:user, :email_confirmation, { :tabindex => 2 }) %>
27 <span class="form-help deemphasize"><%= raw(t 'user.new.not displayed publicly') %></span>
31 <div class="form-row">
32 <label for="display_name" class="standard-label">
33 <%= t 'user.new.display name' %>
35 <%= text_field(:user, :display_name, { :tabindex => 3 }) %>
37 <span class="form-help deemphasize"><%= t 'user.new.display name description' %></span>
40 <fieldset class="form-divider" id="openid_field">
41 <div class="form-row">
42 <label for="openid_url" class="standard-label">
43 <%= raw t 'user.new.openid', :logo => openid_logo %>
45 <%= url_field(:user, :openid_url, { :id => "openid_url", :tabindex => 4, :class => "openid_url" }) %>
47 <span id="openid_note" class="deemphasize">
48 <%= t 'user.new.openid no password' %>
53 <div class="form-row">
54 <label for='user[pass_crypt]' class="standard-label">
55 <%= t 'user.new.password' %>
57 <%= password_field(:user, :pass_crypt, {:tabindex => 5 }) %>
59 <div class="form-row">
60 <label class="standard-label">
61 <%= t 'user.new.confirm password' %>
63 <%= password_field(:user, :pass_crypt_confirmation, { :tabindex => 6 }) %>
67 <div id="openid_prompt" class="form-row">
68 <%= link_to raw(t("user.new.use openid", :logo => openid_logo)), "#", :id => "openid_enable" %>
71 <%= submit_tag t('user.new.continue'), :tabindex => 6 %>
75 <script type="text/javascript">
76 function enableOpenID()
78 $("#openid_prompt").hide();
80 $("#openid_field").show();
81 $("#openid_note").show();
83 $("#openid_url").prop("disabled", false);
86 function disableOpenID()
88 $("#openid_prompt").show();
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?) -%>