2019-05-17 08:43:03 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Groups::GroupMembersHelper
|
|
|
|
def group_member_select_options
|
2019-09-13 09:26:31 -04:00
|
|
|
{ multiple: true, class: 'input-clamp qa-member-select-field ', scope: :all, email_user: true }
|
2019-05-17 08:43:03 -04:00
|
|
|
end
|
2020-01-13 10:07:53 -05:00
|
|
|
|
|
|
|
def render_invite_member_for_group(group, default_access_level)
|
|
|
|
render 'shared/members/invite_member', submit_url: group_group_members_path(group), access_levels: GroupMember.access_level_roles, default_access_level: default_access_level
|
|
|
|
end
|
2019-05-17 08:43:03 -04:00
|
|
|
end
|
2019-09-13 09:26:31 -04:00
|
|
|
|
|
|
|
Groups::GroupMembersHelper.prepend_if_ee('EE::Groups::GroupMembersHelper')
|