| = (++$nr < 10) ? sprintf('%02d', $nr) : $nr ?> |
= $last_visitdate) echo 'class="new-member"'; ?>>
= Avatar::getAvatar($dozent['user_id'], $dozent['username'])->getImageTag(Avatar::SMALL, [
'style' => 'margin-right: 5px'
]) ?>
= htmlReady($fullname) ?>
if ($is_tutor && $dozent['comment']) : ?>
= tooltipHtmlIcon(sprintf(
'%s %s',
_('Bemerkung'),
htmlReady($dozent['comment'])
)) ?>
endif ?>
|
$actionMenu = ActionMenu::get()->setContext($fullname) ?>
if ($is_tutor) : ?>
$actionMenu->addLink(
$controller->url_for('course/members/add_comment/' . $dozent['user_id']),
_('Bemerkung hinzufügen'),
Icon::create('comment'),
['data-dialog' => 'size=auto']
) ?>
endif ?>
if($user_id !== $dozent['user_id']) : ?>
$actionMenu->addLink(
URLHelper::getURL('dispatch.php/messages/write',[
'filter' => 'send_sms_to_all',
'emailrequest' => 1,
'rec_uname' => $dozent['username'],
'default_subject' => $subject,
]),
_('Nachricht mit Mailweiterleitung senden'),
Icon::create(
'mail',
Icon::ROLE_CLICKABLE,
['title' => sprintf('Nachricht mit Weiterleitung an %s senden', $fullname)]
),
['data-dialog' => '1']
) ?>
else: ?>
$actionMenu->addLink(
'#',
_('Nachricht mit Mailweiterleitung senden'),
Icon::create('mail', Icon::ROLE_INACTIVE),
['disabled' => true]
) ?>
endif ?>
if (!$dozent_is_locked && $is_dozent && $user_id !== $dozent['user_id'] && count($dozenten) > 1) : ?>
$actionMenu->addLink(
$controller->url_for('course/members/cancel_subscription/singleuser/dozent/' . $dozent['user_id']),
_('Aus Veranstaltung austragen'),
Icon::create(
'door-leave',
Icon::ROLE_CLICKABLE,
['title' => sprintf(_('%s austragen'), $fullname)]
)
) ?>
endif ?>
= $actionMenu->render() ?>
|
endforeach ?>