templates/studentsAffectedByModule.html
$def with (moduleCode, aySem, student_lst)
$ title_string = 'Students Affected By Module Changes'
$var title:$title_string
$ home = ['/', 'Home']
$ moduleInfo = ['/modules', 'Module Information']
$ viewModule = ['/viewModule?code=' + moduleCode, moduleCode]
$ individualModuleInfo = ['/individualModuleInfo?code=' + moduleCode + '&aysem=' + aySem, 'Module Info for ' + aySem]
$ affectedStudents = ['#', title_string]
$var hierarchy = [home, moduleInfo, viewModule, individualModuleInfo, affectedStudents]
<div class="container container-block">
<h1 class="text-center">Students Taking This Module</h1>
<p class="text-center">Show students who <b>have taken</b>, are <b>currently taking</b>, or are <b>planning to take</b> this module.</p>
<h2 class="text-center">For <b>$moduleCode</b> in <b>$aySem</b></h2>
<div class="row">
<table id="students-taking-module-table" class="table table-bordered table-hover display dataTable">
<thead>
<tr>
<th>Matric No.</th>
<th>Year of study</th>
<th>Focus Area 1</th>
<th>Focus Area 2</th>
</tr>
</thead>
<tbody>
$for row in student_lst:
<tr>
<td class="text-center">$row[0]</td>
<td class="text-center">$row[1]</td>
<td class="text-center">$row[2]</td>
<td class="text-center">$row[3]</td>
</tr>
</tbody>
</table>
</div>
</div>