Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #10985 - Set css class for width of filter select on puppetca#index #2511

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/assets/stylesheets/bootstrap_and_overrides.scss
Expand Up @@ -219,3 +219,6 @@ body.modal-open {
color: black;
}
// eof form-control-feedback
.puppetca-filters {
min-width: 150px;
}
2 changes: 1 addition & 1 deletion app/helpers/puppetca_helper.rb
@@ -1,7 +1,7 @@
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

Expand Down
2 changes: 1 addition & 1 deletion app/views/autosign/index.html.erb
@@ -1,7 +1,7 @@
<% title _("Autosign entries for %s") % @proxy %>
<% title_actions display_link_if_authorized(_("Certificates"), hash_for_smart_proxy_puppetca_index_path(:smart_proxy_id => @proxy).merge(:auth_object => @proxy, :permission => 'view_smart_proxies_puppetca')),
autosign_form %>
<table class='table table-bordered table-striped table-condensed'>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th><%= _("Name") %></th>
Expand Down
2 changes: 1 addition & 1 deletion app/views/puppetca/index.html.erb
@@ -1,7 +1,7 @@
<% title _("PuppetCA on %s") % @proxy.name %>
<% search_bar _("Filter by state: %s") % state_filter %>
<% title_actions display_link_if_authorized(_("Autosign Entries"), hash_for_smart_proxy_autosign_index_path(:smart_proxy_id => @proxy)) %>
<table class='table table-bordered table-striped table-condensed'>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th><%= _("Certificate Name") %></th>
Expand Down