Sha256: 460de6afc8ddfcb43246ef0fbe96c29335494c9ebe5f3d676b9d34d62737f128
Contents?: true
Size: 1.03 KB
Versions: 3
Compression:
Stored size: 1.03 KB
Contents
.table-header.row .col-lg-3 = 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 params[:q].present? && (params[:q][:is_active_true].present? || params[:q][:is_active_false].present? || params[:q][:name_or_surname_cont].present?) = link_to hq_admins_path, class: 'btn btn-info' do = t('view.all') %span.badge= Admin.count .col-lg-9 = search_form_for [:hq, @search], builder: SimpleForm::FormBuilder, html: {class: 'form-inline', data: { turboform: true }} do |f| .pull-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.icon-search
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cybele-1.9.2 | templates/app/views/hq/admins/_filters.html.haml |
cybele-1.9.1 | templates/app/views/hq/admins/_filters.html.haml |
cybele-1.9.0 | templates/app/views/hq/admins/_filters.html.haml |