// tree view product

This commit is contained in:
Kevin Granger
2013-09-09 18:12:31 +02:00
parent b5f6e8a1d8
commit 7774e46cb3
8 changed files with 138 additions and 80 deletions
@@ -25,6 +25,8 @@
<div class="panel">
{if $header}{$header}{/if}
{if $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 $toolbar}{$toolbar}{/if}</div>
<div class="panel-heading">
<i class="icon-tag"></i>&nbsp;{l s=$title}
{if $toolbar}{$toolbar}{/if}
</div>
@@ -22,11 +22,14 @@
* @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;
<input type="radio" name="id-category" value="{$node['id_category']}" />&nbsp;
<label class="tree-toggler nav-header">{$name}</label>
<ul class="nav nav-list tree">
<li class="tree-folder">
<span class="tree-folder-name">
<input type="radio" name="id-category" value="{$node['id_category']}" />
<i class="icon-folder-close"></i>
<label class="tree-toggler ">{$name}</label>
</span>
<ul class="tree">
{$children}
</ul>
</li>
@@ -23,10 +23,13 @@
* International Registered Trademark & Property of PrestaShop SA
*}
<li>
<i class="icon-folder-open"></i>&nbsp;
<input type="checkbox" name="id-category[]" value="{$node['id_category']}" />&nbsp;
<label class="tree-toggler nav-header">{$name}</label>
<ul class="nav nav-list tree">
<i class="icon-folder-open"></i>
<input type="checkbox" name="id-category[]" value="{$node['id_category']}" />
<label class="tree-toggler tree-folder-name">{$name}</label>
<ul class="tree">
{$children}
</ul>
</li>
@@ -22,4 +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><input type="radio" name="id-category" value="{$node['id_category']}" />&nbsp;{$name}</li>
<li class="tree-item">
<label class="tree-item-name">
<input type="radio" name="id-category" value="{$node['id_category']}" />
<i class="tree-dot"></i>
{$name}
<label>
</li>