-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.tpl
23 lines (22 loc) · 744 Bytes
/
index.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{footer_script}
jQuery(document).ready(function() {
jQuery(".tag_group select").change(function() {
var url_tags = jQuery(this).val();
window.location.href = url_tags;
})
});
{/footer_script}
<div class="tag_groups_selection" style="margin:20px;">
{foreach from=$tag_groups key=tag_group_name item=tags}
<div class="tag_group" id="tag_group-{substr(md5($tag_group_name), 0, 5)}" style="display: inline-block; margin-right:20px;">
<span class="tag_group_name">
{$tag_group_name}
<select>
{foreach from=$tags key=tag_id item=tag}
<option value="{$tag.value}" {$tag.selected|default:null} {$tag.disabled|default:null}>{$tag.name}</option>
{/foreach}
</select>
</span>
</div>
{/foreach}
</div>