Sha256: 35abc6e213efcadb1031e0efe2e1a37851aa4218cc290a7257e6afb0756c052c

Contents?: true

Size: 1.64 KB

Versions: 13

Compression:

Stored size: 1.64 KB

Contents

- if form.object.present? && form.object.errors.messages[collection].present?
  div.invalid-feedback
    = form.object.errors.full_messages_for(collection).join(', ')

- if template_object
  template data-satis-fields-for-target='template'
    = form.rails_fields_for collection, template_object, child_index: 'TEMPLATE' do |nested_form|
      .nested-fields.template.py-2
        = nested_form.input :id, as: :hidden
        = nested_form.input :_destroy, as: :hidden
        .grid.grid-cols-12.gap-4
          .col-span-11.fields
            = yield(nested_form)
          .col-span-1.flex.justify-center.items-center.association
            .h-full.w-1.border-r.border-dashed.dark:border-gray-700
            a.text-primary-600.nested-fields_action href="#" data-action='click->satis-fields-for#addAssociation'
              i.fal.fa-plus
          .hidden.col-span-1.flex.justify-center.items-center.association
            .h-full.w-1.border-r.border-dashed.dark:border-gray-700
            a.text-primary-600.nested-fields_action href="#" data-action='click->satis-fields-for#removeAssociation'
              i.fal.fa-trash

= form.rails_fields_for collection do |nested_form|
  .nested-fields.py-2
    = nested_form.input :id, as: :hidden
    = nested_form.input :_destroy, as: :hidden
    .grid.grid-cols-12.gap-4
      .col-span-11
        = yield(nested_form)
      .col-span-1.flex.justify-center.items-center
        .h-full.w-1.border-r.border-dashed.dark:border-gray-700
        a.text-primary-600.nested-fields_action href="#" data-action='click->satis-fields-for#removeAssociation'
          i.fal.fa-trash

span data-satis-fields-for-target='insertionPoint'

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
satis-2.1.11 app/views/shared/_fields_for.html.slim
satis-2.1.10 app/views/shared/_fields_for.html.slim
satis-2.1.9 app/views/shared/_fields_for.html.slim
satis-2.1.8 app/views/shared/_fields_for.html.slim
satis-2.1.6 app/views/shared/_fields_for.html.slim
satis-2.1.5 app/views/shared/_fields_for.html.slim
satis-2.1.4 app/views/shared/_fields_for.html.slim
satis-2.1.3 app/views/shared/_fields_for.html.slim
satis-2.1.1 app/views/shared/_fields_for.html.slim
satis-2.1.0 app/views/shared/_fields_for.html.slim
satis-2.0.9 app/views/shared/_fields_for.html.slim
satis-2.0.8 app/views/shared/_fields_for.html.slim
satis-2.0.7 app/views/shared/_fields_for.html.slim