<% case @step %> <% when 1 %>

Choose a username

<%= form_for @user, :url => signup_validate_url do |f| %>

<%= f.label :cn, 'Username' %>
<%= f.text_field :cn, autofocus: true, autocomplete: "username" %> @ kosmos.org

<% if @validation_error.present? %>

Username <%= @validation_error %>

<% end %>

<%= f.submit "Continue" %>

<% end %> <% when 2 %>

What's your email?

<%= form_for @user, :url => signup_validate_url do |f| %>

<%= f.label :email, 'Email address' %>
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>

<% if @validation_error.present? %>

Email <%= @validation_error %>

<% end %>

<%= f.submit "Continue" %>

<% end %> <% when 3 %>

Choose a password

<%= form_for @user, :url => signup_validate_url do |f| %>

<%= f.label :password, 'Password' %>
<%= f.password_field :password, autofocus: true %>

<% if @validation_error.present? %>

Password <%= @validation_error %>

<% end %>

By clicking the button below, you accept our future Terms of Service and Privacy Policy. Don't worry, they will be excellent!

<%= f.submit "Create account" %>

<% end %> <% end %>