Sha256: dcf23591a799a2f41862d030a70f77726f4e5f8a916e533f1a423905af16f7c9

Contents?: true

Size: 964 Bytes

Versions: 2

Compression:

Stored size: 964 Bytes

Contents

<h1> Question </h1>

<p>
  <%= @question.details %>
</p>

<h3> <%= link_to 'Answers', survey_admin_question_answers_url(@question) %>  </h3>

<% if  @question.answers.empty? %>
  There are currently no answers for this question.
<% else %>
  <ul id='answers_to_question'>
    <% @question.answers.each do |answer| %>
      <li data-answer_id=<%= answer.id %> >
        <%= link_to answer.display_position, survey_admin_question_answer_url(@question, answer) %>)
        <%= answer.details %><br/><br/><br/>
      </li>
    <% end %>
  </ul>
<% end %>

<p>
  <%= link_to "Edit", edit_survey_admin_question_path(@question), :class => 'button' %> |
  <%= link_to "Inactivate", survey_admin_question_path(@question),
                            :confirm  => 'Are you sure?',
                            :method   => :delete,
                            :class    => 'button' %> |
  <%= link_to "View Questions", survey_admin_questions_path, :class => 'button' %>
</p>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
survey_says-0.0.2 app/views/survey_admin/questions/show.html.erb
survey_says-0.0.1 app/views/survey_admin/questions/show.html.erb