]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/search_form.html.twig
Added translations and currentRoute parameter
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / material / Entry / search_form.html.twig
index 9b8ac86d951f76421b0ca954cbff7480154aa00a..f25de94d1cd3b5321452decf7fcce8532ff8e8c5 100644 (file)
@@ -1,5 +1,4 @@
-<form name="search
-" method="GET" action="{{ path('search')}}">
+<form name="search" method="GET" action="{{ path('search')}}">
     {% if form_errors(form) %}
         <span class="black-text">{{ form_errors(form) }}</span>
     {% endif %}
@@ -8,6 +7,8 @@
         <span class="black-text">{{ form_errors(form.term) }}</span>
     {% endif %}
 
+    <input type="hidden" name="currentRoute" value="{{ currentRoute }}" />
+
     {{ form_widget(form.term, { 'attr': {'autocomplete': 'off', 'placeholder': 'entry.search.placeholder'} }) }}
 
     {{ form_rest(form) }}