From b876ba797c814f5b72165873adc2fca100ebfb8d Mon Sep 17 00:00:00 2001 From: bohung Date: Thu, 7 Jul 2022 17:27:52 +0800 Subject: [PATCH] Fix bug. --- .../seminar/background_style/8/css/background.css | 2 +- .../admin/seminars/_seminar_signup_render_table.html.erb | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/seminar/background_style/8/css/background.css b/app/assets/stylesheets/seminar/background_style/8/css/background.css index 1e85015..4fdfa2d 100644 --- a/app/assets/stylesheets/seminar/background_style/8/css/background.css +++ b/app/assets/stylesheets/seminar/background_style/8/css/background.css @@ -7,7 +7,7 @@ .layout-footer .layout-footer-inner{ background: #ffffff; } -.layout-header{ +.layout-header > .container{ background: #01538f; } body{ diff --git a/app/views/admin/seminars/_seminar_signup_render_table.html.erb b/app/views/admin/seminars/_seminar_signup_render_table.html.erb index 03fd3c9..9cbe1c3 100644 --- a/app/views/admin/seminars/_seminar_signup_render_table.html.erb +++ b/app/views/admin/seminars/_seminar_signup_render_table.html.erb @@ -8,9 +8,11 @@ <% if @drag%> <% end %> - <% @field_name_translations.each_with_index do |trans,i|%> - <% next unless @display_field.include?(@field_names[i]) %> - <%= trans %> + <% + @field_name_translations = @field_name_translations.map.with_index{|trans,i| [@field_names[i], trans]}.to_h + %> + <% @display_field.each do |field_name| %> + <%= @field_name_translations[field_name] %> <% end %>