Kumi
a8c4ef5827
Enhanced the search functionality to support POST requests, ensuring more versatile and secure handling of search queries. This change involves accepting search queries through both GET and POST methods, aligning with best practices for handling potentially sensitive user inputs. Additionally, refactored conditionals for improved readability and maintainability of the code. This update aims at enhancing user experience and security, paving the way for future improvements in how user inputs are processed and handled within the application.
37 lines
1.2 KiB
HTML
37 lines
1.2 KiB
HTML
<header>
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
|
<a class="navbar-brand" href="/">
|
|
<img class="navbar-logo" src="/static/img/logo.png" alt="Structables" />
|
|
</a>
|
|
<div class="container-fluid">
|
|
<div class="navbar-nav-scroll">
|
|
<ul class="nav navbar-nav">
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/projects/">Projects</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/contest/">Contests</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/teachers/">Teachers</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/sitemap/">Sitemap</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="navbar-form navbar-right">
|
|
<form class="form-inline" action="/search" method="post">
|
|
<input
|
|
class="form-control"
|
|
type="search"
|
|
placeholder="Search"
|
|
name="q"
|
|
aria-label="Search"
|
|
/>
|
|
<button class="btn btn-default" type="submit" style="visibility: hidden;">Search</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</header>
|