diff --git a/resources/twig/search/index.twig b/resources/twig/search/index.twig new file mode 100644 index 0000000000..a4783911cc --- /dev/null +++ b/resources/twig/search/index.twig @@ -0,0 +1,106 @@ +{% extends "./layout/default.twig" %} +{% block content %} + {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, query) }} +{% if query %} +
+ {% if result.transactions|length > 0 %} +
+
+
+ Transactions ({ result.transactions|length }}) +
+
+ {% include 'list/journals-tiny' with {'transactions' : result.transactions} %} +
+
+
+ {% endif %} + {% if result.categories|length > 0 %} +
+
+
+ Categories ({{result['categories'].count()}}) +
+
+
+ {% for category in result.categories %} + + {{ category.name }} + + {% endfor %} +
+
+
+
+ {% endif %} + {% if result.tags|length > 0 %} +
+
+
+ Tags ({{result['tags'].count()}}) +
+
+

Bla bla

+
+
+
+ {% endif %} + {% if result.accounts|length > 0 %} +
+
+
+ Accounts ({{result['accounts'].count()}}) +
+
+
+ {% for account in result.accounts %} + + {{ account.name }} + + {% endfor %} +
+
+
+
+ {% endif %} + {% if result.budgets|length > 0 %} +
+
+
+ Budgets ({{result['budgets'].count()}}) +
+
+
+ {% for budget in result.budgets %} + + {{ budget.name }} + + {% endfor %} +
+
+
+
+ {% endif %} + +
+{% endif %} + + + +{% endblock %} +{% block scripts %} + +{% endblock %} \ No newline at end of file