mirror of https://github.com/fspc/BikeShed-1.git
Jason Denney
11 years ago
2 changed files with 57 additions and 54 deletions
@ -1,24 +1,25 @@ |
|||||
%fieldset |
%fieldset |
||||
= f.label :addrStreet1 |
.control-group |
||||
%br/ |
= f.label :addrStreet1, :class => "control-label" |
||||
= f.text_field :addrStreet1 |
.controls |
||||
%br/ |
= f.text_field :addrStreet1, :class => "control-label" |
||||
= f.label :addrStreet2 |
.control-group |
||||
%br/ |
= f.label :addrStreet2, :class => "control-label" |
||||
= f.text_field :addrStreet2 |
.controls |
||||
%br/ |
= f.text_field :addrStreet2, :class => "control-label" |
||||
= f.label :addrCity |
.control-group |
||||
%br/ |
= f.label :addrCity, :class => "control-label" |
||||
= f.text_field :addrCity |
.controls |
||||
%br/ |
= f.text_field :addrCity, :class => "control-label" |
||||
= f.label :addrState |
.control-group |
||||
%br/ |
= f.label :addrState, :class => "control-label" |
||||
= f.text_field :addrState |
.controls |
||||
%br/ |
= f.text_field :addrState, :class => "control-label" |
||||
= f.label :addrZip |
.control-group |
||||
%br/ |
= f.label :addrZip, :class => "control-label" |
||||
= f.text_field :addrZip |
.controls |
||||
%br/ |
= f.text_field :addrZip, :class => "control-label" |
||||
= f.label :phone |
.control-group |
||||
%br/ |
= f.label :phone, :class => "control-label" |
||||
= f.text_field :phone |
.controls |
||||
|
= f.text_field :phone, :class => "control-label" |
||||
|
@ -1,34 +1,36 @@ |
|||||
= stylesheet_link_tag "bootstrap_and_overrides", :media => "all" |
= stylesheet_link_tag "bootstrap_and_overrides", :media => "all" |
||||
%h2 Sign up |
= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :class => "form-horizontal"}) do |f| |
||||
= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| |
|
||||
= devise_error_messages! |
= devise_error_messages! |
||||
%div |
.controls |
||||
= f.label :username |
%h2 Sign up |
||||
%br/ |
.control-group |
||||
|
= f.label :username, :class => "control-label" |
||||
|
.controls |
||||
= f.text_field :username |
= f.text_field :username |
||||
%div |
.control-group |
||||
= f.label :first_name |
= f.label :first_name, :class => "control-label" |
||||
%br/ |
.controls |
||||
= f.text_field :first_name |
= f.text_field :first_name |
||||
%div |
.control-group |
||||
= f.label :last_name |
= f.label :last_name, :class => "control-label" |
||||
%br/ |
.controls |
||||
= f.text_field :last_name |
= f.text_field :last_name |
||||
%div |
.control-group |
||||
= f.label :email |
= f.label :email, :class => "control-label" |
||||
%br/ |
.controls |
||||
= f.email_field :email |
= f.email_field :email |
||||
%div |
|
||||
- profile_builder = resource.user_profiles.empty? ? resource.user_profiles.build : resource.user_profiles |
- profile_builder = resource.user_profiles.empty? ? resource.user_profiles.build : resource.user_profiles |
||||
= f.fields_for :user_profiles, profile_builder do |builder| |
= f.fields_for :user_profiles, profile_builder do |builder| |
||||
= render 'user_profile_fields', f: builder |
= render 'user_profile_fields', f: builder |
||||
%div |
.control-group |
||||
= f.label :password |
= f.label :password, :class => "control-label" |
||||
%br/ |
.controls |
||||
= f.password_field :password |
= f.password_field :password |
||||
%div |
.control-group |
||||
= f.label :password_confirmation |
= f.label :password_confirmation, :class => "control-label" |
||||
%br/ |
.controls |
||||
= f.password_field :password_confirmation |
= f.password_field :password_confirmation |
||||
%div= f.submit "Sign up" |
.control-group |
||||
|
.controls |
||||
|
= f.submit "Sign up" |
||||
= render "links" |
= render "links" |
||||
|
Loading…
Reference in new issue