Browse Source

add search form to index

Igor Wiedler 13 years ago
parent
commit
1326cd756c
1 changed files with 15 additions and 0 deletions
  1. 15 0
      src/Packagist/WebBundle/Resources/views/Web/index.html.twig

+ 15 - 0
src/Packagist/WebBundle/Resources/views/Web/index.html.twig

@@ -7,6 +7,21 @@
 
      
 
+    <div class="box">
+        <form id="search-form" action="{{ path('search') }}" method="GET" {{ form_enctype(form) }}>
+            <div>
+                <p>
+                    {{ form_errors(form.query) }}
+                    {{ form_widget(form.query) }}
+                </p>
+                {{ form_rest(form) }}
+                <input id="submit" type="submit" value="Search" />
+            </div>
+        </form>
+    </div>
+
+    &nbsp;
+
     <div class="box clearfix">
         <section class="getting-started">
             <h1>Getting Started</h1>