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

panels

parent 6d29711a
No related branches found
No related tags found
No related merge requests found
......@@ -14,9 +14,9 @@
%>
<% next unless template.allowed_for_about? %>
<div class="col-xxl-2 col-lg-3 col-md-4 d-flex">
<div class="<%= 'card' if current_admin_theme == 'appstack' %> flex-fill position-relative js-validate-form-click">
<div class="<%= if_appstack 'card' %> flex-fill position-relative js-validate-form-click">
<%= image_tag "communication/blocks/templates/#{kind}.jpg", alt: '', class:"card-img-top block__image" %>
<div class="<%= 'card-body' if current_admin_theme == 'appstack' %>">
<div class="<%= if_appstack 'card-body' %>">
<h3 class="h4 block__title"><%= t "enums.communication.block.template_kind.#{kind}" %></h4>
<p class="mb-0 block__description">
<%= t "admin.communication.blocks.templates.#{kind}.description" %>
......
......@@ -117,12 +117,9 @@
<% end %>
<% if @program.children.any? %>
<div class="card flex-fill w-100">
<div class="card-header">
<h5 class="card-title mb-0"><%= Education::Program.model_name.human(count: 2) %></h5>
</div>
<%= osuny_panel Education::Program.model_name.human(count: 2) do %>
<%= render 'admin/education/programs/list', programs: @program.children %>
</div>
<% end %>
<% end %>
<%= render 'admin/education/programs/show/cohorts' %>
......
<% if @program.cohorts.any? %>
<div class="card flex-fill w-100">
<div class="card-header">
<div class="float-end">
<%= @program.alumni.count %>
<%= University::Person::Alumnus.model_name.human(count: 2).downcase %>
</div>
<h5 class="card-title mb-0"><%= Education::Cohort.model_name.human(count: 2) %></h5>
</div>
<%= osuny_panel Education::Cohort.model_name.human(count: 2),
subtitle: "#{@program.alumni.count} #{University::Person::Alumnus.model_name.human(count: @program.alumni.count).downcase}" do %>
<div class="table-responsive">
<table class="<%= table_classes %>">
<thead>
......@@ -32,5 +26,5 @@
</tbody>
</table>
</div>
</div>
<% end %>
<% end %>
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