Skip to content

Commit

Permalink
html: integration of search feature in html
Browse files Browse the repository at this point in the history
  • Loading branch information
Davi-KLevy committed Jul 31, 2024
1 parent 337a58d commit 51b23cb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions forunb/main/templates/main/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
<!-- Botão para mostrar a barra lateral em telas pequenas -->
<button class="btn btn-primary d-xl-none btn-menu" id="sidebarToggle"><i class="bi bi-list"></i></button>
<!-- Barra de pesquisa -->
<form class="d-flex flex-grow-1 me-2" role="search">
<input class="form-control search-bar me-2" type="search" placeholder="Pesquisar" aria-label="Search">
<form class="d-flex flex-grow-1 me-2" role="search" method="get" action="{% url 'search_forum' %}">
<input class="form-control search-bar me-2" type="search" name="search" placeholder="Pesquisar" aria-label="Search">
</form>
<!-- Botão de login -->
<div class="d-flex align-items-center">
Expand Down
16 changes: 16 additions & 0 deletions forunb/search/templates/search/not_found.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Não Encontrado</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous" />
</head>
<body>
<div class="container mt-5">
<h1>Fórum não encontrado</h1>
<p>Não conseguimos encontrar um fórum com o título "{{ query }}"</p>
<a href="{% url 'forum_list' %}" class="btn btn-primary">Voltar à lista de fóruns</a>
</div>
</body>
</html>

0 comments on commit 51b23cb

Please sign in to comment.