Sha256: cb1d5a947ddfa966d34a2f3b5106c3c5a4aa9d1d4c7e78523a325658e9e456d7

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

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

<h1><%= t("question_categories") %></h1>
<table class="index">
  <thead>
    <%= hook :admin_question_categories_index_headers do %>
      <th><%= t("category") %></td>
      <th><%= t("questions") %></td>
    <% end %>
    <th>
      <%= hook :admin_question_categories_header_actions %>
    </th>
  </tr>
  <thead>
<% @question_categories.each do |category| %>
  <tr id="<%= dom_id category %>"> 
    <%- locals = {:category => category} %>
    <%= hook :admin_question_categories_index_rows, locals do %>
      <td><%= h category.name %></td>
      <td><%= category.questions.count %></td>
    <% end %>
    <td class="actions">
      <%= hook :admin_question_categories_index_row_actions, locals do %>
        <%= link_to_edit category %>&nbsp;
        <%= link_to_delete category %>
      <% end %>
    </td>
  </tr>
<% end %> 
  </tbody>
</table>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_faq-3.0.3 app/views/admin/question_categories/index.html.erb