Sha256: 00bbccf6be25c245c8336a2837c0fbdab7e665ba6eeddd5b87968e7a18f4ba00
Contents?: true
Size: 1.89 KB
Versions: 17
Compression:
Stored size: 1.89 KB
Contents
- content_for(:title, @clase_modelo.nombre_plural) - content_for :actions do button.btn.btn-sm.btn-primary[type="button" data-bs-toggle="collapse" data-bs-target="#filtros" aria-expanded="false" aria-controls="filtros"] span.bi.bi-funnel-fill span.d-none.d-sm-inline Filtrar .ms-1 = @clase_modelo.new.decorate.new_link .ms-1 = @clase_modelo.new.decorate.export_link(request.url) / TODO: update .collapse.p-2.border-bottom#filtros class="#{ 'show' if show_filters? }" .d-flex.align-items-center .px-2.d-none.d-sm-inline-block span.bi.bi-funnel-fill = form_tag nil, class: '', method: :get do .row.g-1 = @filtros.filtros_html .col-auto = button_tag class: 'btn btn-sm btn-primary col-auto' do span.bi.bi-search .col-auto = link_to <%= plural_route_name %>_path(mostrar_filtros: true), class: 'btn btn-sm btn-secondary col-auto' do | Limpiar div - if @collection.any? .table-responsive table.table.table-sm.listado.xpg-revert-width.xborder-end caption.ps-3 = page_entries_info @collection thead.table-light tr - atributos_para_listar.each do |att| th = encabezado att, ordenable: true th tbody - @collection.each do |object| - object = object.decorate tr id="#{dom_id(object)}" - atributos_para_listar.each do |att| th = object.send(att) td.text-nowrap.text-end.ps-5 .actions-wrapper = object.show_link = object.edit_link(text: '', klass: 'btn-light') = object.destroy_link .ps-3.justify-content-center = paginate(@collection) - else p.m-3 No hay #{@clase_modelo.nombre_plural.downcase} que mostrar
Version data entries
17 entries across 17 versions & 1 rubygems