.widget
header>
h5
' Lista de
span.fw-semi-bold Lotes
.widget-body
- if @lotes.empty?
h6 Nenhum registro encontrado.
- else
.table-responsive
table.table.table-hover
thead
tr
th Número
th Exercício
th Tipo de Lote
th Situação
th Tipo de Poder
th Qtd. de Arquivos
th width="50"
tbody
- @lotes.each do |lote|
tr
td = "##{lote.id}"
td = lote.exercicio_e_nome_do_mes
td = lote.tipo.present? ? lote.try(:tipo).try(:capitalize) : 'Individual'
td
- if lote.cancelado?
= "#{lote.situacao.capitalize}".html_safe
- elsif lote.finalizado?
= "#{lote.situacao.capitalize}".html_safe
- else
= lote.situacao.capitalize
td = lote.tipo_de_poder_i18n.try(:upcase)
td = lote.arquivos.count
td
= link_to lote, class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do
i.icone-detalhar
= will_paginate@lotes, previous_label: "<", next_label: ">"