diff options
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/search/index.html.erb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/search/index.html.erb b/app/views/search/index.html.erb new file mode 100644 index 0000000..2e46d20 --- /dev/null +++ b/app/views/search/index.html.erb | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | <h2>Suche</h2> | ||
| 2 | |||
| 3 | <% form_tag search_path, :method => 'get' do %> | ||
| 4 | <%= text_field_tag :search_term %> | ||
| 5 | <%= submit_tag "Suchen" %> | ||
| 6 | <% end %> | ||
| 7 | |||
| 8 | |||
| 9 | <% if params[:search_term] %> | ||
| 10 | <h3>Suchergebnisse für Suchbegriff: <%= params[:search_term] %></h3> | ||
| 11 | <% end %> | ||
| 12 | |||
| 13 | <%= | ||
| 14 | render( | ||
| 15 | :partial => 'custom/partials/article', | ||
| 16 | :collection => @results, | ||
| 17 | :as => :page | ||
| 18 | ) | ||
| 19 | %> \ No newline at end of file | ||
