Skip to content
Snippets Groups Projects
Commit aa5e1eb6 authored by Tim Steiner's avatar Tim Steiner
Browse files

Display the list of course groups in the "Additional Info" of a course request's view page.

parent 3764e375
No related branches found
No related tags found
No related merge requests found
...@@ -215,6 +215,30 @@ ...@@ -215,6 +215,30 @@
</tr> </tr>
<?php } ?> <?php } ?>
<?php
$courseGroups = array();
foreach ($course->getCrosslistings() as $crosslisting) {
foreach ($crosslisting['courseGroups'] as $courseGroup) {
$courseGroups[] = $courseGroup['name'];
}
}
?>
<tr>
<th>Course Groups</th>
<td>
<?php if (count($courseGroups) == 0) { ?>
<em>None</em>
<?php } else { ?>
<ul>
<?php foreach ($courseGroups as $courseGroup) { ?>
<li><?php echo $courseGroup; ?></li>
<?php } ?>
</ul>
<?php } ?>
</td>
</tr>
</table> </table>
</div> </div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment