2024-04-22 16:44:27 +02:00
|
|
|
- content_for(:title, t('.meta_title'))
|
|
|
|
|
|
|
|
.fr-container.fr-my-4w
|
2024-03-12 17:18:18 +01:00
|
|
|
= render partial: "breadcrumb"
|
2024-04-22 16:44:27 +02:00
|
|
|
.fr-grid-row
|
|
|
|
.fr-col-12.fr-col-md-10
|
|
|
|
%h1= t('.title', app_name: Current.application_name)
|
|
|
|
|
|
|
|
- @faqs.each do |category, subcategories|
|
2024-05-16 09:34:56 +02:00
|
|
|
%h2= t(:name, scope: [:faq, :categories, category], raise: true) # i18n-tasks-use t("faq.categories.#{category}.name")
|
|
|
|
%p= t(:description, scope: [:faq, :categories, category], raise: true) # i18n-tasks-use t("faq.categories.#{category}.description")
|
2024-04-22 16:44:27 +02:00
|
|
|
|
|
|
|
.fr-accordions-group.fr-mb-6w
|
|
|
|
- subcategories.each_with_index do |(subcategory, faqs), index|
|
|
|
|
%section.fr-accordion
|
|
|
|
%h3.fr-accordion__title
|
|
|
|
%button.fr-accordion__btn{ 'aria-expanded': "false", 'aria-controls': "accordion-#{category}-#{index}" }
|
2024-05-16 09:34:56 +02:00
|
|
|
= t(:name, scope: [:faq, :subcategories, subcategory], raise: true) # i18n-tasks-use t("faq.subcategories.#{subcategory}.name")
|
2024-04-22 16:44:27 +02:00
|
|
|
|
|
|
|
.fr-collapse{ id: "accordion-#{category}-#{index}" }
|
2024-05-16 09:34:56 +02:00
|
|
|
- description = t(:description, scope: [:faq, :subcategories, subcategory], default: nil) # i18n-tasks-use t("faq.subcategories.#{subcategory}.description")
|
2024-07-18 12:04:17 +02:00
|
|
|
- if description
|
|
|
|
%p= description
|
2024-04-22 16:44:27 +02:00
|
|
|
|
|
|
|
%ul
|
|
|
|
- faqs.each do |faq|
|
|
|
|
%li= link_to faq[:title], faq_path(category: faq[:category], slug: faq[:slug]), class: "fr-link"
|