- if @solicitacao_de_alteracao_orcamentaria.avulso? && @solicitacao_de_alteracao_orcamentaria.credito_suplementar? .nested-fields .widget style="width: 100%" .widget-body .row .col-sm-10 .col-sm-3 = f.label 'Ação', style: "font-weight: bold" .col-sm-9 = f.input :subacao_id, label: false, collection: @subacoes, label_method: :acao_iniciativa, include_blank: "Selecione", input_html: {class: "s2", id: "sub_acao"} .row .col-sm-10 .col-sm-3 = f.label 'Elemento de Despesa', style: "font-weight: bold" .col-sm-9 = f.input :elemento_de_despesa_id, label: false, collection: f.object.retorna_elementos_de_despesa, label_method: :codigo_e_descricao, include_blank: "Selecione", input_html: {class: "s2", id: "elemento_de_despesa"} .row .col-sm-10 .col-sm-3 = f.label 'Fonte de Recurso', style: "font-weight: bold" .col-sm-9 = f.input :fonte_de_recurso_id, label: false, collection: f.object.retorna_fontes_de_recursos, label_method: :codigo_completo_e_descricao, include_blank: "Selecione", input_html: {class: "s2", id: "fonte_de_recurso"} .row .col-sm-10 .col-sm-3 = f.label 'Valor', style: "font-weight: bold" .col-sm-3 = f.input :valor, label: false, as: :string, input_html: { class: "quantidade_destino", data: { autonumeric: true, 'a-sep'=> '.', 'a-dec'=>',', 'a-sign'=> 'R$ ', 'v-min'=> '0.00', 'v-max'=> '9999999999.99' } } .col-sm-1 = link_to_remove_association " Remover", f, class: "btn btn-sm btn-danger icone-anular" - else tr.nested-fields - if @solicitacao_de_alteracao_orcamentaria.vem_de_projeto_ou_empenho? td = f.object.orcamento_da_despesa.try(:classificacao_detalhada) td = f.object.valor.try(:real_contabil) - elsif @solicitacao_de_alteracao_orcamentaria.credito_especial_ou_extraordinario? td = f.object.orcamento_da_despesa.try(:classificacao_detalhada) td = f.monetary_field :valor, class: "form-control valor-unitario destino" = error_for f.object, :valor = f.hidden_field :dotacao_id, class: "form-control" - else td = f.text_field :dotacao_id, class: "form-control s2 dotacao_destino" = error_for f.object, :dotacao_id, :orcamento_da_despesa td = f.monetary_field :valor, class: "form-control valor-unitario destino" = error_for f.object, :valor