mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 16:26:21 +00:00
fix: algunos ajustes estéticos #13586
This commit is contained in:
parent
cac98af8da
commit
1d1d0cde45
2 changed files with 14 additions and 12 deletions
|
@ -7,7 +7,9 @@
|
||||||
= render 'sites/build', site: @site, class: 'btn-block'
|
= render 'sites/build', site: @site, class: 'btn-block'
|
||||||
|
|
||||||
= render 'layouts/details', summary: t('posts.filters.title') do
|
= 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|
|
- @filter_params.each do |param, values|
|
||||||
- next if param == :layout
|
- next if param == :layout
|
||||||
- [values].flatten.each do |value|
|
- [values].flatten.each do |value|
|
||||||
|
@ -16,7 +18,7 @@
|
||||||
- @site.schema_organization.each do |key, _|
|
- @site.schema_organization.each do |key, _|
|
||||||
.custom-control.custom-checkbox
|
.custom-control.custom-checkbox
|
||||||
- schema = @site.layouts[key]
|
- 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
|
%label.custom-control-label.font-weight-normal{ for: schema }= schema.humanized_name
|
||||||
%button.btn.btn-secondary.mt-3{ type: 'submit' }= t('.filters.submit')
|
%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
|
= 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
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
- [values].flatten.each do |value|
|
- [values].flatten.each do |value|
|
||||||
%input{ type: 'hidden', name: values.is_a?(Array) ? "#{param}[]" : param, value: value }
|
%input{ type: 'hidden', name: values.is_a?(Array) ? "#{param}[]" : param, value: value }
|
||||||
.form-group.flex-grow-0.m-0
|
.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-group
|
||||||
%input#q.form-control.border.border-magenta.border-right-0{ type: 'search', name: 'q', value: @filter_params[:q] }
|
%input#q.form-control.border.border-magenta.border-right-0{ type: 'search', name: 'q', value: @filter_params[:q] }
|
||||||
.input-group-append
|
.input-group-append
|
||||||
|
|
Loading…
Reference in a new issue