Skip to content
Snippets Groups Projects
Commit 0d91637c authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#274 - added placeholder text

parent 18b13f22
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,6 @@ public class SearchController extends BaseController ...@@ -31,7 +31,6 @@ public class SearchController extends BaseController
@RequestMapping(value = "/search", method = RequestMethod.POST) @RequestMapping(value = "/search", method = RequestMethod.POST)
public String search(Model model, @ModelAttribute("NewSearch") Search search) public String search(Model model, @ModelAttribute("NewSearch") Search search)
{ {
System.out.println(search);
Specification<Transaction> specification = TransactionSearchSpecifications.withDynamicQuery(search); Specification<Transaction> specification = TransactionSearchSpecifications.withDynamicQuery(search);
List<Transaction> transactions = transactionService.getRepository().findAll(specification); List<Transaction> transactions = transactionService.getRepository().findAll(specification);
model.addAttribute("transactions", transactions); model.addAttribute("transactions", transactions);
......
...@@ -210,6 +210,7 @@ datepicker.button.confirm= ...@@ -210,6 +210,7 @@ datepicker.button.confirm=
search=Suche search=Suche
search.submit=Suchen search.submit=Suchen
search.placeholder=Keine passenden Buchungen gefunden
search.in.name=Name search.in.name=Name
search.in.description=Beschreibung search.in.description=Beschreibung
search.in.category=Kategorie search.in.category=Kategorie
......
...@@ -211,6 +211,7 @@ datepicker.button.confirm=Apply ...@@ -211,6 +211,7 @@ datepicker.button.confirm=Apply
search=Search search=Search
search.submit=Search search.submit=Search
search.placeholder=No matching transactions found
search.in.name=Name search.in.name=Name
search.in.description=Description search.in.description=Description
search.in.category=Category search.in.category=Category
......
...@@ -112,6 +112,16 @@ ...@@ -112,6 +112,16 @@
</div> </div>
</div> </div>
</#list> </#list>
<#-- placeholder -->
<#if transactions?size == 0>
<div class="row">
<div class="col s12">
<br><br>
<div class="headline-advice center-align">${locale.getString("search.placeholder")}</div>
</div>
</div>
</#if>
</div> </div>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment