|
|
@@ -1,10 +1,19 @@
|
|
|
-<div class="submenu-controls">
|
|
|
+<div class="submenu-controls gf-form-query">
|
|
|
<ul ng-if="ctrl.dashboard.templating.list.length > 0">
|
|
|
<li ng-repeat="variable in ctrl.variables" ng-hide="variable.hide === 2" class="submenu-item">
|
|
|
- <span class="submenu-item-label template-variable " ng-hide="variable.hide === 1">
|
|
|
- {{variable.label || variable.name}}:
|
|
|
+ <div class="gf-form">
|
|
|
+ <label class="gf-form-label template-variable " ng-hide="variable.hide === 1">
|
|
|
+ {{variable.label || variable.name}}:
|
|
|
+ </label>
|
|
|
+ <value-select-dropdown ng-if="variable.type !== 'adhoc'" variable="variable" on-updated="ctrl.variableUpdated(variable)" get-values-for-tag="ctrl.getValuesForTag(variable, tagKey)"></value-select-dropdown>
|
|
|
+ </div>
|
|
|
+ <span ng-if="variable.type === 'adhoc'">
|
|
|
+ <div class="gf-form">
|
|
|
+ <label class="gf-form-label">hostname</label>
|
|
|
+ <label class="gf-form-label query-operator">=</label>
|
|
|
+ <label class="gf-form-label">server1</label>
|
|
|
+ </div>
|
|
|
</span>
|
|
|
- <value-select-dropdown variable="variable" on-updated="ctrl.variableUpdated(variable)" get-values-for-tag="ctrl.getValuesForTag(variable, tagKey)"></value-select-dropdown>
|
|
|
</li>
|
|
|
</ul>
|
|
|
|