= simple_form_for 'usuarios', :url =>"/admin/users", :method => :get, :id=>'form_filter', html: { class: "form-inline"} do |f| .container .row.py-2.px-2 .col-12.bg-light.my-2 %strong.p Dados da comunidade .col-4 = f.input 'text', class: 'form-control mr-sm-2', placeholder: t('admin.table_headers.first_name'), input_html: { name: 'filter_by[user][name_likeness]', value: (params[:filter_by] ? params[:filter_by][:user][:name_likeness] : "")},label: false .col-4 = f.input 'text', class: 'form-control mr-sm-2', placeholder: t('admin.table_headers.email'), input_html: { name: 'filter_by[user][email_likeness]',value: (params[:filter_by] ? params[:filter_by][:user][:email_likeness] : "")},label: false .col-4 = f.input 'text', class: 'form-control mr-sm-2', placeholder: t('admin.table_headers.cpf'), input_html: { name: 'filter_by[user][cpf_value]',value: (params[:filter_by] ? params[:filter_by][:user][:cpf_value] : "")},label: false .col-4.pt-2 = f.input 'text', class: 'form-control mr-sm-2', placeholder: t('admin.table_headers.state'), input_html: { name: 'filter_by[user][state_likeness]',value: (params[:filter_by] ? params[:filter_by][:user][:state_likeness] : "")},label: false .col-4.pt-2 = f.input 'text', class: 'form-control mr-sm-2', placeholder: t('admin.table_headers.city'), input_html: { name: 'filter_by[user][city_likeness]',value: (params[:filter_by] ? params[:filter_by][:user][:city_likeness] : "")},label: false .col-4 .row.pt-4.px-2 .col-12.bg-light.my-2 %strong.p Estado do Associado .col-4 = f.input 'Associado Pendente ', as: :boolean, checked_value: 'new_associate', unchecked_value: false, input_html: { name: 'filter_by[associate][association_state_value][]',class: 'filters', checked: (params[:filter_by] && params[:filter_by][:associate][:association_state_value] && params[:filter_by][:associate][:association_state_value].include?('new_associate') ? true : false)} .col-4 = f.input 'Associado Aprovado ', as: :boolean, checked_value: 'approved', unchecked_value: false, input_html: { name: 'filter_by[associate][association_state_value][]',class: 'filters', checked: (params[:filter_by] && params[:filter_by][:associate][:association_state_value] && params[:filter_by][:associate][:association_state_value].include?('approved') ? true : false)} .col-4 = f.input 'Associado Pago', as: :boolean, checked_value: 'running', unchecked_value: false, input_html: { name: 'filter_by[associate][association_state_value][]',class: 'filters', checked: (params[:filter_by] && params[:filter_by][:associate][:association_state_value] && params[:filter_by][:associate][:association_state_value].include?('running') ? true : false)} .col-4 = f.input 'Associado Rejeitado ', as: :boolean, checked_value: 'rejected', unchecked_value: false, input_html: { name: 'filter_by[associate][association_state_value][]',class: 'filters', checked: (params[:filter_by] && params[:filter_by][:associate][:association_state_value] && params[:filter_by][:associate][:association_state_value].include?('rejected') ? true : false)} .col-4 = f.input 'Associado Expirado ', as: :boolean, checked_value: 'expired', unchecked_value: false, input_html: { name: 'filter_by[associate][association_state_value][]',class: 'filters', checked: (params[:filter_by] && params[:filter_by][:associate][:association_state_value] && params[:filter_by][:associate][:association_state_value].include?('expired') ? true : false)} .col-4 .row.pt-4.px-2 .col-12.bg-light.my-2 %strong.p Perfil de Pagamento .col-12 - @association_types.each do |type| = f.input type.description, as: :boolean, checked_value: type.id, unchecked_value: false, input_html: { name: 'filter_by[associate][association_type_id_value][]',class: 'filters', checked: (params[:filter_by] && params[:filter_by][:associate][:association_type_id_value] && params[:filter_by][:associate][:association_type_id_value].include?(type.id) ? true : false)} .row.pt-4.px-2 .col-4.bg-light.py-2 %strong.p Aniversário = f.input 'Aniversário', as: :date, class: 'form-control mr-sm-2', html5: true, placeholder: t('admin.table_headers.birthday'), input_html: { name: 'filter_by[user][birthday_start]',class: 'mb-2',value:(params[:filter_by] ? params[:filter_by][:user][:birthday_start] : "")},label: false = f.input 'Aniversário', as: :date, class: 'form-control mr-sm-2', html5: true, placeholder: t('admin.table_headers.birthday'), input_html: { name: 'filter_by[user][birthday_end]', value: (params[:filter_by] ? params[:filter_by][:user][:birthday_end] : "")},label: false .col-4.bg-light.py-2 %strong.p Data de Inscrição = f.input 'Data de Criação', as: :date, class: 'form-control mr-sm-2', html5: true, placeholder: t('admin.table_headers.registration_date'), input_html: { name: 'filter_by[user][created_at_start]', class: 'mb-2',value:(params[:filter_by] ? params[:filter_by][:user][:created_at_start] : "")},label: false = f.input 'Data de Criação', as: :date, class: 'form-control mr-sm-2', html5: true, placeholder: t('admin.table_headers.registration_date'), input_html: { name: 'filter_by[user][created_at_end]', value:(params[:filter_by] ? params[:filter_by][:user][:created_at_end] : "")},label: false .col-4.bg-light.py-2 %strong.p Data de Vencimento = f.input 'Data de Vencimento', as: :date, class: 'form-control mr-sm-2', html5: true, placeholder: t('admin.table_headers.valid_at'), input_html: { name: 'filter_by[associate][valid_until_start]',class: 'mb-2', value: (params[:filter_by] ? params[:filter_by][:associate][:valid_until_start] : "")},label: false = f.input 'Data de Vencimento', as: :date, class: 'form-control mr-sm-2', html5: true, placeholder: t('admin.table_headers.valid_at'), input_html: { name: 'filter_by[associate][valid_until_end]', value: (params[:filter_by] ? params[:filter_by][:associate][:valid_until_end] : "")},label: false .row .col-2.py-4.ml-auto = button_tag :button, class: 'btn btn-outline-success' do %i.fa.fa-refresh = t('admin.misc.refresh') .col-1.py-4.mr-auto %a.btn.btn-outline-danger{:href => '/admin/users'} %i.fa.fa-times -# Nome, estado, cidade, email, data de nascimento e data de cadastro. (com o módulo de associados e pagamento: Adimplente, Inadimplente (quem paga em dia a anuidade)