5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 23:16:22 +00:00

feat: tildar los filtros actuales

This commit is contained in:
f 2024-04-29 14:08:20 -03:00
parent da758ae457
commit cac98af8da
No known key found for this signature in database

View file

@ -13,12 +13,10 @@
- [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 }
%legend.font-weight-bold.m-0.h6= 'Tipo de contenido' %legend.font-weight-bold.m-0.h6= 'Tipo de contenido'
- @site.schema_organization.each do |key, _|
- @site.schema_organization.each do |schema, _|
.custom-control.custom-checkbox .custom-control.custom-checkbox
- schema = @site.layouts[schema] - schema = @site.layouts[key]
%input.custom-control-input.magenta{ type: 'checkbox', id: schema, name: "layout[]", class: "", value: schema.name } %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