Sha256: 24c3309bf7d837f2a6ed3b4e062b1af0c03b6386400b734dcf154bdd95661846

Contents?: true

Size: 436 Bytes

Versions: 22

Compression:

Stored size: 436 Bytes

Contents

<% if options[:formtastic] -%>
- form.inputs do
<% attributes.each do |attribute| -%>
  = form.input :<%= attribute.name %>, :label => '<%= attribute.name.humanize %>'
<% end -%>
<% else -%>
%fieldset
  %dl
<% attributes.each do |attribute| -%>
    %dt.label= form.label :<%= attribute.name %>, '<%= attribute.name.humanize %>'
    %dd.<%= attribute.name %>= form.<%= attribute.field_type %> :<%= attribute.name %>
<% end -%>
<% end -%>

Version data entries

22 entries across 22 versions & 6 rubygems

Version Path
blakechambers-dry_scaffold-0.3.6 generators/dry_scaffold/templates/views/haml/_form.html.haml
michel-dry_scaffold-0.3.5 generators/dry_scaffold/templates/views/haml/_form.html.haml