.widget .widget-body - if indices.empty? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover thead tr th Grupo th Nome - @exercicios_destino.each do |exercicio| th = "#{exercicio} (%)" th Fte. das Projeções th width="100" tbody - indices.each do |indice_de_projecao| tr td = indice_de_projecao.grupo_de_indice.nome.to_s td = indice_de_projecao.nome.to_s - @exercicios_destino.each do |exercicio| - projecao_do_indice = indice_de_projecao.projecoes_do_indice.find_by(exercicio: exercicio.to_s) td = projecao_do_indice.present? ? number_to_percentage(projecao_do_indice.percentual.to_f, precision: 2) : number_to_percentage(0, precision: 2) td = indice_de_projecao.fonte_das_projecoes.to_s td = botao_com_permissao edit_projecao_indice_de_projecao_path(indice_de_projecao), {acao: :update}, { \ class_icone:'icone-editar', params: {class: 'btn btn-default btn-sm mb-xs', title: "Editar"}, } = botao_com_permissao projecao_indice_de_projecao_path(indice_de_projecao), {acao: :destroy}, { \ class_icone:'icone-excluir', params: { \ method: :delete, data: { confirm: 'Tem certeza?' }, class: 'btn btn-default btn-sm mb-xs', title: "Apagar", }, }