Sha256: f0b05f1581e3b7b29bb401f9fcabc58ed3a2be02d5da128848e4b3b5e394b22d

Contents?: true

Size: 1.79 KB

Versions: 6

Compression:

Stored size: 1.79 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)
.collapse.p-2.border-bottom#filtros class="#{ 'show' if any_filter? }"
  .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 namespaced_path(@clase_modelo),
                    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|
                td = object.send(att)
              td.text-nowrap.text-end.ps-5
                = object.show_link
                = object.edit_link
                = 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

6 entries across 6 versions & 1 rubygems

Version Path
pg_rails-7.0.8.pre.alpha pg_engine/app/views/pg_engine/base/index.html.slim
pg_rails-7.0.7 pg_engine/app/views/pg_engine/base/index.html.slim
pg_rails-7.0.6 pg_engine/app/views/pg_engine/base/index.html.slim
pg_rails-7.0.5 pg_engine/app/views/pg_engine/base/index.html.slim
pg_rails-7.0.4 pg_engine/app/views/pg_engine/base/index.html.slim
pg_rails-7.0.3 pg_engine/app/views/pg_engine/base/index.html.slim