blob: 6f66b03535053d1c7d531b24fa29ad9a6c624050 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
if (!$data) {
return;
}
if (!isset($level)) {
$level = 0;
}
?>
<? foreach ($data as $id => $row): ?>
<option value="<?= $id ?>" <? if ($row['user_there']) echo 'disabled'; ?>>
<? for ($i = 1; $i <= $level; $i++): ?>
<? 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; ?>
|