Sha256: c1c665989d68e400c99113edeb29764aa7315a76c5932bfb1636820328a62ba1

Contents?: true

Size: 907 Bytes

Versions: 7

Compression:

Stored size: 907 Bytes

Contents

- mentorship_cycle = mentorship_registration.mentorship_cycle
- raise('expected a mentorship cycle') unless mentorship_cycle.present?

- url = (mentorship_registration.persisted? ? effective_mentorships.mentorship_cycle_mentorship_registration_path(mentorship_cycle, mentorship_registration) : effective_mentorships.mentorship_cycle_mentorship_registrations_path(mentorship_cycle, mentorship_registration))

%h1= et('effective_mentorships.name')

- if mentorship_registration.persisted? && mentorship_registration.opt_in?
  - if mentorship_registration.mentorship_cycle.rich_text_group_content.present?
    = card do
      = mentorship_registration.mentorship_cycle.rich_text_group_content

= card do
  = effective_form_with(model: mentorship_registration, url: url) do |f|
    = f.hidden_field :user_id, value: current_user.id
    = render('effective/mentorship_registrations/fields', f: f)
    = f.submit

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
effective_mentorships-0.3.4 app/views/effective/mentorship_registrations/_form.html.haml
effective_mentorships-0.3.3 app/views/effective/mentorship_registrations/_form.html.haml
effective_mentorships-0.3.2 app/views/effective/mentorship_registrations/_form.html.haml
effective_mentorships-0.3.1 app/views/effective/mentorship_registrations/_form.html.haml
effective_mentorships-0.3.0 app/views/effective/mentorship_registrations/_form.html.haml
effective_mentorships-0.2.4 app/views/effective/mentorship_registrations/_form.html.haml
effective_mentorships-0.2.3 app/views/effective/mentorship_registrations/_form.html.haml