mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 10:36:22 +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 '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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue