aboutsummaryrefslogtreecommitdiff
path: root/app/views/settings/statusgruppen/_options.php
blob: 1115564a994d7623225a58ffa51b502816333970 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<? if (!$data) return; ?>

<? foreach ($data as $id => $row): ?>
    <option value="<?= $id ?>" <? if ($row['user_there']) echo 'disabled'; ?>>
    <? for ($i = 1; $i <= $level; $i++): ?>
        &nbsp;&nbsp;
    <? endfor; ?>
        <?= mb_substr($row['role']->getName(), 0, 70) ?>
    </option>
<? if ($row['child']): ?>
    <?= $this->render_partial('settings/statusgruppen/_options', [
        'data'  => $row['child'],
        'level' => $level + 1,
    ]) ?>
<? endif; ?>

<? endforeach; ?>