Refactored reminder layout stuff into layout view

This commit is contained in:
Derek Montgomery 2016-08-18 16:35:37 -05:00 committed by Mark Moser
parent 23bf29d948
commit 4743cd48f9
2 changed files with 56 additions and 61 deletions

View File

@ -1,58 +1,16 @@
<container class="email-container">
<row>
<columns class="email-heading">
<span class="prft-slash">/</span> <span class="email-title">Skills Assessment Test</span>
</columns>
</row>
<row>
<columns class="email-body">
<p>Dear <strong><%= @candidate.name %></strong>,</p>
<p>
Thank you for taking the Skills Assessment Test. However, it looks like you have not submitted it
yet. If you are having trouble, please reach out to your recruiter:
<%= mail_to @candidate.recruiter.email %>
</p>
<p>
You can return to the test here:
<%= link_to nil, root_url %>.
<br />
Your Test ID is: <strong><%= @candidate.test_hash %></strong>
</p>
</columns>
</row>
<row>
<columns>
<table>
<tr>
<td class="email-copyright">
&copy;2016 All Rights Reserved - Perficient Digital
</td>
<td class="email-logo">
<%= image_tag("perficientdigital-logo.jpg", alt:"Perficient Digital") %>
</td>
</tr>
</table>
</columns>
</row>
<row>
<columns>
<table>
<tr>
<td style="width:6px;">
<%= image_tag("yellowslant-left.jpg", alt:"Perficient Digital") %>
</td>
<td style="background-color:#fef035; font-size:1px;">
&nbsp;
</td>
<td style="width:6px;">
<%= image_tag("yellowslant-right.jpg", alt:"Perficient Digital") %>
</td>
</tr>
</table>
</columns>
</row>
</container>
<row>
<columns class="email-body">
<p>Dear <strong><%= @candidate.name %></strong>,</p>
<p>
Thank you for taking the Skills Assessment Test. However, it looks like you have not submitted it
yet. If you are having trouble, please reach out to your recruiter:
<%= mail_to @candidate.recruiter.email %>
</p>
<p>
You can return to the test here:
<%= link_to nil, root_url %>.
<br />
Your Test ID is: <strong><%= @candidate.test_hash %></strong>
</p>
</columns>
</row>

View File

@ -3,16 +3,53 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<%= stylesheet_link_tag "mailers/foundation_vendor_manifest" %>
</head>
<body>
<table class="body" data-made-with-foundation>
<table class="body" data-made-with-foundation="">
<tr>
<td class="center" align="center" valign="top">
<center>
<%= yield %>
<container class="email-container">
<row>
<columns class="email-heading">
<span class="prft-slash">/</span> <span class="email-title">Skills Assessment Test</span>
</columns>
</row>
<%= yield %>
<row>
<columns>
<table>
<tr>
<td class="email-copyright">
&copy;2016 All Rights Reserved - Perficient Digital
</td>
<td class="email-logo">
<%= image_tag("perficientdigital-logo.jpg", alt:"Perficient Digital") %>
</td>
</tr>
</table>
</columns>
</row>
<row>
<columns>
<table>
<tr>
<td style="width:6px;">
<%= image_tag("yellowslant-left.jpg", alt:"Perficient Digital") %>
</td>
<td style="background-color:#fef035; font-size:1px;">
&nbsp;
</td>
<td style="width:6px;">
<%= image_tag("yellowslant-right.jpg", alt:"Perficient Digital") %>
</td>
</tr>
</table>
</columns>
</row>
</container>
</center>
</td>
</tr>