Permalink
Browse files

Tweaks to survey mailer and questions.

  • Loading branch information...
metaskills committed Nov 7, 2009
1 parent 705dab2 commit bfbe1a1d589884f5f190f0c37c45dfeec6f90e87
@@ -34,7 +34,7 @@ def upcoming_event_reminder(rsvp)
assign_common_attributes(rsvp)
end
- def survey
+ def survey(rsvp)
subject "757 Studio Survey"
assign_common_attributes(rsvp)
end
View
@@ -1,11 +1,12 @@
class Survey < ActiveRecord::Base
- QUESTIONS = {
- :a1t => "Please give us a brief description of your expierence. We may quote you.",
- :a2t => "Suggest a topic for a future 757 Studio event.",
- :a1b => "Would you like to see a larger venue for a future event?",
- :a3t => "Additional comments."
- }.freeze
+ QUESTIONS = [
+ {:attr => :a1t, :question => "Please give us a brief description of your expierence. We may quote you."},
+ {:attr => :a2t, :question => "Suggest a topic for a future 757 Studio event."},
+ {:attr => :a1b, :question => "Would you like to see a larger venue for a future event?"},
+ {:attr => :a4t, :question => "If you have a twitter account, what is your username? (for the Nov.5th attendee list on twitter.com/757studio/attendees)"},
+ {:attr => :a3t, :question => "Additional comments."}
+ ].freeze
belongs_to :rsvp
@@ -1,7 +1,7 @@
-757 Studio Attendee,
+Remember remember, the 5th of Novemeber!
-First, thanks for attending our premier event! If you have a few minutes, please give us some feedback.
+Thanks for attending our premier event! If you have a few minutes, please give us some feedback. We would also like to know your twitter username so we can add you to our attendees list.
<%= survey_rsvp_url(:id =>@rsvp.slug) %>
@@ -4,10 +4,10 @@
- form_tag survey_rsvp_path(:id => @rsvp.slug) do
- - Survey::QUESTIONS.each do |attribute,question|
- %div{:class => 'mb30', :id => "survey_#{attribute}"}
+ - Survey::QUESTIONS.each do |qdata|
+ %div{:class => 'mb30', :id => "survey_#{qdata[:attr]}"}
%h3{:class => 'italic'}
- = question
- = survey_question_field(attribute)
+ = qdata[:question]
+ = survey_question_field(qdata[:attr])
%div{:class => 'mt20'}
= submit_tag 'Save Survey', :style => 'font-size:18px;'
@@ -13,6 +13,8 @@
.w99p { width:98% !important; }
.w98p { width:98% !important; }
.w80p { width:80% !important; }
+.w70p { width:70% !important; }
+.w60p { width:60% !important; }
.floatr { float:right; display:inline; }
.floatl { float:left; display:inline; }

0 comments on commit bfbe1a1

Please sign in to comment.