Commits

Cédric Bonhomme  committed 208bf03

Try to fix the problem with the search box with Chrome and Chromium (it works with Firefox).

  • Participants
  • Parent commits 11810a1

Comments (0)

Files changed (1)

File pyaggr3g470r/templates/layout.html

 
   <body>
 
+
     <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
       <div class="container">
         <div class="navbar-header">
           </button>
           <a class="navbar-brand" href="/">pyAggr3g470r</a>
         </div>
-
-        <!-- Collect the nav links, forms, and other content for toggling -->
+        {% if g.user.is_authenticated() %}
         <div class="collapse navbar-collapse navbar-ex1-collapse">
-          <ul class="nav navbar-nav navbar-right">
-            {% if g.user.is_authenticated() %}
+            <form class="navbar-form pull-right col-lg-4 col-4 col-sm-4" method="get" action="/search/" role="search">
+                <div class="input-group">
+                    <input type="search" class="form-control" name="query" placeholder="Search"/>
+                    <span class="input-group-btn">
+                        <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
+                    </span> 
+                </div>
+            </form>
+            <ul class="nav navbar-nav navbar-right">
                 <li class="dropdown">
                     <a href="#" class="dropdown-toggle" data-toggle="dropdown">Articles <b class="caret"></b></a>
                     <ul class="dropdown-menu">
                 <li><a href="/management/">Management</a></li>
                 <li><a href="/about/">About</a></li>
                 <li><a href="{{ url_for('logout') }}">Logout</a></li>
-                <li>
-                    <form class="navbar-form" method=get action="/search/" role="search">
-                        <div class="input-group">
-                            <input type="text" class="form-control" name="query" size="8" placeholder="Search">
-                            <span class="input-group-btn">
-                                <button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-search"></span></button>
-                            </span>
-                        </div>
-                    </form>
-                </li>
-            {% endif %}
-          </ul>
-        </div><!-- /.navbar-collapse -->
-      </div><!-- /.container -->
+            </ul>
+        </div>
+        {% endif %}
+      </div>
     </nav>
 
 
+
     {% block content %}{% endblock %}
 
     <!-- Bootstrap core JavaScript -->