implements the preview of search

This commit is contained in:
2016-08-19 21:36:35 +02:00
parent 52fb5f56be
commit f442bf54b7
3 changed files with 41 additions and 4 deletions

View File

@@ -18,6 +18,8 @@
<p>{{ '%total% persons matching the search %pattern%'|transchoice( total, {'%pattern%': pattern, '%total%' : total}) }}</p>
<p>{{ 'Results %start%-%end% of %total%'|trans({ '%start%' : start, '%end%': start + persons|length, '%total%' : total } ) }}</p>
{% if persons|length > 0 %}
<table>
@@ -55,4 +57,20 @@
{% endfor %}
</tbody>
</table>
<ul class="record_actions">
<li>
<a href="{{ path('chill_person_new') }}" class="sc-button btn-create">
{{ 'Add a person'|trans }}
</a>
</li>
{% if preview == true and persons|length < total %}
<li>
<a href="{{ path('chill_main_search', { "name": search_name, "q" : pattern }) }}" class="sc-button">
{{ 'See all results'|trans }}
</a>
</li>
{% endif %}
</ul>
{% endif %}