Sha256: ae33ac1b49c06db638bcace8cc20303623d80218ac88785187f5ca265131939d

Contents?: true

Size: 473 Bytes

Versions: 8

Compression:

Stored size: 473 Bytes

Contents

.card-info 
  p.card-info__label = table_name.to_s.titleize
  .card-info__description
    - associated_records = @ar_object.send(table_name)
    table.nested-table
      thead
        tr
          - table_fields.each do |field|
            th scope="col"
              = field.label
      tbody
        - associated_records.each do |record|
          tr
            - table_fields.each do |field|
              td
                = record.send(field.field_name)
          

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cm-admin-1.2.7 app/views/cm_admin/main/_nested_table_section.html.slim
cm-admin-1.2.6 app/views/cm_admin/main/_nested_table_section.html.slim
cm-admin-1.2.5 app/views/cm_admin/main/_nested_table_section.html.slim
cm-admin-1.2.4 app/views/cm_admin/main/_nested_table_section.html.slim
cm-admin-1.2.3 app/views/cm_admin/main/_nested_table_section.html.slim
cm-admin-1.2.2 app/views/cm_admin/main/_nested_table_section.html.slim
cm-admin-1.2.1 app/views/cm_admin/main/_nested_table_section.html.slim
cm-admin-1.2.0 app/views/cm_admin/main/_nested_table_section.html.slim