.widget header> h5 ' Lista de span.fw-semi-bold Receitas .widget-body - if @receitas.empty? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover thead tr th Codigo th Descricao th width='160' Opções tbody - @receitas.each do |receita| - next unless receita.codigo.present? tr //td = classificacao_da_receita_com_destaque(receita, Projecao::Receita) td = receita.descricao + " " - unless receita.padrao span class="label label-danger" ' C td - if receita.analitica? = link_to receita, class: "btn btn-default btn-sm mb-xs", title: "Atualizar Previsão da Receita" do span.icone-detalhar ' Atualizar Previsão da Receita / td / - if receita.pode_ter_filho? / = botao_com_permissao new_projecao_receita_path(receita_id: receita.id), {acao: :create}, { \ / texto: '', / class_icone:'icone-cadastrar', / class_texto: 'text-primary', / params: {class: 'btn btn-default btn-sm mb-xs', title: "Cadastrar novo detalhamento"} \ / } / - unless receita.padrao / = botao_com_permissao edit_projecao_receita_path(receita), {acao: :update}, { \ / class_icone:'icone-editar', / params: {class: 'btn btn-default btn-sm mb-xs', title: "Editar"}, / } / / = botao_com_permissao receita, {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 @receitas, previous_label: "<", next_label: ">"