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