Sha256: f7336bee132a57282680ca7f1ab91bdb4e478ded966b3d46f67e77ee35fdbb56
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
/ # locals: (collection:, query:, timeout_id:, count:, field_name: nil) .resultados.inline tabindex="-1" div data-controller="clear-timeout" data-timeout-id="#{timeout_id}" ul.list-group.list-group-flush - if count.positive? .text-center.fst-italic style="font-size:0.7em" | #{count} resultados para "#{query}" - collection.each do |object| = link_to object.to_s, 'javascript:void(0)', class: 'list-group-item', data: { action: 'asociable#selectItem', id: object.id, object: object.decorate.to_json, field_name: } - else li [class="list-group-item text-center text-warning-emphasis py-2" style="font-size: 0.85em"] | No hay resultados para "#{query}" - if policy(clase_modelo).new_from_associable? / TODO: unificar código repetido en asociable_controller.js a [key="new" href="javascript:void(0)" class="list-group-item mt-3 text-center" data-action="asociable#crearItem"] i class="bi bi-stars" | = clase_modelo.new.decorate.text_for_new
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pg_rails-7.6.9 | pg_associable/app/views/pg_associable/_resultados_inline.html.slim |