1 <% content_for :heading do %>
2 <h1><%= t 'user.new.title' %></h1>
3 <div class='header-illustration new-user-main'></div>
4 <div class='header-illustration new-user-arm'></div>
7 <%= form_for :user, :url => { :action => 'create' }, :html => { :class => 'signup-form-wrapper standard-form fillL col6 pad2' } do %>
8 <%= error_messages_for 'user' %>
10 <%= hidden_field_tag('referer', h(@referer)) unless @referer.nil? %>
13 <div class="form-row">
14 <label for="email" class="standard-label">
15 <%= t 'user.new.email address' %>
17 <%= email_field(:user, :email, { :tabindex => 1 }) %>
19 <div class="form-row">
20 <label for="email_confirmation" class="standard-label">
21 <%= t 'user.new.confirm email address' %>
23 <%= email_field(:user, :email_confirmation, { :tabindex => 2 }) %>
25 <span class="form-help deemphasize"><%= raw(t 'user.new.not displayed publicly') %></span>
29 <div class="form-row">
30 <label for="display_name" class="standard-label">
31 <%= t 'user.new.display name' %>
33 <%= text_field(:user, :display_name, { :tabindex => 3 }) %>
35 <span class="form-help deemphasize"><%= t 'user.new.display name description' %></span>
38 <fieldset class="form-divider" id="openid_field">
39 <div class="form-row">
40 <label for="openid_url" class="standard-label">
41 <%= raw t 'user.new.openid', :logo => openid_logo %>
43 <%= url_field(:user, :openid_url, { :id => "openid_url", :tabindex => 4, :class => "openid_url" }) %>
45 <span class="form-help deemphasize"><%= t 'user.new.openid no password' %></span>
49 <div class="form-row">
50 <label for='user[pass_crypt]' class="standard-label">
51 <%= t 'user.new.password' %>
53 <%= password_field(:user, :pass_crypt, {:tabindex => 5 }) %>
55 <div class="form-row">
56 <label class="standard-label">
57 <%= t 'user.new.confirm password' %>
59 <%= password_field(:user, :pass_crypt_confirmation, { :tabindex => 6 }) %>
63 <div id="openid_prompt" class="form-row">
64 <%= link_to raw(t("user.new.use openid", :logo => openid_logo)), "#", :id => "openid_enable" %>
67 <%= submit_tag t('user.new.continue'), :tabindex => 6 %>
70 <div class='col6 deemphasize pad2'>
71 <h4><%= t 'user.new.about.header' %></h4>
72 <%= t 'user.new.about.html' %>
75 <script type="text/javascript">
76 function enableOpenID()
78 $("#openid_prompt").hide();
79 $("#openid_field").show();
80 $("#openid_url").prop("disabled", false);
83 function disableOpenID()
85 $("#openid_prompt").show();
86 $("#openid_field").hide();
87 $("#openid_url").prop("disabled", true);
90 $(document).ready(function () {
91 $("#openid_enable").click(enableOpenID);
93 <% if params[:openid] or (@user and @user.openid_url.present?) -%>