mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-25 15:06:23 +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,17 +7,19 @@
|
||||||
= 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}
|
|
||||||
- @filter_params.each do |param, values|
|
%form{method: :get}
|
||||||
- next if param == :layout
|
.border.border-magenta.p-1
|
||||||
- [values].flatten.each do |value|
|
- @filter_params.each do |param, values|
|
||||||
%input{ type: 'hidden', name: values.is_a?(Array) ? "#{param}[]" : param, value: value }
|
- next if param == :layout
|
||||||
%legend.font-weight-bold.m-0.h6= 'Tipo de contenido'
|
- [values].flatten.each do |value|
|
||||||
- @site.schema_organization.each do |key, _|
|
%input{ type: 'hidden', name: values.is_a?(Array) ? "#{param}[]" : param, value: value }
|
||||||
.custom-control.custom-checkbox
|
%legend.font-weight-bold.m-0.h6= 'Tipo de contenido'
|
||||||
- schema = @site.layouts[key]
|
- @site.schema_organization.each do |key, _|
|
||||||
%input.custom-control-input.magenta{ type: 'checkbox', id: schema, name: "layout[]", class: "", value: schema.name, checked: @filter_params[:layout].include?(key.to_s) }
|
.custom-control.custom-checkbox
|
||||||
%label.custom-control-label.font-weight-normal{ for: schema }= schema.humanized_name
|
- 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')
|
%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
|
||||||
%table.table-sm.w-100
|
%table.table-sm.w-100
|
||||||
|
|
|
@ -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