el formulario de busqueda tiene que incorporar los filtros
para poder volverlos a enviar. me había olvidado de convertirlos en campos ocultos.
This commit is contained in:
parent
418ffb8463
commit
051e40f64b
1 changed files with 2 additions and 2 deletions
|
@ -50,12 +50,12 @@
|
||||||
%form
|
%form
|
||||||
- @filter_params.each do |param, value|
|
- @filter_params.each do |param, value|
|
||||||
- next if param == 'q'
|
- next if param == 'q'
|
||||||
%input{ type: 'input', name: param, value: value }
|
%input{ type: 'hidden', name: param, value: value }
|
||||||
.form-group.flex-grow-0.m-0
|
.form-group.flex-grow-0.m-0
|
||||||
%input.form-control.border.border-magenta{ type: 'search', placeholder: 'Buscar', name: 'q', value: @q }
|
%input.form-control.border.border-magenta{ type: 'search', placeholder: 'Buscar', name: 'q', value: @q }
|
||||||
%input.sr-only{ type: 'submit' }
|
%input.sr-only{ type: 'submit' }
|
||||||
- if @site.locales.size > 1
|
|
||||||
|
|
||||||
|
- if @site.locales.size > 1
|
||||||
%nav#locales
|
%nav#locales
|
||||||
- @site.locales.each do |locale|
|
- @site.locales.each do |locale|
|
||||||
= link_to t("locales.#{locale}.name"), site_posts_path(@site, **@filter_params.merge(locale: locale)),
|
= link_to t("locales.#{locale}.name"), site_posts_path(@site, **@filter_params.merge(locale: locale)),
|
||||||
|
|
Loading…
Reference in a new issue