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 id="openid_note" class="deemphasize">
46 <%= t 'user.new.openid no password' %>
51 <div class="form-row">
52 <label for='user[pass_crypt]' class="standard-label">
53 <%= t 'user.new.password' %>
55 <%= password_field(:user, :pass_crypt, {:tabindex => 5 }) %>
57 <div class="form-row">
58 <label class="standard-label">
59 <%= t 'user.new.confirm password' %>
61 <%= password_field(:user, :pass_crypt_confirmation, { :tabindex => 6 }) %>
65 <div id="openid_prompt" class="form-row">
66 <%= link_to raw(t("user.new.use openid", :logo => openid_logo)), "#", :id => "openid_enable" %>
69 <%= submit_tag t('user.new.continue'), :tabindex => 6 %>
72 <div class='col6 deemphasize pad2'>
73 <h4><%= t 'user.new.about.header' %></h4>
74 <%= t 'user.new.about.html' %>
77 <script type="text/javascript">
78 function enableOpenID()
80 $("#openid_prompt").hide();
82 $("#openid_field").show();
83 $("#openid_note").show();
85 $("#openid_url").prop("disabled", false);
88 function disableOpenID()
90 $("#openid_prompt").show();
92 $("#openid_field").hide();
93 $("#openid_note").hide();
95 $("#openid_url").prop("disabled", true);
98 $(document).ready(function () {
99 $("#openid_enable").click(enableOpenID);
101 <% if params[:openid] or (@user and @user.openid_url and not @user.openid_url.empty?) -%>