2015-05-28 04:16:16 -05:00
|
|
|
<span class="template-variable tight-form-item" ng-show="!variable.hideLabel" style="padding-right: 5px">
|
2015-04-28 10:54:22 -05:00
|
|
|
{{labelText}}:
|
|
|
|
</span>
|
2015-04-27 06:59:20 -05:00
|
|
|
|
2015-04-30 04:15:26 -05:00
|
|
|
<div style="position: relative; display: inline-block">
|
2015-05-28 04:16:16 -05:00
|
|
|
<a ng-click="show()" class="variable-value-link tight-form-item">
|
2015-04-30 04:15:26 -05:00
|
|
|
{{linkText}}
|
2015-05-28 11:38:53 -05:00
|
|
|
<span class="label-tag" ng-repeat="tag in selectedTags" tag-color-from-name="tag.text">
|
|
|
|
{{tag.text}}
|
|
|
|
<i class="fa fa-tag"></i>
|
|
|
|
</span>
|
2015-04-30 04:15:26 -05:00
|
|
|
<i class="fa fa-caret-down"></i>
|
|
|
|
</a>
|
2015-05-28 04:16:16 -05:00
|
|
|
<input type="text" class="tight-form-clear-input input-small" style="display: none" ng-keydown="keyDown($event)" ng-model="search.query" ng-change="queryChanged()" ></input>
|
2015-04-30 04:15:26 -05:00
|
|
|
|
2015-05-28 04:16:16 -05:00
|
|
|
<div class="variable-value-dropdown" ng-if="dropdownVisible">
|
2015-05-28 05:52:47 -05:00
|
|
|
<div class="variable-options-wrapper">
|
|
|
|
<div class="variable-options-column">
|
|
|
|
<div class="variable-options-column-header" ng-if="variable.multi">
|
|
|
|
Selected ({{selectedValuesCount}})
|
|
|
|
</div>
|
|
|
|
<a class="variable-option pointer" bindonce ng-repeat="option in search.options" ng-class="{'selected': option.selected, 'highlighted': $index === highlightIndex}" ng-click="optionSelected(option, $event)">
|
|
|
|
<span class="fa fa-fw variable-option-icon"></span>
|
|
|
|
<span>{{option.text}}</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="variable-options-column" ng-if="variable.tags.length">
|
|
|
|
<div class="variable-options-column-header" ng-if="variable.tags.length">Tags</div>
|
2015-05-28 11:38:53 -05:00
|
|
|
<a class="variable-option-tag pointer" ng-repeat="tag in tags" ng-click="selectTag(tag, $event)" ng-class="{'selected': tag.selected}">
|
2015-05-28 05:52:47 -05:00
|
|
|
<span class="fa fa-fw variable-option-icon"></span>
|
2015-05-28 11:38:53 -05:00
|
|
|
<span class="label-tag" tag-color-from-name="tag.text">{{tag.text}} <i class="fa fa-tag"></i> </span>
|
2015-05-28 05:52:47 -05:00
|
|
|
</a>
|
|
|
|
</div>
|
2015-04-30 04:15:26 -05:00
|
|
|
</div>
|
2015-04-27 06:59:20 -05:00
|
|
|
</div>
|
|
|
|
</div>
|