Skip to content
Snippets Groups Projects
Commit 0da5ad63 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Better layout #524

parent 10829ffb
No related branches found
No related tags found
No related merge requests found
<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 %>">
......
<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 %>">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment