diff --git a/app/views/phases/_answer_form.html.erb b/app/views/phases/_answer_form.html.erb index 4a1028f..223ddd0 100644 --- a/app/views/phases/_answer_form.html.erb +++ b/app/views/phases/_answer_form.html.erb @@ -71,13 +71,16 @@ <% if annotations.present? %> + <% num_annotations = 0 %> <% annotations.each do |annotation| %>
- +
<%= annotation.org.abbreviation %> <%= _('Guidance') %>
@@ -85,16 +88,16 @@
-
+
<%= raw annotation.text %>
- + <% num_annotations += 1%>
<% end %> <% end %> - <% guidance_accordion_id = 0 %> + <% guidance_accordion_id = num_annotations %> <% question_guidances.each_pair do |theme, group| %> <% group.each do |gobj| %>