Sha256: 78bcfa84215ca763136b82cb6b0f2bfb9308b554b9c4923a972237b7d2d64538

Contents?: true

Size: 407 Bytes

Versions: 35

Compression:

Stored size: 407 Bytes

Contents

.repeater-field{ class: ('error' if f.object.errors[field.name].present?) }
  %table
    %tbody
      = f.fields_for field.name, field.value do |s|
        - field.fields.each do |key, sub_field|
          %tr
            %th= s.label sub_field.name, sub_field.label
            %td= render_field sub_field, s

- if f.object.errors[field.name].present?
  %small.error= f.object.errors[field.name].join(', ')

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
push_type_admin-0.9.0.beta.3 app/views/push_type/fields/_structure.html.haml
push_type_admin-0.9.0.beta.2 app/views/push_type/fields/_structure.html.haml
push_type_admin-0.8.2 app/views/push_type/fields/_structure.html.haml
push_type_admin-0.8.1 app/views/push_type/fields/_structure.html.haml
push_type_admin-0.8.0 app/views/push_type/fields/_structure.html.haml
push_type_admin-0.8.0.beta.3 app/views/push_type/fields/_structure.html.haml
push_type_admin-0.8.0.beta.2 app/views/push_type/fields/_structure.html.haml
push_type_admin-0.8.0.beta.1 app/views/push_type/fields/_structure.html.haml
push_type_admin-0.7.0 app/views/push_type/fields/_structure.html.haml
push_type_admin-0.7.0.beta.1 app/views/push_type/fields/_structure.html.haml
push_type_admin-0.6.0 app/views/push_type/fields/_structure.html.haml
push_type_admin-0.6.0.beta.4 app/views/push_type/fields/_structure.html.haml
push_type_admin-0.6.0.beta.3 app/views/push_type/fields/_structure.html.haml
push_type_admin-0.6.0.beta.2 app/views/push_type/fields/_structure.html.haml
push_type_admin-0.6.0.beta.1 app/views/push_type/fields/_structure.html.haml