.widget div.brbr - if !@decreto.data_da_revogacao.present? = botao_com_permissao new_contabilidade_documento_do_decreto_path(@decreto), {acao: :create}, { \ texto: ' Cadastrar', class_icone:'icone-cadastrar', class_texto: 'text-primary', } .widget-body - if documentos_do_decreto.empty? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover thead tr th Título th width="150" tbody - documentos_do_decreto.each do |documento_do_decreto| tr td = documento_do_decreto.titulo_personalizado td = botao_com_permissao edit_contabilidade_documento_do_decreto_path(documento_do_decreto), {acao: :update}, { \ class_icone:'icone-editar', params: {class: 'btn btn-default btn-sm mb-xs', title: "Editar"}, } = botao_com_permissao documento_do_decreto, {acao: :destroy}, { \ class_icone:'icone-excluir', params: { \ method: :delete, data: { confirm: 'Tem certeza?' }, class: 'btn btn-default btn-sm mb-xs', title: "Apagar", }, } = link_to contabilidade_relatorios_decretos_imprimir_path(relatorio: 'documento', format: :pdf, documentos_do_decreto_id: documento_do_decreto.id, id: 'documento'), class: "btn btn-default btn-sm mb-xs", target: '_blank', title: "Imprimir" do i.icone-imprimir