aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/forum/admin/childs.php
blob: 3becc1f02b9c80b02cc6ef3a8a272d6497be4c8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<? foreach ($entries as $area): ?>
<ul style="margin: 0;">
    <li data-id="<?= $area['topic_id'] ?>">
        <? if ($area['content_raw']) : ?>
        <a class="tooltip2">
            <?= Icon::create('info-circle', 'inactive')->asImg(['class' => 'text-top']) ?>
            <span><?= nl2br(htmlReady($area['content_raw'])) ?></span>
        </a>
        <? endif ?>

        <? if ($area['depth'] < 3) : ?>
        <a href="javascript:STUDIP.Forum.adminLoadChilds('<?= $area['topic_id'] ?>')"><?= htmlReady($area['name_raw']) ?></a>
        <? else : ?>
        <?= htmlReady($area['name_raw']) ?>
        <? endif ?>

        <a href="javascript:STUDIP.Forum.cut('<?= $area['topic_id'] ?>');" data-role="cut">
        <?= Icon::create('export', 'clickable')->asImg() ?>
        </a>


        <a href="javascript:STUDIP.Forum.cancelCut('<?= $area['topic_id'] ?>');" data-role="cancel_cut" style="display: none">
        <?= Icon::create('export', 'attention')->asImg() ?>
        </a>

        <a href="javascript:STUDIP.Forum.paste('<?= $area['topic_id'] ?>');" data-role="paste" style="display: none">
        <?= Icon::create('arr_2left', 'sort')->asImg() ?>
        </a>
    </li>
</ul>
<? endforeach ?>