h5 strong Componentes da Operação de Crédito .widget .widget-body h4.show-header span.fw-semi-bold Operação de Crédito: =< link_to "#{@operacao_de_credito.codigo}", obra_operacao_de_credito_path(@operacao_de_credito) .pull-right style="margin-top: -5px;" span.fw-semi-bold Valor Total: #{@operacao_de_credito.valor_total.try(:valor_financeiro, unit: @operacao_de_credito.simbolo_monetario)} - if @operacao_de_credito.errors.any? .form-group .row .col-sm-12 span.fw-semi-bold =< error_for @operacao_de_credito, :base = f.fields_for :componentes_da_operacao_de_credito do |elemento| =< render 'componente_da_operacao_de_credito_fields', f: elemento .links = link_to_add_association ' Componentes'.html_safe, f, :componentes_da_operacao_de_credito, class: 'btn btn-primary btn-sm', id: 'btn-add-componente' .form-actions .row .col-sm-12 align="center" = f.submit "Atualizar Componentes", class: "btn btn-primary" = link_to "Cancelar", obra_operacao_de_credito_path(@operacao_de_credito), class: "btn btn-default"