Skip to content

Commit

Permalink
Use numeric id in per unit series div on graph edition.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjuju committed Aug 17, 2016
1 parent d54a09d commit 9f34e11
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ui/templates/graphs/edit.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -175,19 +175,21 @@
</div>
</div>
<% if ( scalar (stash 'id_server')) { %>
<div class="tab-pane" id="series">
<div class="tab-pane" id="series">
% my $i = 1;
% foreach my $service (keys %labels) {
% foreach my $unit ( keys %{ $labels{$service} } ) {
<strong><%= l('Service') . " " . $labels{$service}{$unit}[0]{service} %> (<%= $unit %>)</strong>
<a href="#" data-unit="<%= $unit %>"
<a href="#" data-unit="<%= $i %>"
class="select-all-none"
title="<%= l 'Select all/none' %>"
><i class="fa fa-eye"></i></a>
<div class="container-fluid" id="unit-<%= $unit %>">
<div class="container-fluid" id="unit-<%= $i %>">
% foreach my $l ( @{ $labels{$service}{$unit} } ) {
<label class="checkbox col-md-3" >
<%= check_box "labels" => $l->{'id_metric'} %> <%= "$l->{'label'} "%>
</label>
% $i++;
% }
</div>
<br />
Expand Down

0 comments on commit 9f34e11

Please sign in to comment.