Skip to content

Commit

Permalink
Issue #3144 - Bootstrap 5 accordion work continued for outsatanding
Browse files Browse the repository at this point in the history
cases.
  • Loading branch information
John Pinto committed Jul 14, 2023
1 parent 0d09dec commit d5e0b0d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/org_admin/phases/_index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</div>
<div class="row">
<div class="col-md-12">
<div class="card-group" id="phases_accordion" role="tablist">
<div class="accordion" id="phases_accordion" role="tablist">
<!-- If template has phases-->
<% if template_hash[:template][:phases].present? %>
<% i = 0 %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/org_admin/sections/_index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</div>

<% if template.latest? && (modifiable || template.customization_of.present?) %>
<div class="card card-default">
<div class="accordion">
<a href="#new_section" class="heading-button"
data-toggle="collapse" data-parent="sections-accordion"
data-target="#collapseSectionNew"
Expand Down
2 changes: 1 addition & 1 deletion app/views/phases/_edit_plan_answers.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</div>
</div>
</div>
<div class="card-group" id="sections-accordion" role="tablist"
<div class="accordion" id="sections-accordion" role="tablist"
aria-multiselectable="true">
<% phase.sections.sort {|a,b| a.number <=> b.number }.each do |section| %>
<div class="card card-default">
Expand Down
2 changes: 1 addition & 1 deletion app/views/plans/_overview_details.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<% if plan.template.phases.size == 1 %>
<%= render(partial: '/phases/overview', locals: { plan_id: plan.id, phase: plan.template.phases.first }) %>
<% else %>
<div class="card-group" id="plan-overview-accordion" role="tablist" aria-multiselectable="true">
<div class="accordion" id="plan-overview-accordion" role="tablist" aria-multiselectable="true">
<% plan.template.phases.each do |p| %>
<% questions_size = p.sections.map{|s| s.questions.size }.reduce(0){|sum,x| sum + x } %>
<div class="card card-default">
Expand Down

0 comments on commit d5e0b0d

Please sign in to comment.