Skip to content

Instantly share code, notes, and snippets.

@marcamillion
Created August 23, 2011 02:22
Show Gist options
  • Save marcamillion/1164173 to your computer and use it in GitHub Desktop.
Save marcamillion/1164173 to your computer and use it in GitHub Desktop.
<% @user.plan_id = params[:plan_id] %>
<%= devise_error_messages! %><br />
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
<% if !params[:promo] %>
<%= f.collection_select :plan_id, @plan, :id, :display_name, :prompt => "Choose yourself up a real nice plan" %><br />
<% end %>
<%= f.text_field :username, :placeholder => "Desired Username" %><br />
<%= f.text_field :first_name, :placeholder => "First Name" %><br />
<%= f.text_field :last_name, :placeholder => "Last Name" %><br />
<%= f.password_field :password, :placeholder => "Password" %><br />
<%= f.password_field :password_confirmation, :placeholder => "Password" %><br />
<%= f.text_field :email, :placeholder => "Email Address" %><br />
<% if params[:promo] %>
<%= f.text_field :xcode, :placeholder => "Coupon Code" %><br />
<% end %>
<div class="settings_button">
<%= f.submit "Sign in", :id => "register", :value => "Register", :class => "pill button" %>
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment