<% if @absence_justifications.empty? %>
| <%= t('views.index.no_record_found')%> |
<% else %>
<% @absence_justifications.each do |absence_justification| %>
| <%= absence_justification.unity ? absence_justification.unity : "Não informado" %> |
<%= absence_justification.classroom ? absence_justification.classroom : "Não informado" %> |
<%= absence_justification.decorator.students_labels %> |
<%= l absence_justification.absence_date %> |
<%= l absence_justification.absence_date_end %> |
<%= absence_justification.class_number || 'Todas' %> |
<%= absence_justification.user %> |
<%= link_to(
t('helpers.links.show_html'),
absence_justification_path(absence_justification),
class: 'btn btn-info apply_tooltip',
data: { original_title: t('views.index.tooltips.show') }) %>
<%= link_to(
t('helpers.links.edit_html'),
edit_absence_justification_path(absence_justification),
class: 'btn btn-success apply_tooltip',
data: { original_title: t('views.index.tooltips.edit') }
) %>
<%= link_to(
t('helpers.links.destroy_html'),
absence_justification_path(absence_justification),
class: 'btn btn-danger apply_tooltip',
disabled: !absence_justification_destroy?(absence_justification),
method: 'delete',
data: {
confirm: t('views.index.confirm'),
original_title: t('views.index.tooltips.delete')
}
) %>
|
<% end %>
<% end %>