= stylesheet_link_tag 'projecao/receitas/quadro_de_projecao' ol.breadcrumb li = link_to "Projeção", projecao_projecao_de_receita_path, class: "link_breadcrumb" li.link_breadcrumb Quadro de Projeções li.active Listar = render 'filtros_quadro_de_projecao' .widget header = link_to projecao_projecao_de_receita_path, class: "btn btn-default btn-sm" do i.icone-voltar ' Voltar .br .alert.alert-warning strong Atenção! span style='font-weight: 500;' As células da tabela que estão pintadas de vermelho representam as receitas que não possuem valores projetados nos respectivos exercícios. .widget-body h3.show-header span.fw-semi-bold Valores por Receitas - if @receitas.blank? or @receitas_hash.blank? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover.table-lg.table-bordered#tabela_de_projecao thead tr th.align-center Classificação th.align-center( colspan="#{@projecao.exercicios_base.count}") Realizado th.align-center( colspan="1") Orçado th.align-center( colspan="1") Revisado - if @projecao.pertence_a_orcamento? th.align-center( colspan="1") Previsto th.align-center( colspan="#{@projecao.exercicios_destino.count-1}") Projetado - else th.align-center( colspan="#{@projecao.exercicios_destino.count}") Projetado thead tr th - @projecao.exercicios_com_tipo.each do |exercicio_com_tipo| th.align-center = exercicio_com_tipo[:exercicio] tbody - @receitas_hash.each do |receita| tr(data-toggle="tooltip" title="#{receita[:descricao]}") td style='font-size: 0.8em;' = receita[:codigo] - receita[:projecoes].each do |projecao| td style="font-size: 0.8em; background-color: #{projecao[:background]}" = projecao[:total_agregado].real_contabil = will_paginate @receitas, previous_label: "<", next_label: ">" javascript: $(function(){ console.log("#{params[:categoria]}") $("#categoria"+"#{params[:categoria]}").addClass('active'); });