Module: ForemanSalt::SaltKeysHelper

Defined in:
app/helpers/foreman_salt/salt_keys_helper.rb

Instance Method Summary collapse

Instance Method Details

#salt_keys_state_filterObject



3
4
5
6
# File 'app/helpers/foreman_salt/salt_keys_helper.rb', line 3

def salt_keys_state_filter
  select_tag "Filter", options_for_select(["", _("Accepted"),_("Rejected"), _("Unaccepted")], params[:state]),
    :onchange => "window.location.href = location.protocol + '//' + location.host + location.pathname + (this.value == '' ? '' : ('?state=' + this.value))"
end