diff --git a/app/controllers/manage_tags_controller.rb b/app/controllers/manage_tags_controller.rb
index 67e2bb5..5541b35 100644
--- a/app/controllers/manage_tags_controller.rb
+++ b/app/controllers/manage_tags_controller.rb
@@ -67,4 +67,9 @@ class ManageTagsController < ApplicationController
redirect_to :action => 'list'
end
end
+
+ # Full-text search for tags that have the query terms
+ def search
+ @tags_found = Tag.find_by_contents(params[:query][:term])
+ end
end
diff --git a/app/views/manage_tags/_form.rhtml b/app/views/manage_tags/_form.rhtml
index 4a103ac..fc8b309 100644
--- a/app/views/manage_tags/_form.rhtml
+++ b/app/views/manage_tags/_form.rhtml
@@ -1,3 +1,3 @@
-Name: <%= text_field 'tag', 'name' %>
-Parent tag: <%= select('tag', 'parent_id', @parent_tags.collect {|p| [ p.name, p.id ] }, { :include_blank => true }) %>
-Pending: <%= check_box 'tag', 'pending' %>
+<%= _('Name') %>: <%= text_field 'tag', 'name' %>
+<%= _('Parent tag') %>: <%= select('tag', 'parent_id', @parent_tags.collect {|p| [ p.name, p.id ] }, { :include_blank => true }) %>
+<%= _('Pending') %>: <%= check_box 'tag', 'pending' %>
diff --git a/app/views/manage_tags/list.rhtml b/app/views/manage_tags/list.rhtml
index ec4244d..3abad85 100644
--- a/app/views/manage_tags/list.rhtml
+++ b/app/views/manage_tags/list.rhtml
@@ -1,3 +1,9 @@
+
+<% form_tag :action => 'search' do %>
+ <%= text_field 'query', 'term'%>
+ <%= submit_tag _('Search') %>
+<% end %>
+