From 0da5ad63ed264b27eaba4ba7de911f850aa41c45 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Mon, 2 Jan 2023 19:00:22 +0100 Subject: [PATCH] Better layout #524 --- app/views/admin/education/programs/show/_roles.html.erb | 4 ++-- app/views/admin/education/programs/show/_teachers.html.erb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/admin/education/programs/show/_roles.html.erb b/app/views/admin/education/programs/show/_roles.html.erb index eafdbce66..8d78eb47a 100644 --- a/app/views/admin/education/programs/show/_roles.html.erb +++ b/app/views/admin/education/programs/show/_roles.html.erb @@ -1,11 +1,11 @@ -<div class="float-end"> +<div class="float-end pt-4"> <% if !current_user.program_manager? || current_user.programs_to_manage.pluck(:education_program_id).include?(@program.id) %> <%= link_to t('education.manage_roles'), admin_education_program_roles_path(program_id: @program.id), class: button_classes if can?(:update, University::Role) %> <% end %> </div> -<h3 class="h5"><%= Education::Program.human_attribute_name('roles') %></h3> +<h3 class="h5 mt-4 mb-3"><%= Education::Program.human_attribute_name('roles') %></h3> <% if @roles.any? %> <div class="table-responsive"> <table class="<%= table_classes %>"> diff --git a/app/views/admin/education/programs/show/_teachers.html.erb b/app/views/admin/education/programs/show/_teachers.html.erb index 6c2533e8e..9847c86fc 100644 --- a/app/views/admin/education/programs/show/_teachers.html.erb +++ b/app/views/admin/education/programs/show/_teachers.html.erb @@ -1,11 +1,11 @@ -<div class="float-end"> +<div class="float-end pt-4"> <% if !current_user.program_manager? || current_user.programs_to_manage.pluck(:education_program_id).include?(@program.id) %> <%= link_to t('education.manage_teachers'), admin_education_program_teachers_path(program_id: @program.id), class: button_classes if can?(:update, University::Person::Involvement) %> <% end %> </div> -<h3 class="h5"><%= Education::Program.human_attribute_name('teachers') %></h3> +<h3 class="h5 mt-4 mb-3"><%= Education::Program.human_attribute_name('teachers') %></h3> <% if @teacher_involvements.any? %> <div class="table-responsive"> <table class="<%= table_classes %>"> -- GitLab