From 1d1d0cde45112df8ebcde44dea90c7e1a1f4883d Mon Sep 17 00:00:00 2001 From: maki Date: Thu, 2 May 2024 10:33:50 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20algunos=20ajustes=20est=C3=A9ticos=20#13?= =?UTF-8?q?586?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/posts/index.haml | 24 +++++++++++++----------- app/views/sites/_header.haml | 2 +- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index 28b5aad2..eaa757f9 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -7,17 +7,19 @@ = render 'sites/build', site: @site, class: 'btn-block' = render 'layouts/details', summary: t('posts.filters.title') do - %form.border.border-magenta.p-1{method: :get} - - @filter_params.each do |param, values| - - next if param == :layout - - [values].flatten.each do |value| - %input{ type: 'hidden', name: values.is_a?(Array) ? "#{param}[]" : param, value: value } - %legend.font-weight-bold.m-0.h6= 'Tipo de contenido' - - @site.schema_organization.each do |key, _| - .custom-control.custom-checkbox - - schema = @site.layouts[key] - %input.custom-control-input.magenta{ type: 'checkbox', id: schema, name: "layout[]", class: "", value: schema.name, checked: @filter_params[:layout].include?(key.to_s) } - %label.custom-control-label.font-weight-normal{ for: schema }= schema.humanized_name + + %form{method: :get} + .border.border-magenta.p-1 + - @filter_params.each do |param, values| + - next if param == :layout + - [values].flatten.each do |value| + %input{ type: 'hidden', name: values.is_a?(Array) ? "#{param}[]" : param, value: value } + %legend.font-weight-bold.m-0.h6= 'Tipo de contenido' + - @site.schema_organization.each do |key, _| + .custom-control.custom-checkbox + - schema = @site.layouts[key] + %input.custom-control-input.magenta{ type: 'checkbox', id: schema, name: "layout[]", class: "", value: schema.name, checked: @filter_params[:layout]&.include?(key.to_s) } + %label.custom-control-label.font-weight-normal{ for: schema }= schema.humanized_name %button.btn.btn-secondary.mt-3{ type: 'submit' }= t('.filters.submit') = render 'layouts/details', summary: t('posts.new'), summary_class: "h4 magenta font-weight-bold m-0 px-2", details_class: "d-flex border border-magenta justify-content-between align-items-center w-100 mb-3", open: "+", closed: "+", open_class: "h1 magenta font-weight-bold m-0", closed_class: "h1 magenta font-weight-bold m-0" do %table.table-sm.w-100 diff --git a/app/views/sites/_header.haml b/app/views/sites/_header.haml index 779ed543..d4302d34 100644 --- a/app/views/sites/_header.haml +++ b/app/views/sites/_header.haml @@ -7,7 +7,7 @@ - [values].flatten.each do |value| %input{ type: 'hidden', name: values.is_a?(Array) ? "#{param}[]" : param, value: value } .form-group.flex-grow-0.m-0 - %label{for: 'q'}= t('posts.index.search') + %label.h3{for: 'q'}= t('posts.index.search') .input-group %input#q.form-control.border.border-magenta.border-right-0{ type: 'search', name: 'q', value: @filter_params[:q] } .input-group-append