diff --git a/app/views/shared/_invite_users_modal.html.erb b/app/views/shared/_invite_users_modal.html.erb index ee1ae6368..df478c844 100644 --- a/app/views/shared/_invite_users_modal.html.erb +++ b/app/views/shared/_invite_users_modal.html.erb @@ -16,6 +16,12 @@ # * 'invite_with_org_selector_and_role' => params: role # * organization: invite users to the specified organization # * role: all users are invited as the specified role +# * (optional) text_title: custom title text for modal +# * (optional) text_invite_heading: custom invite heading text for modal +%> +<% +text_title ||= nil +text_invite_heading ||= nil %>
- <% if type.in?(['invite_to_org', 'invite_to_org_with_role']) %> - <%= t('invite_users.to_org.heading', organization: organization.name) %> + <% if text_invite_heading %> + <%= text_invite_heading %> <% else %> - <%= t('invite_users.no_org.heading') %> + <% if type.in?(['invite_to_org', 'invite_to_org_with_role']) %> + <%= t('invite_users.to_org.heading', organization: organization.name) %> + <% else %> + <%= t('invite_users.no_org.heading') %> + <% end %> <% end %>