Project

General

Profile

« Previous | Next » 

Revision 69f8d207

Added by Ohad Levy almost 14 years ago

  • ID 69f8d207a4cc304775263680d6454a871042ecc9

fixes #277 - add search options to puppet classes page

View differences:

app/views/puppetclasses/index.html.erb
<% title "Puppet classes" %>
<% form_tag puppetclasses_path, :method => 'get', :class => 'simple_search' do %>
<%= text_field_tag :search, params[:search] %>
<%= submit_tag "Search", :name => nil %>
<%= link_to_unless params[:search].empty?, "Clear", puppetclasses_path %>
<% end %>
<table class="list">
<tr>
<th>Name</th>
<th>Operatingsystems</th>
<th>Environments</th>
<th>Host Groups</th>
<th><%= order @search, :by => :name %></th>
<th>Operating Systems</th>
<th><%= order @search, :by => :environments_name, :as => "Environments" %></th>
<th>Host Group</th>
<th></th>
</tr>
<% for puppetclass in @puppetclasses %>
......
<%= page_entries_info @puppetclasses %>
<%= will_paginate @puppetclasses %>
<p><%= link_to "New Puppetclass", new_puppetclass_path %> |
<%= link_to "Import new puppet classes and environments", import_environments_puppetclasses_path %>
</p>
<span class=title_action>
<%= link_to "New Puppetclass", new_puppetclass_path %> |
<%= link_to "Import new puppet classes and environments", import_environments_puppetclasses_path %>
</span>

Also available in: Unified diff