]> git.agnieray.net Git - galette.git/blob - galette/templates/default/group_tree_item.tpl
Visually differenciate non accesible groups for managers
[galette.git] / galette / templates / default / group_tree_item.tpl
1 <li id="group_{$item->getId()}"{if $group->getId() eq $item->getId()} class="jstree-open"{/if}>
2 <a
3 href="{if $login->isGroupManager($item->getId())}{path_for name="groups" data=["id" => $item->getId()]}{else}#{/if}"
4 class="{if $group->getId() eq $item->getId()}jstree-clicked"{/if} {if !$login->isGroupManager($item->getId())} jstree-disabled{/if}"
5 >
6 {$item->getName()}
7 </a>
8 {if $item->getGroups()|@count > 0}
9 <ul>
10 {foreach item=newitem from=$item->getGroups()}
11 {include file="group_tree_item.tpl" item=$newitem}
12 {/foreach}
13 </ul>
14 {/if}
15 </li>