Skip to content
Snippets Groups Projects
Commit b59b7420 authored by pabois's avatar pabois
Browse files

alumni displayed on organization show

parent f836eb0f
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@
</div>
</div>
<h2><%= University::Person::Alumnus.model_name.human(count: 2) %></h2>
<%= render 'admin/university/alumni/list', alumni: @cohort.people.ordered %>
<% if @cohort.people.any? %>
<h2><%= University::Person::Alumnus.model_name.human(count: 2) %></h2>
<%= render 'admin/university/alumni/list', alumni: @cohort.people.ordered %>
<% end %>
......@@ -113,6 +113,35 @@
</div>
</div>
<% if @organization.experiences.any? %>
<h2><%= University::Person::Alumnus.model_name.human(count: 2) %></h2>
<table class="<%= table_classes %>">
<thead>
<tr>
<th><%= University::Person.human_attribute_name('last_name') %></th>
<th><%= University::Person.human_attribute_name('first_name') %></th>
<th><%= t('university.person.experience.period') %></th>
</tr>
</thead>
<tbody>
<% @organization.experiences.ordered.each do |experience| %>
<%
alumnus = experience.person
path = admin_university_alumnus_path(alumnus)
%>
<tr>
<td><%= link_to alumnus.last_name, path %></td>
<td><%= link_to alumnus.first_name, path %></td>
<td>
<%= "#{experience.from_year} - #{experience.to_year.present? ? experience.to_year : t('today')}" %>
</td>
</tr>
<% end %>
</tbody>
</table>
<% end %>
<% content_for :action_bar_left do %>
<%= destroy_link @organization %>
<% end %>
......
......@@ -152,6 +152,7 @@ en:
experience:
no_organization_hint_html: "If the organization is not in the list,<br>you can <a href=\"%{url}\">create it</a>"
no_organization_hint_no_access_html: "If the organization is not in the list,<br>you should ask to create it"
taught_programs: Taught programs
period: Period
taught_programs: Taught programs
sso: SSO
sso_key: SSO Key
......@@ -152,6 +152,7 @@ fr:
experience:
no_organization_hint_html: "Si l'entreprise n'apparait pas dans la liste,<br>vous pouvez la <a href=\"%{url}\">créer</a>"
no_organization_hint_no_access_html: "Si l'entreprise n'apparait pas dans la liste,<br>il faut demander à la créer"
period: Période
taught_programs: Formations enseignées
sso: SSO
sso_key: Clé sur le SSO
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