diff --git a/app/views/guidance_groups/_show.html.erb b/app/views/guidance_groups/_show.html.erb
index 2238f91..8c311d4 100644
--- a/app/views/guidance_groups/_show.html.erb
+++ b/app/views/guidance_groups/_show.html.erb
@@ -9,16 +9,14 @@
<% end %>
-
- <% i = 0 %>
<% group.keys.each do |theme| %>
-
+
<% group[theme].each do |guidance| %>
<%= raw guidance %>
<% end %>
- <% i += 1 %>
<% end %>
\ No newline at end of file
diff --git a/app/views/phases/_guidances_notes.html.erb b/app/views/phases/_guidances_notes.html.erb
index b6d53f1..3545372 100644
--- a/app/views/phases/_guidances_notes.html.erb
+++ b/app/views/phases/_guidances_notes.html.erb
@@ -68,15 +68,13 @@
<% end %>
<% guidance_accordion_id = 0 %>
- <% guidance_set.keys.each do |group| %>
+ <% guidance_set.keys.each_with_index do |i, group| %>
<% obj = guidance_groups.select{ |gg| gg.name == group }.first %>
- <% i = 0 %>
<% if obj.present? %>
-
+
+ <% accordion_id = "#{gg.id}-#{i}" %>
<%= render partial: 'guidance_groups/show',
- locals: { group: guidance_set[group], question: question, guidance_accordion_id: guidance_accordion_id } %>
- <% guidance_accordion_id += 1 %>
- <% i += 1 %>
+ locals: { group: guidance_set[group], question: question, guidance_accordion_id: accordion_id } %>
<% end %>
<% end %>