Commit 2b575ca829a88d3db97a686917cb4cd6d5c65787
Committed by
João M. M. da Silva
1 parent
5a427787
Exists in
master
and in
28 other branches
Added collector visualization and changed check_box_tag's id and value.
Showing
1 changed file
with
7 additions
and
5 deletions
Show diff stats
plugins/mezuro/views/cms/mezuro_plugin/_configuration_content.html.erb
| @@ -19,16 +19,18 @@ end | @@ -19,16 +19,18 @@ end | ||
| 19 | 19 | ||
| 20 | <%= f.text_field :description %><br/> | 20 | <%= f.text_field :description %><br/> |
| 21 | 21 | ||
| 22 | -<h3> Metrics </h3> | ||
| 23 | -<table> | ||
| 24 | - <% @tool_names = Kalibro::Client::BaseToolClient.new | ||
| 25 | - @tool_names.base_tool_names.each do |collector_name| | 22 | +<h3>Metrics</h3> |
| 23 | +<% @tool_names = Kalibro::Client::BaseToolClient.new | ||
| 24 | +@tool_names.base_tool_names.each do |collector_name| %> | ||
| 25 | + <h4><%=collector_name%></h4> | ||
| 26 | + <table> | ||
| 27 | + <% | ||
| 26 | @collector = @tool_names.base_tool(collector_name) | 28 | @collector = @tool_names.base_tool(collector_name) |
| 27 | @collector.supported_metrics.each do |metric| %> | 29 | @collector.supported_metrics.each do |metric| %> |
| 28 | 30 | ||
| 29 | <tr class="metric" title="<%= metric.description %>"> | 31 | <tr class="metric" title="<%= metric.description %>"> |
| 30 | <td> | 32 | <td> |
| 31 | - <%= check_box_tag metric.name, metric.name, true %> | 33 | + <%= check_box_tag collector_name + ":" + metric.name, collector_name + ":" + metric.name, true %> |
| 32 | <%= label_tag metric.name %> | 34 | <%= label_tag metric.name %> |
| 33 | </td> | 35 | </td> |
| 34 | </tr> | 36 | </tr> |