.widget
header>
h5
' Lista de
span.fw-semi-bold Feriados
.widget-body
- if @folgas.empty?
h6 Nenhum registro encontrado.
- else
.table-responsive
table.table.table-hover
thead
tr
th Data do Feriado
th Descrição
th Tipo
th width="90"
tbody
- @folgas.each do |folga|
tr
td = folga.data_da_folga
td = folga.descricao
td = folga.tipo.try(:humanize)
td
= botao_com_permissao edit_folga_path(folga), {acao: :update}, { \
class_icone:'icone-editar',
params: {class: 'btn btn-default btn-sm mb-xs', title: "Editar"},
}
= botao_com_permissao folga, {acao: :destroy}, { \
class_icone:'icone-excluir',
params: { \
method: :delete, data: { confirm: 'Tem certeza?' },
class: 'btn btn-default btn-sm mb-xs',
title: "Apagar",
},
}
= will_paginate@folgas, previous_label: "<", next_label: ">"