2015-03-20 18:31:49 +09:00
|
|
|
<!--
|
|
|
|
|
|
|
|
Dropdown Component
|
|
|
|
|
|
|
|
dropdownName (String)
|
|
|
|
|
|
|
|
dropdownItems (Array)
|
|
|
|
- route (String/Function) [optional]
|
|
|
|
- label (String/Function) [optional]
|
|
|
|
- description (String) [optional]
|
2015-03-21 17:52:15 +09:00
|
|
|
- adminOnly (Boolean) [optional]
|
2015-03-20 18:31:49 +09:00
|
|
|
|
|
|
|
dropdownLabel (String) [optional]
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<template name="dropdownComponent">
|
|
|
|
<div class="dropdown header-submodule {{dropdownClass}}">
|
2015-03-21 17:52:15 +09:00
|
|
|
<div class="dropdown-top-level" href="/">{{dropdownLabel}}</div>
|
2015-03-20 18:31:49 +09:00
|
|
|
<div class="dropdown-menu">
|
2015-03-21 17:52:15 +09:00
|
|
|
{{#with dropdownItems}}
|
|
|
|
<ul class="dropdown-contents" role="menu" aria-labelledby="dLabel">
|
2015-03-20 18:31:49 +09:00
|
|
|
{{#each this}}
|
2015-03-21 17:52:15 +09:00
|
|
|
{{#if showDropdownItem}}
|
|
|
|
<li class="{{itemClass}}">
|
|
|
|
<a class="dropdown-sub-level" href="{{itemRoute}}">
|
|
|
|
<span class="menu-label">{{itemLabel}}</span>
|
|
|
|
{{#if description}}<span class="menu-description">{{_ description}}</span>{{/if}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
2015-03-20 18:31:49 +09:00
|
|
|
{{/each}}
|
2015-03-21 17:52:15 +09:00
|
|
|
</ul>
|
|
|
|
{{#if showMore}}
|
2015-03-21 18:43:35 +09:00
|
|
|
<a class="show-more" href="#">
|
|
|
|
<img class="show-more-plus" src="/img/plus.svg" alt="{{_ "Show More"}}" />
|
|
|
|
<img class="show-more-minus" src="/img/minus.svg" alt="{{_ "Show Less"}}" />
|
|
|
|
</a>
|
2015-03-21 17:52:15 +09:00
|
|
|
{{/if}}
|
|
|
|
{{/with}}
|
2015-03-20 18:31:49 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|