Sha256: afc57155442e0143870b596b0b1e0f2ebdd21104599635df9d24077be231dba3

Contents?: true

Size: 870 Bytes

Versions: 7

Compression:

Stored size: 870 Bytes

Contents

<h1>Questionnaires</h1>
<div>
<% @questionnaires.each do |questionnaire| %>
  <div class="questionnaire">
    <%= link_to(
          image_tag(questionnaire.button_image.url(:link)),
          questionnaire_path(questionnaire),
          :class => 'image_link'
        )
    %>
    <br>
    <%= link_to(
          questionnaire.title,
          questionnaire_path(questionnaire),
          :class => 'text_link'
        )
    %>
  </div>
<% end %>
</div>

<% if @qwester_rule_sets.present?  %>
<h2>Matching rule sets</h2>
<ul>
<% @qwester_rule_sets.each do |rule_set| %>
  <li>
    <%= rule_set.title %>:
    <%= link_to(rule_set.link_text, rule_set.url) %>
  </li>
<% end %>
</ul>
<% end %>

<%= 
  content_tag(
    'p', 
    link_to('Clear answers and start again', reset_questionnaires_path)
  ) if @qwester_answer_store and @qwester_answer_store.answers.present?
%>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
qwester-0.4.0 app/views/qwester/questionnaires/index.html.erb
qwester-0.3.5 app/views/qwester/questionnaires/index.html.erb
qwester-0.3.4 app/views/qwester/questionnaires/index.html.erb
qwester-0.3.3 app/views/qwester/questionnaires/index.html.erb
qwester-0.3.2 app/views/qwester/questionnaires/index.html.erb
qwester-0.3.1 app/views/qwester/questionnaires/index.html.erb
qwester-0.3.0 app/views/qwester/questionnaires/index.html.erb