diff options
| author | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2021-07-22 16:07:19 +0200 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2021-07-22 16:19:12 +0200 |
| commit | a3da1483a9e689846179159355badfec8073dbec (patch) | |
| tree | 770dcca6bdf5f6f2a11b0e7fcbbeda6919a3fc52 /app/views/search/module/_modul.php | |
current code from svn, revision 62608
Diffstat (limited to 'app/views/search/module/_modul.php')
| -rw-r--r-- | app/views/search/module/_modul.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app/views/search/module/_modul.php b/app/views/search/module/_modul.php new file mode 100644 index 0000000..e20a586 --- /dev/null +++ b/app/views/search/module/_modul.php @@ -0,0 +1,31 @@ +<tbody class="<?= $modul_id == $modul->id ? 'not-collapsed' : 'collapsed' ?>"> + <tr class="table-header header-row" id="modul_<?= htmlReady($modul->id) ?>"> + <td style="vertical-align: middle; text-align: center;"> + <a data-dialog title="<?= htmlReady($modul->getDisplayName(ModuleManagementModel::DISPLAY_CODE | ModuleManagementModel::DISPLAY_SEMESTER)) . ' (' . _('Vollständige Modulbeschreibung') . ')' ?>" href="<?= $controller->link_for('shared/modul/description/' . $modul->id) ?>"> + <?= Icon::create('log')->asImg(['title' => _('Vollständige Modulbeschreibung')]) ?> + </a> + </td> + <? if (count($modul->getAssignedCoursesBySemester($selected_semester->id, $GLOBALS['user']->id))) : ?> + <td class="toggle-indicator"> + <a class="mvv-search-modules-row-link mvv-load-in-new-row" href="<?= $controller->link_for("/details/{$modul->id}/#{$modul->id}") ?>"> + <?= htmlReady($modul->getDisplayName(ModuleManagementModel::DISPLAY_CODE)) ?> + </a> + </td> + <? else : ?> + <td class="mvv-search-modules-row"> + <?= htmlReady($modul->getDisplayName(ModuleManagementModel::DISPLAY_CODE)) ?> + </td> + <? endif; ?> + <td class="dont-hide"> + <?= htmlReady($modul->getDisplaySemesterValidity()) ?> + </td> + <td class="dont-hide"> + <? if ($modul->responsible_institute->institute) : ?> + <?= htmlReady($modul->responsible_institute->institute->getDisplayName()); ?> + <? endif; ?> + </td> + </tr> +<? if ($details_id == $modul->id): ?> + <?= $this->render_partial('search/module/details') ?> +<? endif; ?> +</tbody> |
