Sha256: 1f93ee135a35c57e143f791ca28a5616451dfa740216ef3445b6c7f3b854b18b

Contents?: true

Size: 852 Bytes

Versions: 2

Compression:

Stored size: 852 Bytes

Contents

<div class='toolbar'>
  <ul class='actions'>
    <li id="new_product_link">
      <%= button_link_to t("new_question"), new_object_url, {:icon => 'add'} %>
    </li>
  </ul>
  <br class='clear' />
</div>

<h1><%=t("questions") %></h1>

<table class="index">
  <tr>
    <th><%= Spree::Question.human_attribute_name(:question) %></th>
    <th><%= Spree::Question.human_attribute_name(:answer) %></th>
    <th><%= t("action") %></th>
  </tr>
  <tbody>
      <% @questions.each do |question| %>
    <tr class="<%= cycle('even', 'odd') %>" id="<%= dom_id question %>">
      <td>
        <%= question.question %>
      </td>
      <td>
        <%= question.answer %>
      </td>
      <td>
        <%= link_to_edit question %> &nbsp;
        <%= link_to_delete question %>
      </td>
    </tr>
    <% end %>
  </tbody>
</table>

<%= paginate @questions %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_grid_faq-0.0.8 app/views/spree/admin/questions/index.html.erb
spree_grid_faq-0.0.7 app/views/spree/admin/questions/index.html.erb