Sha256: 67830a1403e307e9ebaf22398f0cd4a2a5328605daa6d9909fff5eadcbce0b92
Contents?: true
Size: 692 Bytes
Versions: 12
Compression:
Stored size: 692 Bytes
Contents
<% @type.attributes.each do |attribute| -%> .control-group = f.label :<%= attribute.field_name %>, class: 'control-label' <% if attribute.orderable? -%> .controls = f.<%= attribute.form_type %> :<%= attribute.name %>, 1.upto(f.object.order_scope.count + 1).to_a <% elsif attribute.reference? -%> .controls = f.<%= attribute.form_type %> :<%= attribute.field_name %>, CMS::<%= attribute.reference_to %>.all.collect {|r| [ r.<%= attribute.options['reference_label'] %>, r.id ] } <% else -%> .controls = f.<%= attribute.form_type %> :<%= attribute.name %> <% end -%> <% end -%> .form-actions = f.submit 'Save', class: 'btn btn-primary', :'data-disable-with' => 'Saving...'
Version data entries
12 entries across 12 versions & 1 rubygems