<p>Dear <personalisation:firstname />,</p>
<p>This is a friendly reminder that a lesson from your private course is about to start.</p>
<div style="margin: 10px; margin-top: 20px; padding: 10px; border: 1px dotted #aaaaaa;">
[? $course['course_code'] ?] ([? ucfirst($course['course_type']) ?] Course)<br /><br />
<logic:if test="$course['course_comment']">
<em>Note: [? $course['course_comment'] ?]</em><br />
</logic:if>
<data:table datasource="\Components\AF\Courses\Units::getAll(['filter' => ['unit_id', '=', $unit['unit_id']]])" as="unit">
<data:column heading="Unit">
[? \Components\AF\Courses\Units::renderTitle($unit) ?]
</data:column>
<data:column heading="Location" width="200px">
<logic:if test="$unit['location_id']">
<small>[? \Components\AF\Courses\Configuration\Locations::renderTitle($unit['location_id'], true) ?]</small>
</logic:if>
<logic:else>
-
</logic:else>
</data:column>
<data:column heading="Teacher" width="150px">
<logic:if test="$unit['teacher_id']">
<logic:variable as="teacher" value="[? \Components\Customers\Contacts::get($unit['teacher_id']) ?]" />
<small>[? $teacher['contact_first_name'] ?] [? strtoupper($teacher['contact_last_name']) ?]</small>
</logic:if>
<logic:else>
-
</logic:else>
</data:column>
</data:table>
</div>
|