Skip to content
Snippets Groups Projects
Commit f345a34d authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

use correct dialog size for module description when searching, fixes #1163

Closes #1163

Merge request studip/studip!691
parent d9890bbf
No related branches found
No related tags found
No related merge requests found
<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) ?>">
<a data-dialog="size=auto" 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>
......
......@@ -71,7 +71,7 @@
<td rowspan="<?= count($modul['modulTeile']) ?>">
<? // Anzeige der alternativen Bezeichnung aus mvv_stgteilabschnitt_modul ?>
<? $abschnitt_modul = StgteilabschnittModul::findOneBySQL('`abschnitt_id` = ? AND `modul_id` = ?', [$abschnitt_id, $modul_id]) ?>
<a data-dialog title="<?= htmlReady($modul['name']) . ' (' . _('Vollständige Modulbeschreibung') . ')' ?>" href="<?= $controller->link_for('shared/modul/description/' . $modul_id, ['display_language' => ModuleManagementModel::getLanguage()]) ?>">
<a data-dialog="size=auto" title="<?= htmlReady($modul['name']) . ' (' . _('Vollständige Modulbeschreibung') . ')' ?>" href="<?= $controller->link_for('shared/modul/description/' . $modul_id, ['display_language' => ModuleManagementModel::getLanguage()]) ?>">
<?= Icon::create('log', Icon::ROLE_CLICKABLE, ['title' => _('Vollständige Modulbeschreibung')]) ?>
</a>
<? if($modul['veranstaltungen']):?>
......@@ -109,7 +109,7 @@
</td>
<? endif ?>
<td>
<a data-dialog title="<?= htmlReady($modul['name']) . ' (' . _('Vollständige Modulbeschreibung') . ')' ?>" href="<?= $controller->link_for('shared/modul/description/' . $modul_id, ['display_language' => ModuleManagementModel::getLanguage()]) ?>">
<a data-dialog="size=auto" title="<?= htmlReady($modul['name']) . ' (' . _('Vollständige Modulbeschreibung') . ')' ?>" href="<?= $controller->link_for('shared/modul/description/' . $modul_id, ['display_language' => ModuleManagementModel::getLanguage()]) ?>">
<?= Icon::create('log', Icon::ROLE_CLICKABLE, ['title' => _('Vollständige Modulbeschreibung')]) ?>
</a>
<? if ($modul['veranstaltungen']): ?>
......
......@@ -8,7 +8,7 @@
<a data-dialog title="<?= htmlReady($current['name']) ?>" href="<?= URLHelper::getLink('dispatch.php/shared/modul/overview/' . $current['id'] . '/' . $course->start_semester->id) ?>">
<?= htmlReady($current['name']) ?>
</a>
<a data-dialog title="<?= htmlReady($current['name']) ?>" href="<?= URLHelper::getLink('dispatch.php/shared/modul/description/' . $current['id']) ?>">
<a data-dialog="size=auto" title="<?= htmlReady($current['name']) ?>" href="<?= URLHelper::getLink('dispatch.php/shared/modul/description/' . $current['id']) ?>">
<?= Icon::create('log', 'clickable', ['title' => _('Modulbeschreibung')]); ?>
</a>
<? else : ?>
......
<?
<?
$abschnitte = StgteilAbschnitt::findByStgteilVersion($version->getId());
$abschnitteData = [];
$fachsemesterData = [];
......@@ -19,7 +19,7 @@ foreach ($abschnitte as $abschnitt) {
'name' => $abschnitt_modul->getDisplayName(),
'modulTeile' => []
];
foreach ($abschnitt_modul->modul->modulteile as $teil) {
$fachSemester = $abschnitt_modul->getAllFachSemester($teil->getId());
......@@ -78,11 +78,11 @@ foreach ($abschnitte as $abschnitt) {
<? $abschnitt_modul = StgteilabschnittModul::findOneBySQL('abschnitt_id = ? AND modul_id = ?', [$abschnitt_id, $modul_id]) ?>
<?= htmlReady($abschnitt_modul->getDisplayName()) ?>
</a>
<a data-dialog title="<?= htmlReady($modul['name']) . ' (' . _('Vollständige Modulbeschreibung') . ')' ?>" href="<?= URLHelper::getLink('shared/modul/description/' . $modul_id) ?>">
<a data-dialog="size=auto" title="<?= htmlReady($modul['name']) . ' (' . _('Vollständige Modulbeschreibung') . ')' ?>" href="<?= URLHelper::getLink('shared/modul/description/' . $modul_id) ?>">
<?= Icon::create('info-circle', 'clickable', [])->asImg(); ?>
</a>
</td>
<? endif;?>
<? endif;?>
<td><?= htmlReady($modulTeil['name']) ?> </td>
<? foreach ($fachsemesterData as $i => $fachsemester) : ?>
<? $typ = isset($modulTeil['fachsemester'][$fachsemester]) ? $modulTeil['fachsemester'][$fachsemester] : null; ?>
......@@ -94,14 +94,14 @@ foreach ($abschnitte as $abschnitt) {
<td data-mvv-field="mvv_modulteil_stgteilabschnitt.differenzierung" data-mvv-index="<?= $i; ?>" data-mvv-coid="<?= $abschnitt_id; ?>" class="type">&nbsp;</td>
<? endif; ?>
<? endforeach; ?>
</tr>
</tr>
<? endforeach; ?>
<? endforeach; ?>
</tbody>
</table>
<? endif; ?>
</dd>
<? else : ?>
<? else : ?>
<dt><?= htmlReady($abschnitt['zwischenUeberschrift']) ?></dt>
<? if (trim($abschnitt['kommentar'])) : ?>
<dd data-mvv-field="mvv_stgteilabschnitt.kommentar">
......@@ -112,4 +112,4 @@ foreach ($abschnitte as $abschnitt) {
<? endif; ?>
</span>
<? endforeach; ?>
</dl>
\ No newline at end of file
</dl>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment