summaryrefslogtreecommitdiff
path: root/app/views/common/_search.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/common/_search.html.haml')
-rw-r--r--app/views/common/_search.html.haml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/common/_search.html.haml b/app/views/common/_search.html.haml
new file mode 100644
index 0000000..9f14903
--- /dev/null
+++ b/app/views/common/_search.html.haml
@@ -0,0 +1,8 @@
+= form_tag path, :method => :get, :class => "form-search" do
+ .input-append
+ = text_field_tag :query, params[:query],
+ id: "#{id}-typeahead",
+ class: "search-query",
+ autocomplete: :off
+ %button.btn{:type => :submit}= submit_label
+