Skip to content

Commit

Permalink
Added basic working views
Browse files Browse the repository at this point in the history
  • Loading branch information
nickh committed Nov 15, 2009
1 parent 6b9daf5 commit 992e140
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/views/responses/new.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
%h2 Tell Us Who You Are

- form_for(@respondent, :url => {:controller => :responses}) do |f|
%p
= f.label :email_address, 'Email Address'
= f.text_field :email_address
= f.label :name, 'Name'
= f.text_field :name
%p
= submit_tag 'Get Started'
17 changes: 17 additions & 0 deletions app/views/responses/show.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
%h2 Feedback Time

%p
- if @next_question.nil?
%h4 All Finished!
Thank you for your time and input
- else
#question
%h4 Next Question
= @next_question.blurb
#answer
- form_for(@response) do |f|
= hidden_field_tag 'answers[][question_id]', @next_question.id
= f.label 'Answer'
= text_field_tag 'answers[][blurb]'
%br
= submit_tag 'Submit'

0 comments on commit 992e140

Please sign in to comment.