User/Person models merge
This commit is contained in:
parent
66b84e3660
commit
23bf55b66c
80 changed files with 1064 additions and 1221 deletions
|
|
@ -3,7 +3,7 @@
|
|||
%h3
|
||||
Registration for
|
||||
= @conference.title
|
||||
- if @person.proposal_count(@conference) > 0
|
||||
- if @user.proposal_count(@conference) > 0
|
||||
.row
|
||||
.col-md-12
|
||||
%i
|
||||
|
|
@ -14,8 +14,8 @@
|
|||
%br
|
||||
Your public name (required)
|
||||
%br
|
||||
= f.fields_for :person do |p|
|
||||
= p.text_field :public_name, :for => :person
|
||||
= f.fields_for :user do |p|
|
||||
= p.input :name
|
||||
|
||||
- if @conference.questions
|
||||
= render :partial => "questions", :locals => {:f => f}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
.row
|
||||
.col-md-12
|
||||
= f.input :volunteer, :label => "Click here if you want to become a volunteer at #{@conference.short_title}", :input_html => {:maxlength => 15, :size => 40}
|
||||
= f.fields_for :person do |p|
|
||||
= render :partial => 'devise/registrations/volunteerperson', :locals => {:p => p}
|
||||
= f.fields_for :user do |u|
|
||||
= render :partial => 'devise/registrations/volunteeruser', :locals => {:u => u}
|
||||
|
||||
%br
|
||||
- if @conference.vpositions.count > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue