add search bar for sql injection

This commit is contained in:
Florian Hoss 2022-04-07 16:24:56 +02:00
parent 55fc355abf
commit 68d803229a
2 changed files with 10 additions and 1 deletions

View file

@ -97,3 +97,7 @@ func (db *Database) UserIsLoggedIn(username string) bool {
} }
return false return false
} }
func (db *Database) Search(term string) {
db.ORM.Exec("SELECT * FROM tasks")
}

View file

@ -9,7 +9,12 @@
{{template "navbar" .}} {{template "navbar" .}}
<div class="container"> <div class="container">
<div class="fs-3 text-center mt-5">{{ .title }}</div> <div class="mt-5 d-flex justify-content-between align-items-center">
<div class="fs-3 text-center">{{ .title }}</div>
<div class="col-6">
<input type="email" class="form-control" id="floatingInput" placeholder="search for task">
</div>
</div>
<hr> <hr>
<div id="tasks"></div> <div id="tasks"></div>
<hr> <hr>