// treeview helper

This commit is contained in:
Kevin Granger
2013-09-10 09:41:39 +02:00
parent 1d8da79507
commit 03d1697e19
4 changed files with 22 additions and 7 deletions
@@ -22,9 +22,12 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="panel">
{if isset($header)}{$header}{/if}
{if isset($nodes)}
<ul id="{$id}" class="nav nav-list tree">{$nodes}</ul>
<ul id="{$id}" class="tree">
{$nodes}
</ul>
{/if}
</div>
@@ -22,4 +22,7 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="panel-heading">{l s=$title}{if isset($toolbar)}{$toolbar}{/if}</div>
<div class="panel-heading">
{l s=$title}
{if isset($toolbar)}{$toolbar}{/if}
</div>
@@ -22,10 +22,13 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<li>
<i class="icon-folder-open"></i>&nbsp;
<label class="tree-toggler nav-header">{$name}</label>
<ul class="nav nav-list tree">
<li class="tree-folder">
<span class="tree-folder-name">
<i class="icon-folder-close"></i>
<label class="tree-toggler ">{$name}</label>
</span>
<ul class="tree">
{$children}
</ul>
</li>
@@ -22,4 +22,10 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<li>{$name}</li>
<li class="tree-item">
<label class="tree-item-name">
<i class="tree-dot"></i>
{$name}
<label>
</li>