Sha256: 0dbd05f9d6d6b30643d8673f38f7ef15a3d205f3857b0869579d321b8c7b649b

Contents?: true

Size: 559 Bytes

Versions: 11

Compression:

Stored size: 559 Bytes

Contents

= effective_form_with(model: [:admin, mentorship_registration], engine: true) do |f|
  - # Admin only fields
  = f.select :mentorship_cycle_id, Effective::MentorshipCycle.sorted.all

  - if inline_datatable?
    = f.hidden_field :user_id
  - else
    - ajax_url = (effective_resources.users_effective_ajax_index_path) unless Rails.env.test?
    = f.select :user_id, current_user.class.all, label: 'User', ajax_url: ajax_url

  - # Same fields user sees
  = render('effective/mentorship_registrations/fields', f: f, namespace: :admin)

  = effective_submit(f)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
effective_mentorships-0.3.4 app/views/admin/mentorship_registrations/_form_mentorship_registration.html.haml
effective_mentorships-0.3.3 app/views/admin/mentorship_registrations/_form_mentorship_registration.html.haml
effective_mentorships-0.3.2 app/views/admin/mentorship_registrations/_form_mentorship_registration.html.haml
effective_mentorships-0.3.1 app/views/admin/mentorship_registrations/_form_mentorship_registration.html.haml
effective_mentorships-0.3.0 app/views/admin/mentorship_registrations/_form_mentorship_registration.html.haml
effective_mentorships-0.2.4 app/views/admin/mentorship_registrations/_form_mentorship_registration.html.haml
effective_mentorships-0.2.3 app/views/admin/mentorship_registrations/_form_mentorship_registration.html.haml
effective_mentorships-0.2.2 app/views/admin/mentorship_registrations/_form_mentorship_registration.html.haml
effective_mentorships-0.2.1 app/views/admin/mentorship_registrations/_form_mentorship_registration.html.haml
effective_mentorships-0.2.0 app/views/admin/mentorship_registrations/_form_mentorship_registration.html.haml
effective_mentorships-0.1.0 app/views/admin/mentorship_registrations/_form_mentorship_registration.html.haml