From a188984edeb3e8c0831774e9b2355eda96d526ee Mon Sep 17 00:00:00 2001 From: Luka Murn Date: Sun, 6 Nov 2016 11:37:53 +0100 Subject: [PATCH] Allow strings of modal to be replaced --- app/views/shared/_invite_users_modal.html.erb | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) 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 %> @@ -48,10 +58,14 @@