diff --git a/app/views/users/mailer/invitation_instructions.html.erb b/app/views/users/mailer/invitation_instructions.html.erb index 5367fb0f52..395e935b50 100644 --- a/app/views/users/mailer/invitation_instructions.html.erb +++ b/app/views/users/mailer/invitation_instructions.html.erb @@ -341,10 +341,20 @@
- Hi there! - -Your request has been approved and you're invited to become an user of the Human Essentials inventory management system! -Please, click the button below to accept this invitation and create a password to access your account. + <% organization = @resource.partner&.organization %> + <% is_primary_partner = @resource.id == @resource.partner&.primary_user&.id %> +Hello <%= @resource.email %>! + <% if @resource.partner.present? && is_primary_partner %> +You've been invited to become a partner organization with <%= organization.name %>! +Please click the link below to accept your invitation and create an account and you'll be able to begin requesting distributions. + Please contact <%= organization.email %> if you are encountering any issues. + <% elsif @resource.partner.present? && !is_primary_partner %> +You've been invited to <%= @resource.partner.name %>'s account for requesting items from <%= organization.name %>! +Please click the link below to accept your invitation and create an account and you'll be able to begin requesting distributions. + <% else %> +Your request has been approved and you're invited to become an user of the Human Essentials inventory management system! +Please, click the button below to accept this invitation and create a password to access your account. + <% end %> |