Add text to search criteria and expand placeholder note
This commit is contained in:
parent
9a76624d1c
commit
212021b261
@ -39,6 +39,7 @@ class NoteRepository extends ServiceEntityRepository
|
|||||||
->orderBy('n.date', 'DESC')
|
->orderBy('n.date', 'DESC')
|
||||||
->where('n.title LIKE :query')
|
->where('n.title LIKE :query')
|
||||||
->orWhere('n.passage LIKE :query')
|
->orWhere('n.passage LIKE :query')
|
||||||
|
->orWhere('n.text LIKE :query')
|
||||||
->andWhere('n.user = :user')
|
->andWhere('n.user = :user')
|
||||||
->setParameter('query', "%{$query}%")
|
->setParameter('query', "%{$query}%")
|
||||||
->setParameter('user', $userId)
|
->setParameter('user', $userId)
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<!-- Search -->
|
<!-- Search -->
|
||||||
{% if app.user %}
|
{% if app.user %}
|
||||||
<section id="search" class="alt">
|
<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>
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user