= form_tag( url_for(controller: 'projecao/receitas_dos_calculos_de_projecao', action: 'create', calculo_de_projecao_id: @calculo_de_projecao.id), method: :post, role: "form", 'data-blockui-message': "Aguarde o processo ser concluído..." ) do -if @receitas.present? =< submit_tag 'Escolher Receitas Filtradas', { class: 'btn btn-primary' } - if @receitas.empty? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover thead tr th Classificacão th Descrição tbody - @receitas.each do |receita| tr - niveis = receita.classificacao_com_niveis_utilizados.count - espacamento = (niveis - 1) * 5 - font_weight = "font-weight: 100;" - case niveis - when 1 - font_weight = "color: #000; font-weight: 900;" - when 2 - font_weight = "color: #000; font-weight: bold;" - when 3 - font_weight = "color: #212121; font-weight: bold;" - when 4 - font_weight = "color: #343434; font-weight: bold;" - when 5 - font_weight = "color: #414141; font-weight: 600;" - when 6 - font_weight = "color: #515254; font-weight: 500;" td = classificacao_da_receita_com_destaque(receita, receita.class) = hidden_field_tag( "receitas[#{receita.id}]", receita.id ) td = receita.descricao + " " .form-actions .row .col-sm-12 - if @receitas.present? =< submit_tag 'Escolher Receitas Filtradas', { class: 'btn btn-primary' } =< link_to "Cancelar", projecao_calculo_de_projecao_path( id: @calculo_de_projecao.id, tab: 'receitas' ), class: "btn btn-default", 'data-show-blockui': true - else =< link_to "Voltar", projecao_calculo_de_projecao_path( id: @calculo_de_projecao.id, tab: 'receitas' ), class: "btn btn-default", 'data-show-blockui': true