ol.breadcrumb li = link_to "Bens Patrimoniais", patrimonio_bens_patrimoniais_path, class: "link_breadcrumb" li.active #{@unidade_gestora.try(:codigo_e_nome)} .widget header h5 ' Lista de span.fw-semi-bold Tombamentos .widget-body = search_form_for @q, url: url_for(controller: 'bens_patrimoniais' , action: :exibir_por_unidade_gestora), :html => {class: "form-vertical"}, builder: SimpleForm::FormBuilder do |f| fieldset .form-group .row .col-sm-2 = f.input :data_do_tombamento_gteq, label: "A partir", as: :string, wrapper: :calendar_field, input_html: {class: "date-picker" } .col-sm-2 = f.input :data_do_tombamento_lteq, label: "Até", as: :string, wrapper: :calendar_field, input_html: {class: "date-picker" } .col-sm-3 = f.input :numero_do_tombamento_eq, label: "Número do Tombamento", class: "form-control input-sm" .col-sm-3 = f.input :status_eq, label: "Status", collection: Patrimonio::BemPatrimonial.status_i18n.transform_keys { |key| Patrimonio::BemPatrimonial.status[key]}, include_blank: "Selecione", value_method: :first, label_method: :second, input_html: {class: 's2' } .form-actions.form-search-actions = f.submit "Filtrar", class: "btn btn-default btn-sm" hr - if @bens_patrimoniais.any? .table-responsive table.table.table-hover thead tr th Tombamento th Descrição th Status th tbody - @bens_patrimoniais.each do |bem| tr td = bem.numero_do_tombamento td = bem.try(:item).try(:descricao) td = label_html_tag(bem.status_i18n, bem.tipo_de_label_status) td.align-center = link_to bem, class: "btn btn-default btn-sm mb-xs", title: "Ver Detalhes" do i.icone-detalhar - else h6 Nenhum registro encontrado. = will_paginate @bens_patrimoniais, previous_label: "<", next_label: ">" - content_for :js do javascript: $(document).ready(function(){ $(".select2-container").width("100%"); });