app/views/devise/mailer/invitation_instructions.html.erb
<meta itemprop="name"
content="Confirm Email"
style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
<style>/* Email styles need to be inline */</style>
<table
width="100%"
cellpadding="0"
cellspacing="0"
style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
<% if @resource.is_a?(User) %>
<tr style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
<td
class="content-block"
style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;"
valign="top">
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).
</td>
</tr>
<tr style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
<td
class="content-block"
style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;"
valign="top">
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.
</td>
</tr>
<% else %>
<tr style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
<td
class="content-block"
style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;"
valign="top">
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.
</td>
</tr>
<% end %>
<tr style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
<td
class="content-block"
itemprop="handler"
itemscope
itemtype="http://schema.org/HttpActionHandler"
style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;"
valign="top">
<p><%= link_to "Set your password", accept_invitation_url(@resource, invitation_token: @token) %></p>
</td>
</tr>
<tr style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
<td class="content-block" style="font-family: Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
This invitation will expire on <%= I18n.l(@resource.invitation_due_at, format: :full, default: nil) %>
<% if @resource.is_a?(AllCasaAdmin) %>
(one week).
<% elsif @resource.is_a?(Supervisor) || @resource.is_a?(CasaAdmin) %>
(two weeks).
<% elsif @resource.is_a?(Volunteer) %>
(one year).
<% end %>
</td>
</tr>
</table>