rubyforgood/casa

View on GitHub
app/views/devise/mailer/invitation_instructions.text.erb

Summary

Maintainability
Test Coverage
<% if @resource.is_a?(User) %>
  A <%= @resource.casa_org.display_name %>’s County <%= @resource.type %> console account has been created for you. This console is for logging the time you spend and actions you take on your CASA case. You can log activity with your CASA youth, their family members, their foster family or placement, the DSS worker, your Case Supervisor and others associated with your CASA case (such as teachers and therapists).

  Your console account is associated with this email. If this is not the correct email to use, please stop here and contact your Case Supervisor to change the email address. If you are ready to get started, please set your password. This is the first step to accessing your new <%= @resource.type %> account.
<% else %>
  A CASA console admin account has been created for you. Your console account is associated with this email.
  If you are ready to get started, please set your password. This is the first step to accessing your new account.
  <%= "This invitation will be due in #{I18n.l(@resource.invitation_due_at, format: :'devise.mailer.invitation_instructions.accept_until_format')}." %>
<% end %>
<%= link_to "Set your password", accept_invitation_url(@resource, invitation_token: @token) %>