Revision 40e7f47a
Added by Amos Benari about 12 years ago
- ID 40e7f47a4cb6d2ceef39645fc98926756a633a60
app/views/users/_filters.html.erb | ||
---|---|---|
<div class="user-filter">
|
||
|
||
<%= field_set_tag "Owned hosts" do %>
|
||
Select <%= f.check_box :filter_on_owner %>
|
||
|
||
<%= contracted_host_list @user -%>
|
||
<%= expanded_host_list @user -%>
|
||
<div class="control-group">
|
||
Select <%= f.check_box :filter_on_owner %>
|
||
<%= contracted_host_list @user -%>
|
||
<%= expanded_host_list @user -%>
|
||
</div>
|
||
<% end -%>
|
||
|
||
|
||
<%= field_set_tag "Domain hosts" do %>
|
||
<%= f.select :domains_andor, [["in domain", "and"], ["plus all", "or"]], {}, :class => "input-small" %>
|
||
<div class="offset1">
|
||
<%= edit_habtm @user, Domain %>
|
||
<div class="control-group">
|
||
<%= f.select :domains_andor, [["in domain", "and"], ["plus all", "or"]], {}, :class => "input-small" %>
|
||
<div class="offset1">
|
||
<%= edit_habtm @user, Domain %>
|
||
</div>
|
||
</div>
|
||
<% end %>
|
||
|
||
|
||
<%= field_set_tag "Hostgroup hosts" do %>
|
||
<%= f.select :hostgroups_andor, [["must be", "and"], ["plus all", "or"]], {}, :class => "input-small" %>
|
||
<div class="offset1">
|
||
<%= edit_habtm @user, Hostgroup %>
|
||
<div class="control-group">
|
||
<%= f.select :hostgroups_andor, [["must be", "and"], ["plus all", "or"]], {}, :class => "input-small" %>
|
||
<div class="offset1">
|
||
<%= edit_habtm @user, Hostgroup %>
|
||
</div>
|
||
</div>
|
||
<% end %>
|
||
|
||
|
||
<%= field_set_tag "Fact filters" do %>
|
||
<%= f.select :facts_andor, [["must match", "and"], ["plus all", "or"]], {} ,:class => "input-small" %>
|
||
<div class="offset1">
|
||
<%= f.fields_for :user_facts do |builder| -%>
|
||
<%= render "user_fact", :f => builder %>
|
||
<% end -%>
|
||
<% if authorized_for(params[:controller], params[:action]) -%>
|
||
<p><%= link_to_add_fields("+", f, :user_facts, "user_fact", :title => "Add a fact filter") %></p>
|
||
<% end -%>
|
||
<% 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="offset1">
|
||
<%= f.fields_for :user_facts do |builder| -%>
|
||
<%= render "user_fact", :f => builder %>
|
||
<% end -%>
|
||
<% if authorized_for(params[:controller], params[:action]) -%>
|
||
<p><%= link_to_add_fields("+", f, :user_facts, "user_fact", :title => "Add a fact filter") %></p>
|
||
<% end -%>
|
||
</div>
|
||
</div>
|
||
<% end %>
|
||
|
||
<% end %>
|
||
</div>
|
Also available in: Unified diff
[UI] users filter page space after field-set.