step2_add_metric.hbs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {{!
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. }}
  18. <div class="row-fluid">
  19. <div class="span3">{{t dashboard.widgets.wizard.step2.Component}}</div>
  20. <div class="btn-group component-select span5">
  21. {{#if view.selectedComponent}}
  22. <button class="btn dropdown-toggle" data-toggle="dropdown">
  23. {{view.selectedComponent.displayName}}<span class="caret pull-right"></span>
  24. </button>
  25. {{else}}
  26. <button class="btn dropdown-toggle" data-toggle="dropdown">
  27. {{t dashboard.widgets.wizard.step2.selectComponent}}<span class="caret pull-right"></span>
  28. </button>
  29. {{/if}}
  30. <ul class="dropdown-menu accordion" id="accordion2">
  31. {{#each service in view.componentMap}}
  32. <li class="accordion-group keep-open">
  33. <div class="accordion-heading">
  34. <a class="accordion-toggle collapsed" data-toggle="collapse" {{bindAttr href="service.href"}}>
  35. <i class="icon-caret-down"></i><i class="icon-caret-right"></i>{{service.displayName}}
  36. </a>
  37. </div>
  38. <div {{bindAttr id="service.serviceName"}} class="accordion-body collapse">
  39. <ul class="accordion-inner">
  40. {{#each component in service.components}}
  41. <li>
  42. <a href="#" {{action selectComponents component target="view"}}> {{component.displayName}}</a>
  43. </li>
  44. {{/each}}
  45. </ul>
  46. </div>
  47. </li>
  48. {{/each}}
  49. </ul>
  50. </div>
  51. </div>
  52. <div class="row-fluid">
  53. <div class="span3">{{t dashboard.widgets.wizard.step2.Metric}}</div>
  54. <div class="span9">
  55. <select class="chosen-select">
  56. {{#each metric in view.selectedComponent.metrics}}
  57. <option>{{unbound metric}}</option>
  58. {{/each}}
  59. </select>
  60. </div>
  61. </div>