Sha256: d273513aa94f77e5efbfa740374d6521636fd0e8dbe503152f4a611a8f6754c1

Contents?: true

Size: 1.09 KB

Versions: 5

Compression:

Stored size: 1.09 KB

Contents

.row
  .col
    = link_to hq_users_path(q: { is_active_true: 1 }), class: 'btn btn-success' do
      = t('view.active')
      %span.badge= User.where(is_active: true).count
    = link_to hq_users_path(q: { is_active_false: 1 }), class: 'btn btn-warning' do
      = t('view.passive')
      %span.badge= User.where(is_active: false).count
    - if query_present?(%w[is_active_true is_active_false name_or_surname_cont])
      = link_to hq_users_path, class: 'btn btn-info' do
        = t('view.all')
        %span.badge= User.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/users/_filters.html.haml
cybele-2.3.1 templates/app_files/app/views/hq/users/_filters.html.haml
cybele-2.2.0 templates/app_files/app/views/hq/users/_filters.html.haml
cybele-2.1.0 templates/app_files/app/views/hq/users/_filters.html.haml
cybele-2.0.0 templates/app_files/app/views/hq/users/_filters.html.haml