Sha256: 22fc38cc8794916ef482f6c6a9ef76f93f45dde960965447a0b415e08013223f
Contents?: true
Size: 815 Bytes
Versions: 1
Compression:
Stored size: 815 Bytes
Contents
.row .small-12.columns = form_for @legend do |f| / = f.hidden_field :mapping_id, @mapping.id = f.label :name = f.text_field :name - @mapping.targetable_order.each do |model| %fieldset %legend= model.to_s.classify.constantize = f.fields_for model do |mf| - model.to_s.classify.constantize.targetable_attrs.each do |attribute| = mf.label attribute = mf.select attribute, @headers - model.to_s.camelize.constantize.parent_models.each do |pm| %fieldset %legend= pm.to_s.classify.constantize.targetable_attrs / - pm.to_s.classify.constantize.targetable_attrs.each do |pattr| / = pm.label pattr = f.submit "create legend", class: "button"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
buttafly-0.0.1 | app/views/buttafly/legends/new.html.haml |