aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/general/_frontpage_search_box.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/general/_frontpage_search_box.html.erb')
-rw-r--r--app/views/general/_frontpage_search_box.html.erb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/general/_frontpage_search_box.html.erb b/app/views/general/_frontpage_search_box.html.erb
new file mode 100644
index 000000000..d2718b3a3
--- /dev/null
+++ b/app/views/general/_frontpage_search_box.html.erb
@@ -0,0 +1,12 @@
+<h2>
+ <%= _("Search over<br/>
+ <strong>{{number_of_requests}} requests</strong> <span>and</span><br/>
+ <strong>{{number_of_authorities}} authorities</strong>",
+ :number_of_requests => InfoRequest.visible.count, :number_of_authorities => PublicBody.visible.count) %>
+</h2>
+<form id="search_form" method="post" action="<%= search_redirect_path %>">
+ <div>
+ <input id="query" type="text" size="30" name="query">
+ <input type="submit" value="<%= _('Search') %>">
+ </div>
+</form>