Sha256: d847fcce77214893782e2afe1a8f27313cf536d8786ad52069dacce781e8727a

Contents?: true

Size: 420 Bytes

Versions: 12

Compression:

Stored size: 420 Bytes

Contents

= effective_form_with(model: [:admin, event_addon], engine: true) do |f|
  = f.hidden_field :event_id

  - if f.object.new_record?
    = f.select :owner, { 'Users' => current_user.class.all }, polymorphic: true
  - else
    = f.static_field :owner

  = render 'effective/event_addons/fields', f: f, event: event_addon.event

  - if f.object.new_record?
    = f.submit 'Save and Mark Paid'
  - else
    = f.submit 'Save'

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
effective_events-0.2.8 app/views/admin/event_addons/_form.html.haml
effective_events-0.2.7 app/views/admin/event_addons/_form.html.haml
effective_events-0.2.6 app/views/admin/event_addons/_form.html.haml
effective_events-0.2.5 app/views/admin/event_addons/_form.html.haml
effective_events-0.2.4 app/views/admin/event_addons/_form.html.haml
effective_events-0.2.3 app/views/admin/event_addons/_form.html.haml
effective_events-0.2.2 app/views/admin/event_addons/_form.html.haml
effective_events-0.2.1 app/views/admin/event_addons/_form.html.haml
effective_events-0.2.0 app/views/admin/event_addons/_form.html.haml
effective_events-0.1.10 app/views/admin/event_addons/_form.html.haml
effective_events-0.1.9 app/views/admin/event_addons/_form.html.haml
effective_events-0.1.8 app/views/admin/event_addons/_form.html.haml