aboutsummaryrefslogtreecommitdiff
path: root/app/views/my_courses/groups.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-01-05 13:09:28 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2022-01-05 13:09:28 +0000
commit3adbfb5017710f32e5fe26fc9464242c5f61d774 (patch)
tree50daa8b9e342519e9a09321bec77e2e165838818 /app/views/my_courses/groups.php
parentbabe56fdfbced7a41146de49654f634e459952a4 (diff)
Biest 475
Diffstat (limited to 'app/views/my_courses/groups.php')
-rw-r--r--app/views/my_courses/groups.php36
1 files changed, 23 insertions, 13 deletions
diff --git a/app/views/my_courses/groups.php b/app/views/my_courses/groups.php
index 654f54c..7dce404 100644
--- a/app/views/my_courses/groups.php
+++ b/app/views/my_courses/groups.php
@@ -4,18 +4,24 @@
<input type="hidden" name="cid" value="<?= $cid ?>">
<table class="default collapsable">
<caption><?= _('Gruppenzuordnung') ?></caption>
+ <colgroup>
+ <col>
+ <? for ($i = 0; $i < 9; $i += 1): ?>
+ <col style="width: 32px">
+ <? endfor; ?>
+ </colgroup>
<thead>
- <tr>
- <th><?= _('Veranstaltung') ?></th>
- <th colspan="100%"><?= _('Gruppen/Farbe') ?></th>
- </tr>
+ <tr>
+ <th><?= _('Veranstaltung') ?></th>
+ <th colspan="100%"><?= _('Gruppen/Farbe') ?></th>
+ </tr>
</thead>
<? foreach ($groups as $group_id => $group_members): ?>
<tbody class="<?= $current_semester != $semesters[$group_id]['semester_id'] ? 'collapsed' : ''?>">
<? if ($group_field !== 'not_grouped'): ?>
<tr class="table_header header-row">
- <th colspan='100%' class="toggle-indicator">
+ <th colspan="10" class="toggle-indicator">
<a class="toggler">
<? if (is_array($group_names[$group_id])): ?>
<?= htmlReady(my_substr($group_names[$group_id][1] . ' > ' . $group_names[$group_id][0], 0, 70)) ?>
@@ -31,19 +37,23 @@
<td>
<a href="<?= URLHelper::getLink('seminar_main.php?auswahl=' . $member['seminar_id']) ?>">
<?= htmlReady(Config::get()->IMPORTANT_SEMNUMBER ? $my_sem[$member['seminar_id']]['sem_nr'] : '') ?>
- <?= htmlReady(my_substr($my_sem[$member['seminar_id']]['name'], 0, 70)) ?>
+ <?= htmlReady($my_sem[$member['seminar_id']]['name']) ?>
</a>
<? if (!$my_sem[$member['seminar_id']]['visible']): ?>
<?= _('(versteckt)') ?>
<? endif; ?>
</td>
- <? for ($i = 0; $i < 9; $i++): ?>
- <td class="gruppe<?= $i ?>" width="28">
- <input type="radio" name="gruppe[<?= $member['seminar_id'] ?>]" value="<?= $i ?>"
- aria-label="<?= _('Zugeordnet zu Gruppe ') . $i ?>"
- <? if ($my_sem[$member['seminar_id']]['gruppe'] == $i) echo 'checked'; ?>>
- </td>
- <? endfor; ?>
+ <? for ($i = 0; $i < 9; $i++): ?>
+ <td class="gruppe<?= $i ?> mycourses-group-selector" onclick="this.querySelector('input').checked = true;">
+ <input type="radio" name="gruppe[<?= $member['seminar_id'] ?>]" value="<?= $i ?>"
+ aria-label="<?= _('Zugeordnet zu Gruppe ') . ($i + 1) ?>"
+ id="course-group-<?= htmlReady($member['seminar_id']) ?>-<?= $i ?>"
+ <? if ($my_sem[$member['seminar_id']]['gruppe'] == $i) echo 'checked'; ?>>
+ <label for="course-group-<?= htmlReady($member['seminar_id']) ?>-<?= $i ?>">
+ <?= sprintf(_('Gruppe %u zuordnen'), $i + 1) ?>
+ </label>
+ </td>
+ <? endfor; ?>
</tr>
<? endforeach; ?>
</tbody>