Added "how did you hear about us" to user.
This commit is contained in:
parent
1f63709887
commit
ac66cb0cbe
|
@ -9,7 +9,7 @@ class User < ActiveRecord::Base
|
|||
:recoverable, :rememberable, :trackable, :validatable
|
||||
|
||||
# Setup accessible (or protected) attributes for your model
|
||||
attr_accessible :email, :password, :password_confirmation, :remember_me, :name, :admin, :instructor, :member, :emergency_name, :emergency_phone, :current_skills, :desired_skills, :waiver, :emergency_email, :phone, :payment_method, :orientation, :member_level, :certifications, :hidden #TODO: make admin/instructor/member/etc not accessible
|
||||
attr_accessible :email, :password, :password_confirmation, :remember_me, :name, :admin, :instructor, :member, :emergency_name, :emergency_phone, :current_skills, :desired_skills, :waiver, :emergency_email, :phone, :payment_method, :orientation, :member_level, :certifications, :hidden, :marketing_source #TODO: make admin/instructor/member/etc not accessible
|
||||
|
||||
has_many :cards
|
||||
has_many :user_certifications
|
||||
|
|
|
@ -48,6 +48,10 @@ Thanks again, and happy hacking!</p>
|
|||
<%= f.label :desired_skills, "What skills, knowledge and experiences are you looking for in HeatSync?" %><br />
|
||||
<%= f.text_area :desired_skills %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :marketing_source, "How'd you find out about HeatSync?" %><br />
|
||||
<%= f.text_area :marketing_source %>
|
||||
</div>
|
||||
|
||||
<div><%= f.label :password %><% if params[:action]!='new' %> <em>(Only if you want to change your password)</em><% end %><br />
|
||||
<%= f.password_field :password %></div>
|
||||
|
|
|
@ -77,6 +77,10 @@
|
|||
<%= f.label :desired_skills, "What skills, knowledge and experiences are you looking for in HeatSync?" %><br />
|
||||
<%= f.text_area :desired_skills %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :marketing_source, "How'd you find out about HeatSync?" %><br />
|
||||
<%= f.text_area :marketing_source %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :member, "Member?" %><br />
|
||||
<%= f.select :member, [[nil],["No",0],["Inactive",1],["Volunteer",10],["Associate",25],["Basic",50],["Plus",100]] %>
|
||||
|
|
|
@ -69,6 +69,12 @@
|
|||
<b>Desired Skills:</b>
|
||||
<%= simple_format @user.desired_skills %>
|
||||
</p>
|
||||
<% if current_user.admin? then %>
|
||||
<p>
|
||||
<b>Found HeatSync via:</b>
|
||||
<%= simple_format @user.marketing_source %>
|
||||
</p>
|
||||
<% end %>
|
||||
<p>
|
||||
<b>Card:</b>
|
||||
<% if current_user.admin? then %>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20130201042646) do
|
||||
ActiveRecord::Schema.define(:version => 20130209103457) do
|
||||
|
||||
create_table "cards", :force => true do |t|
|
||||
t.string "card_number"
|
||||
|
@ -95,6 +95,7 @@ ActiveRecord::Schema.define(:version => 20130201042646) do
|
|||
t.string "desired_skills"
|
||||
t.boolean "instructor"
|
||||
t.boolean "hidden"
|
||||
t.string "marketing_source"
|
||||
end
|
||||
|
||||
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
|
||||
|
|
Loading…
Reference in New Issue
Block a user