Sha256: b211a2c50d000f22a7c039b321ac823ac636b3e097e232034f5b39932bbf9445

Contents?: true

Size: 1.66 KB

Versions: 20

Compression:

Stored size: 1.66 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.field-for-bg
        = 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.field-for-bg.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

20 entries across 20 versions & 1 rubygems

Version Path
satis-2.1.40 app/views/shared/_fields_for.html.slim
satis-2.1.39 app/views/shared/_fields_for.html.slim
satis-2.1.38 app/views/shared/_fields_for.html.slim
satis-2.1.37 app/views/shared/_fields_for.html.slim
satis-2.1.36 app/views/shared/_fields_for.html.slim
satis-2.1.35 app/views/shared/_fields_for.html.slim
satis-2.1.33 app/views/shared/_fields_for.html.slim
satis-2.1.31 app/views/shared/_fields_for.html.slim
satis-2.1.30 app/views/shared/_fields_for.html.slim
satis-2.1.29 app/views/shared/_fields_for.html.slim
satis-2.1.28 app/views/shared/_fields_for.html.slim
satis-2.1.27 app/views/shared/_fields_for.html.slim
satis-2.1.26 app/views/shared/_fields_for.html.slim
satis-2.1.24 app/views/shared/_fields_for.html.slim
satis-2.1.23 app/views/shared/_fields_for.html.slim
satis-2.1.22 app/views/shared/_fields_for.html.slim
satis-2.1.21 app/views/shared/_fields_for.html.slim
satis-2.1.20 app/views/shared/_fields_for.html.slim
satis-2.1.19 app/views/shared/_fields_for.html.slim
satis-2.1.18 app/views/shared/_fields_for.html.slim