mirror of https://github.com/fspc/BikeShed-1.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
919 B
34 lines
919 B
= stylesheet_link_tag "bootstrap_and_overrides", :media => "all"
|
|
%h2 Sign up
|
|
= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f|
|
|
= devise_error_messages!
|
|
%div
|
|
= f.label :username
|
|
%br/
|
|
= f.text_field :username
|
|
%div
|
|
= f.label :first_name
|
|
%br/
|
|
= f.text_field :first_name
|
|
%div
|
|
= f.label :last_name
|
|
%br/
|
|
= f.text_field :last_name
|
|
%div
|
|
= f.label :email
|
|
%br/
|
|
= f.email_field :email
|
|
%div
|
|
- profile_builder = resource.user_profiles.empty? ? resource.user_profiles.build : resource.user_profiles
|
|
= f.fields_for :user_profiles, profile_builder do |builder|
|
|
= render 'user_profile_fields', f: builder
|
|
%div
|
|
= f.label :password
|
|
%br/
|
|
= f.password_field :password
|
|
%div
|
|
= f.label :password_confirmation
|
|
%br/
|
|
= f.password_field :password_confirmation
|
|
%div= f.submit "Sign up"
|
|
= render "links"
|
|
|