.widget .widget-body = simple_form_for Contabilidade::MovimentacaoDaContaBancaria.new, url: base_conta_bancaria_path(busca: 0), method: :get, :html => {class: "form-vertical"} do |f| fieldset .form-group .row.alinhar .col-sm-2 = f.input :data_inicial, as: :string, wrapper: :calendar_field, label: 'Data Inicial', autocomplete: "off", input_html: {class: 'form-control date-picker', id: 'data-inicial', autocomplete: false} .col-sm-2 = f.input :data_final, as: :string, wrapper: :calendar_field, label: 'Data Final', autocomplete: "off", input_html: {class: 'form-control date-picker', id: 'data-final', autocomplete: false} .row.alinhar .col-sm-2 style="border-bottom: 15px;" .form-actions.form-search-actions style="padding-top: 10px; border: 10px;" = f.hidden_field :busca_ativa, value: true = f.submit "Consultar", class: "btn btn-default btn-sm", id: 'botao-busca-movimentacoes', input_html: {style: 'border: 10px;', autocomplete: false} .widget .widget-body - if movimentacoes_da_conta_bancaria.empty? h6 Nenhum registro encontrado. - else .table-responsive table.table.table-hover thead tr th width="100" Data th Movimento th width="130" Crédito th width="50" th width="130" Débito tbody - movimentacoes_da_conta_bancaria.sort_by{|movimento| [movimento.data_da_movimentacao, movimento.ordem_dos_movimentos_para_relatorio]}.each do |movimentacao| tr td = movimentacao.data_da_movimentacao - if movimentacao.show_do_objeto.present? td = link_to movimentacao.descricao_do_movimento, movimentacao.show_do_objeto - else td = movimentacao.descricao_do_movimento td = movimentacao.valor.to_f.real_contabil if movimentacao.valor.to_f > 0 td = "C".html_safe if movimentacao.conciliada? td = movimentacao.valor.to_f.real_contabil if movimentacao.valor.to_f < 0