Compare commits

...

3 Commits

Author SHA1 Message Date
9277eb0cad Update for production 2024-05-17 09:10:34 -04:00
212021b261 Add text to search criteria and expand placeholder note 2024-05-17 09:10:12 -04:00
9a76624d1c Fix width of menu 2024-05-17 09:08:38 -04:00
4 changed files with 5 additions and 3 deletions

4
.env
View File

@ -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 ###

View File

@ -105,6 +105,7 @@ hgroup,
menu,
nav {
display: block;
width: 250px;
}
body {

View File

@ -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)

View File

@ -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 %}