diff --git a/app/views/guidance_groups/_show.html.erb b/app/views/guidance_groups/_show.html.erb index 8c311d4..6c9c6de 100644 --- a/app/views/guidance_groups/_show.html.erb +++ b/app/views/guidance_groups/_show.html.erb @@ -9,14 +9,14 @@ <% end %> - <% group.keys.each do |theme| %> + <% group.keys.each_with_index do |theme, i| %>
-
+
<% group[theme].each do |guidance| %> <%= raw guidance %> diff --git a/app/views/phases/_guidances_notes.html.erb b/app/views/phases/_guidances_notes.html.erb index 1e10697..3a8c905 100644 --- a/app/views/phases/_guidances_notes.html.erb +++ b/app/views/phases/_guidances_notes.html.erb @@ -71,10 +71,10 @@ <% guidance_set.keys.each_with_index do |group, i| %> <% obj = guidance_groups.select{ |gg| gg.name == group }.first %> <% if obj.present? %> -
- <% accordion_id = "#{obj.id}-#{i}" %> + <% accordion_id = "#{question.id}-#{obj.id}" %> +
<%= render partial: 'guidance_groups/show', - locals: { group: guidance_set[group], question: question, guidance_accordion_id: accordion_id } %> + locals: { group: guidance_set[group], question: question, guidance_accordion_id: "#{accordion_id}-#{i}" } %>
<% end %> <% end %>