Sha256: fd6f64028623b1cf2a8a3aa3fd33c96533e1b37bd6d414072e5c032c5e7f7512

Contents?: true

Size: 1.03 KB

Versions: 5

Compression:

Stored size: 1.03 KB

Contents

.row
  .col
    = link_to hq_admins_path(q: { is_active_true: 1 }), class: 'btn btn-success' do
      = t('view.active')
      %span.badge= Admin.where(is_active: true).count
    = link_to hq_admins_path(q: { is_active_false: 1 }), class: 'btn btn-warning' do
      = t('view.passive')
      %span.badge= Admin.where(is_active: false).count
    - if query_present?(%w[is_active_true is_active_false name_or_surname_cont])
      = link_to hq_admins_path, class: 'btn btn-info' do
        = t('view.all')
        %span.badge= Admin.count
  .col
    .float-right
      = search_form_for([:hq, search],
        builder: SimpleForm::FormBuilder,
        html: { class: 'form-inline',
        data: { turboform: true } }) do |f|
        .float-right
          .input-group
            = f.input_field :name_or_surname_cont,
              label: false,
              class: 'form-control',
              placeholder: t('view.quick_search')
            %span.input-group-btn
              = button_tag(class: 'btn btn-primary') do
                %i.fas.fa-search

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cybele-2.3.2 templates/app_files/app/views/hq/admins/_filters.html.haml
cybele-2.3.1 templates/app_files/app/views/hq/admins/_filters.html.haml
cybele-2.2.0 templates/app_files/app/views/hq/admins/_filters.html.haml
cybele-2.1.0 templates/app_files/app/views/hq/admins/_filters.html.haml
cybele-2.0.0 templates/app_files/app/views/hq/admins/_filters.html.haml