Skip to content

Instantly share code, notes, and snippets.

@srhyne
Created May 16, 2024 18:40
Show Gist options
  • Save srhyne/b2924d9e873ff214c707cbb28b23743f to your computer and use it in GitHub Desktop.
Save srhyne/b2924d9e873ff214c707cbb28b23743f to your computer and use it in GitHub Desktop.
<p>Hello {{contact.first_name}},</p>
<p>The below table is a list of all iPads currently assigned to reps...</p>
<br><br>
<table>
<thead>
<tr>
<th>Issued To</th>
<th>Asset Number</th>
</tr>
</thead>
<tbody>
{% for asset in inputs.assets %}
{% assign isEven = forloop.index0 | modulo: 2 == 0 %}
{% if isEven %}
{% assign bgColor = 'whitesmoke' %}
{% else %}
{% assign bgColor = 'white' %}
{% endif %}
<tr style="background:{{bgColor}}">
<td>{{ asset.rep_name }} ({{asset.badge_number}})</td>
<td>{{ asset.asset_number }}</td>
</tr>
{% endfor %}
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment