Project

General

Profile

« Previous | Next » 

Revision befd6716

Added by Shlomi Zadok almost 9 years ago

fixes #10985 - Set css class for width of filter select on Puppet CA index

View differences:

app/helpers/puppetca_helper.rb
module PuppetcaHelper
def state_filter
states = [N_('revoked'), N_('pending'), N_('valid')]
select_tag "Filter", options_for_select([''] + states.map { |s| [_(s), s] }, params[:state]),
select_tag "Filter", options_for_select([''] + states.map { |s| [_(s), s] }, params[:state]), :class => "puppetca-filters",
:onchange => "window.location.href = '#{smart_proxy_puppetca_index_path(@proxy)}' + (this.value == '' ? '' : ('?state=' + this.value))"
end

Also available in: Unified diff