Sha256: fb7d7f4a1ada5d56a9991bbb528870ca9c51533d93046f08739777178c594946

Contents?: true

Size: 647 Bytes

Versions: 7

Compression:

Stored size: 647 Bytes

Contents

- # Choose ANY member
- klass = (f.object.user || current_user).class
- ajax_url = (@select2_users_ajax_path || effective_memberships.member_users_membership_select2_ajax_index_path) unless Rails.env.test?

= f.hidden_field :user_type, value: klass.name
= f.select :user_id, klass.all, ajax_url: ajax_url, label: 'Member', required: true, hint: effective_events_event_registrant_user_hint()

- # Choose RELATED ORGANIZATION member
-# = f.hidden_field :user_type, value: current_user.class.name
-# = f.select :user_id, effective_events_event_registrant_user_collection(f.object), required: true, hint: effective_events_event_registrant_user_hint()

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
effective_events-0.19.2 app/views/effective/event_registrants/_fields_member_only.html.haml
effective_events-0.19.1 app/views/effective/event_registrants/_fields_member_only.html.haml
effective_events-0.19.0 app/views/effective/event_registrants/_fields_member_only.html.haml
effective_events-0.18.2 app/views/effective/event_registrants/_fields_member_only.html.haml
effective_events-0.18.1 app/views/effective/event_registrants/_fields_member_only.html.haml
effective_events-0.18.0 app/views/effective/event_registrants/_fields_member_only.html.haml
effective_events-0.17.0 app/views/effective/event_registrants/_fields_member_only.html.haml