refactored crawler controllers and bundled them in crawlers namespace

This commit is contained in:
Pfingstfrosch
2020-05-12 19:49:18 +02:00
parent d7907a3a0c
commit d34a3d583c
13 changed files with 34 additions and 32 deletions
@@ -0,0 +1,12 @@
<h1>Search through @TU Vienna Database</h1>
<p>Only people can be searched right now</p>
<%= form_tag(crawlers_tiss_crawler_search_path, :method => "get") do %>
<%= label_tag(:search_term, "Enter your search term") %>
<%= text_field_tag(:search_term) %>
<%= radio_button_tag(:search_context, 'People', true) %> People
<%= radio_button_tag(:search_context, 'Courses', false) %> Courses
<%= radio_button_tag(:search_context, 'Theses', false) %> Theses
<%= radio_button_tag(:search_context, 'Projects', false) %> Projects
<%= submit_tag("Search") %>
<% end %>