mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 07:33:50 +00:00
Repeat search pattern in form above page
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
#}
|
||||
{% extends "ChillMainBundle::layout.html.twig" %}
|
||||
|
||||
{% set _search_pattern = pattern %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<p>{{ message }}</p>
|
||||
|
@@ -16,6 +16,8 @@
|
||||
#}
|
||||
{% extends "ChillMainBundle::layout.html.twig" %}
|
||||
|
||||
{% set _search_pattern = pattern %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% for result in results %}
|
||||
|
@@ -33,7 +33,7 @@
|
||||
</div>
|
||||
<div class="grid-4 navigation-search">
|
||||
<form action="{{ path('chill_main_search') }}" method="get">
|
||||
<input name="q" type="search" placeholder="{{ 'Search'|trans }}" />
|
||||
<input name="q" type="search" placeholder="{{ 'Search'|trans }}" {% if _search_pattern is defined %}value="{{ _search_pattern }}"{% endif %}/>
|
||||
<button type="submit" class="sc-button white border"><i class="fa fa-search"></i></button>
|
||||
</form>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user