From 8be6deb6ffb7e57ac0d6409f68396c966aa62053 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Thu, 6 Jan 2022 15:33:35 +0100 Subject: [PATCH] fix --- 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 a97ddb9cf..93f13b21d 100644 --- a/app/views/admin/education/programs/show.html.erb +++ b/app/views/admin/education/programs/show.html.erb @@ -48,8 +48,17 @@ <h3 class="h5 mt-4"> <%= Education::Program.human_attribute_name('description') %> </h3> - <p><% @program.description %></p> - <% ['registration', 'pricing', 'duration', 'contacts', 'accessibility', 'other'].each_with_index do |prop, index| %> + <p><%= @program.description %></p> + <% [ + :registration, + :pricing, + :duration, + :contacts, + :accessibility, + :content, + :results, + :other + ].each_with_index do |prop, index| %> <% best_prop_value = @program.public_send("best_#{prop}") best_prop_source = @program.public_send("best_#{prop}_source") -- GitLab