From 8d5c48c1711185cb0138e1c5723ce0ab366f7540 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Thu, 13 Jan 2022 12:34:31 +0100
Subject: [PATCH] show

---
 app/views/admin/education/programs/show.html.erb | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/app/views/admin/education/programs/show.html.erb b/app/views/admin/education/programs/show.html.erb
index e3263475a..1cd1e4836 100644
--- a/app/views/admin/education/programs/show.html.erb
+++ b/app/views/admin/education/programs/show.html.erb
@@ -85,7 +85,11 @@
     <div class="row">
       <div class="col-md-6">
         <% i = 0 %>
-        <% [:prerequisites, :objectives, :opportunities, :results].each do |prop| %>
+        <%  [
+              :objectives,
+              :content,
+              :prerequisites
+            ].each do |prop| %>
           <% next if @program.public_send(prop).blank? %>
           <h3 class="h5 <%= 'mt-4' if i > 0 %>"><%= Education::Program.human_attribute_name(prop) %></h3>
           <%= @program.public_send prop %>
@@ -94,7 +98,12 @@
       </div>
       <div class="col-md-6">
         <% i = 0 %>
-        <% ['pedagogy', 'evaluation', 'content'].each do |prop| %>
+        <%  [
+              :pedagogy,
+              :evaluation,
+              :opportunities,
+              :results
+            ].each do |prop| %>
           <% next if @program.public_send(prop).blank? %>
           <h3 class="h5 <%= 'mt-4' if i > 0 %>"><%= Education::Program.human_attribute_name(prop) %></h3>
           <%= @program.public_send prop %>
-- 
GitLab