Sha256: 0ccef96af845b33780522a8e7cab00e5e611d883153a3937b9bf405d4e95044a

Contents?: true

Size: 249 Bytes

Versions: 8

Compression:

Stored size: 249 Bytes

Contents

- if form.object.new_record?
  = form.select "line_item_type", Piggybak::LineItem.line_item_type_select, {}, :onchange => "piggybak_rails_admin.toggle_line_item($(this));"
- else
  = form.hidden_field "line_item_type"
  = form.object.line_item_type

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
piggybak-0.7.7 app/views/rails_admin/main/_polymorphic_nested.html.haml
piggybak-0.7.6 app/views/rails_admin/main/_polymorphic_nested.html.haml
piggybak-0.7.5 app/views/rails_admin/main/_polymorphic_nested.html.haml
piggybak-0.7.4 app/views/rails_admin/main/_polymorphic_nested.html.haml
piggybak-0.7.3 app/views/rails_admin/main/_polymorphic_nested.html.haml
piggybak-0.7.2 app/views/rails_admin/main/_polymorphic_nested.html.haml
piggybak-0.7.1 app/views/rails_admin/main/_polymorphic_nested.html.haml
piggybak-0.7.0 app/views/rails_admin/main/_polymorphic_nested.html.haml