Project

General

Profile

« Previous | Next » 

Revision bf4a13d3

Added by Walden Raines over 10 years ago

Fixes #3811 updating to bootstrap 3

View differences:

app/views/users/_filters.html.erb
<div class="user-filter">
<%= field_set_tag _("Owned hosts") do %>
<div class="control-group">
<div class="form-group">
<%= _('Select') %> <%= f.check_box :filter_on_owner %>
<%= contracted_host_list @user %>
<%= expanded_host_list @user %>
......
<% end %>
<%= field_set_tag _("Domain hosts") do %>
<%= f.select :domains_andor, [[_("in domain"), "and"], [_("plus all"), "or"]], {}, :class => "input-small" %>
<%= f.select :domains_andor, [[_("in domain"), "and"], [_("plus all"), "or"]], {}, :class => "input-sm" %>
<%= multiple_checkboxes f, :domain, @user, Domain, :label=>'' %>
<% end %>
<%= field_set_tag _("Compute resources") do %>
<%= f.select :compute_resources_andor, [[_("must be"), "and"], [_("plus all"), "or"]], {}, :class => "input-small" %>
<%= f.select :compute_resources_andor, [[_("must be"), "and"], [_("plus all"), "or"]], {}, :class => "input-sm" %>
<%= multiple_checkboxes f, :compute_resources, @user, ComputeResource, :label=>'' %>
<% end %>
<%= field_set_tag _("Host group hosts") do %>
<%= f.select :hostgroups_andor, [[_("must be"), "and"], [_("plus all"), "or"]], {}, :class => "input-small" %>
<%= f.select :hostgroups_andor, [[_("must be"), "and"], [_("plus all"), "or"]], {}, :class => "input-sm" %>
<%= multiple_checkboxes f, :hostgroups, @user, Hostgroup, :label=>'' %>
<% end %>
<%= field_set_tag _("Subscribe to host groups") do %>
<div class="control-group">
<div class="form-group">
<%= _("Automatically add new host groups to this user") %> <%= f.check_box :subscribe_to_all_hostgroups %>
</div>
<% end %>
<%= field_set_tag _("Fact filters") do %>
<div class="control-group">
<%= f.select :facts_andor, [[_("must match"), "and"], [_("plus all"), "or"]], {} ,:class => "input-small" %>
<div class="form-group">
<%= f.select :facts_andor, [[_("must match"), "and"], [_("plus all"), "or"]], {} ,:class => "input-sm" %>
<div class="offset1">
<%= f.fields_for :user_facts do |builder| %>
<%= render "user_fact", :f => builder %>

Also available in: Unified diff