From 051e40f64bc876a9bef335743451b3d489da5c3b Mon Sep 17 00:00:00 2001 From: f Date: Fri, 7 May 2021 17:31:50 -0300 Subject: [PATCH] el formulario de busqueda tiene que incorporar los filtros MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit para poder volverlos a enviar. me habĂ­a olvidado de convertirlos en campos ocultos. --- app/views/posts/index.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index 11e6efcb..8fcb86b5 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -50,12 +50,12 @@ %form - @filter_params.each do |param, value| - 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 %input.form-control.border.border-magenta{ type: 'search', placeholder: 'Buscar', name: 'q', value: @q } %input.sr-only{ type: 'submit' } - - if @site.locales.size > 1 + - if @site.locales.size > 1 %nav#locales - @site.locales.each do |locale| = link_to t("locales.#{locale}.name"), site_posts_path(@site, **@filter_params.merge(locale: locale)),