Sha256: ce14f148232b52ce6f2448df986d00919a541015a61c0acd5095a2d48bb6701b

Contents?: true

Size: 479 Bytes

Versions: 5

Compression:

Stored size: 479 Bytes

Contents

- @resource.class.resource_field_groups.select{ |x| x.editable }.each do |rfg|
  %h3= resource_field_group_label(@resource.class, rfg.key) unless rfg.key == :default
  - rfg.sections.each do |section|
    .row
      - section.fields.each do |field|
        %div{ class: section.column_class }
          - if field.type == :association
            = @f.association field.sym, disabled: !field.editable
          - else 
            = @f.input field.sym, disabled: !field.editable

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
five-two-nw-olivander-0.1.2.22 app/components/olivander/components/resource_form_component.html.haml
five-two-nw-olivander-0.1.2.21 app/components/olivander/components/resource_form_component.html.haml
five-two-nw-olivander-0.1.2.20 app/components/olivander/components/resource_form_component.html.haml
five-two-nw-olivander-0.1.2.19 app/components/olivander/components/resource_form_component.html.haml
five-two-nw-olivander-0.1.2.18 app/components/olivander/components/resource_form_component.html.haml