%= render 'spree/admin/shared/configuration_menu' %>
<% content_for :page_title do %>
<%= Spree.t(:question_categories, scope: :spree_faq) %>
<% end %>
<% content_for :page_actions do %>
<%= button_link_to Spree.t(:new_question_category, scope: :spree_faq), new_admin_question_category_url,
{ remote: true, icon: 'icon-plus', 'data-update' => 'new_question_category', id: 'new_question_category_link' } %>
<% end %>
<% if @question_categories.any? %>
<%= Spree::QuestionCategory.model_name.human(count: 2) %>
| <%= Spree::Question.model_name.human(count: 2) %>
| |
<% @question_categories.each do |category| %>
<%= h category.name %> |
<%= category.questions.count %> |
<%= link_to_edit category, no_text: true %>
<%= link_to_delete category, no_text: true %>
|
<% end %>
<% else %>
<%= Spree.t(:no_resource_found, resource: Spree::QuestionCategory.model_name.human(count: 2)) %>,
<%= link_to Spree.t(:add_one), spree.new_admin_question_category_path %>!
<% end %>