module.html 1.7 KB

123456789101112131415161718192021222324
  1. <kibana-panel ng-controller='stringquery'>
  2. <div ng-show="!panel.multi">
  3. <form class="input-append" style="margin-bottom:0px; width:100%;z-index:1000;overflow:auto">
  4. <label><small>{{panel.label}}</small></label>
  5. <input type="text" ng-model="panel.query" style="width:85%">
  6. <button type="submit" class="btn btn-info" ng-click="send_query(panel.query)"><i class="icon-search"></i></button>
  7. <button type="submit" class="btn btn-danger" ng-click="panel.query='';send_query(panel.query)"><i class="icon-ban-circle"></i></button>
  8. <button ng-show="panel.multi" type="submit" class="btn" ng-click="add_query()"><i class="icon-plus"></i></button>
  9. </form>
  10. </div>
  11. <div ng-show="panel.multi">
  12. <form ng-class="{'form-inline': panel.multi_arrange == 'horizontal'}" style="width:100%;" >
  13. <span ng-repeat="q in panel.query">
  14. <span class="input-append" style="margin-bottom:0px;margin-right:5px">
  15. <button class="btn btn-danger" type="submit" style="width:50px;margin-left:-50px;visibility:hidden"></button>
  16. <input style="margin-bottom:5px;" type="text" ng-model="panel.query[$index]" ng-model-onblur style="width:90%">
  17. <button class="btn btn-danger" ng-show="panel.query.length > 1" ng-click="remove_query($index);send_query(panel.query)"><i class="icon-minus"></i></button><br>
  18. </span><br style:"height:0px" ng-show="panel.multi_arrange == 'vertical'">
  19. </span>
  20. </form>
  21. <button type="submit" class="btn btn-info" ng-click="send_query(panel.query)"><i class="icon-search"></i> Search</button>
  22. <button type="submit" class="btn" ng-click="send_query(panel.query);add_query();"><i class="icon-plus"></i> Add Query</button>
  23. </div>
  24. </kibana-panel>