5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 10:46:22 +00:00

fix: algunos ajustes estéticos #13586

This commit is contained in:
maki 2024-05-02 10:33:50 -03:00
parent cac98af8da
commit 1d1d0cde45
2 changed files with 14 additions and 12 deletions

View file

@ -7,7 +7,9 @@
= 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}
%form{method: :get}
.border.border-magenta.p-1
- @filter_params.each do |param, values|
- next if param == :layout
- [values].flatten.each do |value|
@ -16,7 +18,7 @@
- @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) }
%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

View file

@ -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