diff options
Diffstat (limited to 'app/views/course/studygroup/_replace_founder.php')
| -rw-r--r-- | app/views/course/studygroup/_replace_founder.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app/views/course/studygroup/_replace_founder.php b/app/views/course/studygroup/_replace_founder.php new file mode 100644 index 0000000..8947fed --- /dev/null +++ b/app/views/course/studygroup/_replace_founder.php @@ -0,0 +1,28 @@ +<section> + <?= _('GruppengründerInnen') ?> +</section> + +<div class="hgroup"> +<? if (is_array($founders) && count($founders) > 0) : ?> + <ul> + <? foreach ($founders as $founder) : ?> + <li><?= htmlReady(get_fullname_from_uname($founder['username'])) ?></li> + <? endforeach; ?> + </ul> +<? endif; ?> + +<? if (!empty($tutors)) :?> + <?= Icon::create('arr_2left', Icon::ROLE_SORT)->asInput([ + 'title' => _('Als GruppengründerIn eintragen'), + 'class' => 'middle', + 'name' => 'replace_founder', + ]) ?> + <select name="choose_founder"> + <? foreach($tutors as $uid => $tutor) : ?> + <option value="<?= htmlReady($uid) ?>"> + <?= htmlReady($tutor['fullname']) ?> + </option> + <? endforeach ; ?> + </select> +<? endif; ?> +</div> |
