-
Notifications
You must be signed in to change notification settings - Fork 64
/
sidebar-categories-selector.tpl
44 lines (39 loc) · 1.56 KB
/
sidebar-categories-selector.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{if $panel}
<div class="m-0 panel-heading card-header">
<h3 class="panel-title">
{if $panel->hasIcon()}
<i class="{$panel->getIcon()}"></i>
{/if}
{$panel->getLabel()}
{if $panel->hasBadge()}
<span class="badge">{$panel->getBadge()}</span>
{/if}
</h3>
</div>
<div class="panel-body card-body">
<form role="form">
<select class="form-control custom-select" onchange="selectChangeNavigate(this)">
{assign var='hasCurrent' value=false}
{foreach $panel->getChildren() as $child}
<option menuItemName="{$child->getName()}" value="{$child->getUri()}" class="list-group-item" {if $child->isCurrent()}selected="selected"{/if}>
{$child->getLabel()}
{if $child->hasBadge()}
({$child->getBadge()})
{/if}
</option>
{if !$hasCurrent and $child->isCurrent()}
{assign var='hasCurrent' value=true}
{/if}
{/foreach}
{if !$hasCurrent}
<option value="" class="list-group-item" selected=""selected>- {lang key="cartchooseanothercategory"} -</option>
{/if}
</select>
</form>
</div>
{if $panel->hasFooterHtml()}
<div class="panel-footer card-footer">
{$panel->getFooterHtml()}
</div>
{/if}
{/if}