Sha256: 1dedd19c1dcfe3d408ee3ba04d52000c3701d78874e94b371c89ee5486f8ec1a
Contents?: true
Size: 656 Bytes
Versions: 28
Compression:
Stored size: 656 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 } - case field.type - when :association = @f.association field.sym, disabled: !field.editable, input_html: { data: { controller: "input-control-#{field.type}" } } - else = @f.input field.sym, disabled: !field.editable, as: field.type.to_sym, input_html: { data: { controller: "input-control-#{field.type}" } }
Version data entries
28 entries across 28 versions & 1 rubygems