journalduhacker/app/views/signup/invited.html.erb

53 lines
1.2 KiB
Plaintext
Raw Normal View History

2012-07-01 20:31:31 +02:00
<div class="box wide">
<div class="legend">
Create an Account
</div>
<%= form_for @new_user, { :url => signup_url,
:autocomplete => "off" } do |f| %>
<%= hidden_field_tag "invitation_code", @invitation.code %>
<p>
To create a new account, enter your e-mail address and a password.
Your e-mail address will never be shown to users and will only be used
if you need to reset your password, or to receive optional new-message
alerts.
</p>
<%= error_messages_for(@new_user) %>
<p>
<%= f.label :invitation, "Invited By:" %>
<span class="d">
<%= @invitation.user.username %>
</span>
</p>
<p>
<%= f.label :username, "Username:" %>
<%= f.text_field :username, :size => 30 %>
<span class="hint">
<tt>[A-Za-z0-9][A-Za-z0-9_-]*</tt>
</span>
<br />
<%= f.label :email, "E-mail Address:" %>
<%= f.email_field :email, :size => 30 %>
<br />
<%= f.label :password, "Password:" %>
2012-07-05 01:58:58 +02:00
<%= f.password_field :password, :size => 30, :autocomplete => "off" %>
2012-07-01 20:31:31 +02:00
<br />
<%= f.label :password_confirmation, "Password (again):" %>
2012-07-05 01:58:58 +02:00
<%= f.password_field :password_confirmation, :size => 30,
:autocomplete => "off" %>
2012-07-01 20:31:31 +02:00
<br />
</p>
<p>
<%= submit_tag "Signup" %>
</p>
<% end %>
</div>