%# FIXME: aggiungere al db created_by e update_by cosė da poter usare la barra laterale %>
<% content_for :status_bar do %>
<%= status_bar_context %>
<%= link_to_index t('listing_headings'), headings_path %>
<% end %>
<%= t('identification_area') %>
<%= t('heading_type') %> |
<%= show_value(@heading.heading_type, "t") %> |
<%= t('heading_name') %> |
<%= show_value(@heading.name) %> |
<%= t('heading_dates') %> |
<%= show_value(@heading.dates) %> |
<%= t('heading_qualifier') %> |
<%= show_value(@heading.qualifier) %> |
<%= t('relationships_area') %>
<%= t('fonds') %> |
<% if @heading.fonds.present? %>
<% @heading.fonds.each do |fond| %>
- <%= link_to "#{fond.name}", fond_path(fond) %>
<%= fond.preferred_event.full_display_date if fond.preferred_event %>
<% end -%>
<% else %>
<%= blank_field %>
<% end %>
|
<%= t('view_unit') %> |
<% if @heading.units.present? %>
<% @heading.units.each do |unit| %>
-
<% if unit.tsk.present? %>
<%= link_to "#{unit.title}", edit_iccd_unit_path(unit) + "?t=#{unit.tsk}" %>
<% else %>
<%= link_to "#{unit.title}", edit_unit_path(unit) %>
<% end %>
<%= unit.preferred_event.full_display_date if unit.preferred_event %>
<% end -%>
<% else %>
<%= blank_field %>
<% end %>
|