Sha256: 9a07de0f8e1ce50a395abe07e1731070ee090036a327e42404dfb270f16bca84

Contents?: true

Size: 1.24 KB

Versions: 20

Compression:

Stored size: 1.24 KB

Contents

- if nested_table_field.display_type == :table
  tr.nested-fields
    td.item-delete-cell
      - if nested_table_field.is_deletable.call(f.object)
        = link_to_remove_association "", f, class: 'fa-regular fa-trash-can btn-ghost'
    - nested_table_field.fields.each do |field|
      td data-field-type="#{field.input_type}"
        = input_field_for_column(f, field)
- else
  .form-card.nested-fields
    .card-body
      .card-item data-card-name=assoc_name
        - if nested_table_field.is_deletable.call(f.object)
          .card-title-wrapper
            h6.card-title
              | Title 1
            .card-delete
              = link_to_remove_association "", f, class: 'fa-regular fa-trash-can btn-ghost'
        div
          - nested_table_field.fields.each do |field|
            .form-field
              .field-label-wrapper
                label.field-label = field.field_name.to_s.titleize 
              .field-input-wrapper
                = input_field_for_column(f, field)
      - if nested_table_field.associated_fields.present?
        - nested_table_field.associated_fields.each do |associated_nested_field|
          = render partial: '/cm_admin/main/nested_table_form', locals: { f: f, nested_table_field: associated_nested_field }

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
cm-admin-1.5.33 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.32 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.31 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.30 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.29 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.28 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.10 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.27 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.26 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.25 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.23 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.22 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.21 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.20 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.11 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.9 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.8 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.7 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.6 app/views/cm_admin/main/_nested_fields.html.slim
cm-admin-1.5.1 app/views/cm_admin/main/_nested_fields.html.slim