5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 08:26:23 +00:00

feat: buscador con estilos de la refe

This commit is contained in:
maki 2024-02-29 15:17:47 -03:00
parent 9960ebd646
commit fa2ece19aa

View file

@ -1,11 +1,15 @@
.hyphens{ lang: site.default_locale } .hyphens{ lang: site.default_locale }
%h1= site.title %h1= site.title
%p.lead= site.description %p.lead= site.description
%form{ action: site_posts_path } %form.mb-3{ action: site_posts_path }
- @filter_params.each do |param, value| - @filter_params.each do |param, value|
- next if param == 'q' - next if param == 'q'
%input{ type: 'hidden', 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
%label.sr-only{for: 'q'}= t('posts.index.search') %label{for: 'q'}= t('posts.index.search')
%input#q.form-control.border.border-magenta{ type: 'search', placeholder: t('posts.index.search'), name: 'q', value: @filter_params[:q] } .input-group
%input#q.form-control.border.border-magenta.border-right-0{ type: 'search', name: 'q', value: @filter_params[:q] }
.input-group-append
%span.input-group-text.background-white.magenta.border.border-magenta.border-top.border-left-0.border-right.border-bottom
%i.fa.fa-fw.fa-search
%input.sr-only{ type: 'submit' } %input.sr-only{ type: 'submit' }