= javascript_include_tag "bomcobox" = javascript_include_tag "licitacao/projetos/filtro" section.widget.widget-search header h5 Filtros .widget-controls a data-widgster="expand" href="#" style="display: none;" title="Expand" i.icone-cadastrar a data-widgster="collapse" href="#" title="Collapse" i.glyphicon.glyphicon-minus .widget-body = search_form_for @q, :html => {class: "form-vertical"}, url: @url_projetos do |f| fieldset .form-group .row.alinhar .col-sm-2.filter_column label.control-label for="normal-field" Data do Projeto .input-group = f.text_field :data_do_projeto_eq, placeholder: Date.today.to_s, class: "form-control date-picker", autocomplete: "off" span.input-group-addon span.icone-calendario .col-sm-2.filter_column label.control-label for="normal-field" Número = f.text_field :pedido_numero_cont, class: "form-control" .col-sm-2.filter_column label.control-label Orçamento = f.select :orcamento_id_eq, options_from_collection_for_select( \ @orcamentos, :id, :exercicio, @q.orcamento_id_eq \ ), { include_blank: "Selecione" }, class: "form-control s2", id:'orcamento' .col-sm-4.filter_column label.control-label Unidade Orçamentária = f.select :pedido_unidade_orcamentaria_id_eq, options_from_collection_for_select( \ @unidades_orcamentarias, 'id', 'codigo_e_nome_e_exercicio', @q.pedido_unidade_orcamentaria_id_eq \ ), { include_blank: "Selecione" }, class: "form-control s2", id: "unidade_orcamentaria_id" .col-sm-2.filter_column label.control-label Status = f.select :status_eq, options_for_select( \ Licitacao::Projeto.status.collect { |t| [ Licitacao::Projeto.localizar("status", t[0]), t[1] ] }, selected: @q.status_eq \ ), { include_blank: "Selecione" }, class: "form-control s2" .form-group .row.alinhar .col-sm-3.filter_column label.control-label for="normal-field" Modalidade = f.select :modalidade_do_processo_eq, options_for_select( \ Licitacao::Projeto.modalidades_do_processo.collect { |t| [ Licitacao::Projeto.localizar("modalidade_do_processo", t[0]), t[1] ] }, selected: @q.modalidade_do_processo_eq \ ), { include_blank: "Selecione" }, class: "form-control s2" .col-sm-5.filter_column = f.label :pedido_objeto_label, 'Objeto', class: 'control-label', for: 'normal-field' = f.text_field :pedido_objeto_cont, class: "form-control input-sm" .col-sm-4.filter_column label.control-label Subcategoria = f.select :pedido_categorias_do_pedido_subcategoria_id_eq, options_from_collection_for_select( \ @subcategorias, 'id', 'titulo', @q.pedido_categorias_do_pedido_subcategoria_id_eq \ ), { include_blank: "Selecione" }, class: "form-control s2" .form-actions.form-search-actions = f.submit "Filtrar", class: "btn btn-default btn-sm"