Compare commits
3 Commits
7beb08c72d
...
9277eb0cad
Author | SHA1 | Date | |
---|---|---|---|
9277eb0cad | |||
212021b261 | |||
9a76624d1c |
4
.env
4
.env
@ -15,9 +15,9 @@
|
||||
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
|
||||
|
||||
###> symfony/framework-bundle ###
|
||||
APP_ENV=dev
|
||||
APP_ENV=prod
|
||||
APP_SECRET=c9124e6a5434e81e428ab5236aa6259b
|
||||
APP_DEBUG=1
|
||||
APP_DEBUG=0
|
||||
###< symfony/framework-bundle ###
|
||||
|
||||
###> doctrine/doctrine-bundle ###
|
||||
|
@ -105,6 +105,7 @@ hgroup,
|
||||
menu,
|
||||
nav {
|
||||
display: block;
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
body {
|
||||
|
@ -39,6 +39,7 @@ class NoteRepository extends ServiceEntityRepository
|
||||
->orderBy('n.date', 'DESC')
|
||||
->where('n.title LIKE :query')
|
||||
->orWhere('n.passage LIKE :query')
|
||||
->orWhere('n.text LIKE :query')
|
||||
->andWhere('n.user = :user')
|
||||
->setParameter('query', "%{$query}%")
|
||||
->setParameter('user', $userId)
|
||||
|
@ -5,7 +5,7 @@
|
||||
<!-- Search -->
|
||||
{% if app.user %}
|
||||
<section id="search" class="alt">
|
||||
<input type="text" name="query" id="query" placeholder="Search for note by title or passage" />
|
||||
<input type="text" name="query" id="query" placeholder="Search by title, passage, or note" />
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user