<%= render 'spree/admin/shared/configuration_menu' %> <% content_for :page_title do %> <%= Spree.t(:question_categories, scope: :spree_faq) %> <% end %> <% content_for :page_actions do %> <% end %>
<% if @question_categories.any? %> <% @question_categories.each do |category| %> <% end %>
<%= Spree::QuestionCategory.model_name.human(count: 2) %> <%= Spree::Question.model_name.human(count: 2) %>
<%= h category.name %> <%= category.questions.count %> <%= link_to_edit category, no_text: true %> <%= link_to_delete category, no_text: true %>
<% 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 %>