pipeline_variables.html 1.2 KB

1234567891011121314151617181920
  1. <div ng-repeat="var in variables">
  2. <div class="gf-form offset-width-7" ng-if="$index === 0">
  3. <label class="gf-form-label width-10">Variables</label>
  4. <input type="text" class="gf-form-input max-width-12" ng-model="var.name" placeholder="Variable name" ng-blur="onChangeInternal()" spellcheck='false'>
  5. <metric-segment-model property="var.pipelineAgg" options="options" on-change="onChangeInternal()" custom="false" css-class="width-12"></metric-segment-model>
  6. <label class="gf-form-label">
  7. <a class="pointer" ng-click="remove($index)"><i class="fa fa-minus"></i></a>
  8. </label>
  9. <label class="gf-form-label">
  10. <a class="pointer" ng-click="add()"><i class="fa fa-plus"></i></a>
  11. </label>
  12. </div>
  13. <div class="gf-form offset-width-17" ng-if="$index !== 0">
  14. <input type="text" class="gf-form-input max-width-12" ng-model="var.name" placeholder="Variable name" ng-blur="onChangeInternal()" spellcheck='false'>
  15. <metric-segment-model property="var.pipelineAgg" options="options" on-change="onChangeInternal()" custom="false" css-class="width-12"></metric-segment-model>
  16. <label class="gf-form-label">
  17. <a class="pointer" ng-click="remove($index)"><i class="fa fa-minus"></i></a>
  18. </label>
  19. </div>
  20. </div>