.widget
header>
h5
' Lista de
span.fw-semi-bold Tipos De Dedução
.widget-body
- if @tipos_de_deducao.empty?
h6 Nenhum registro encontrado.
- else
.table-responsive
table.table.table-hover
thead
tr
th width="150" Código
th Descricão
th width="90"
tbody
- @tipos_de_deducao.each do |tipo_de_deducao|
tr
td = tipo_de_deducao.codigo
td = tipo_de_deducao.descricao
- unless tipo_de_deducao.codigo == '00'
td
= botao_com_permissao edit_loa_tipo_de_deducao_path(tipo_de_deducao), {acao: :update}, { \
class_icone:'icone-editar',
params: {class: 'btn btn-default btn-sm mb-xs', title: "Editar"},
}
= botao_com_permissao tipo_de_deducao, {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 @tipos_de_deducao, previous_label: "<", next_label: ">"