anchor.diff:              </ul>
           </li>
       <% end %>
  +    <ul class="c-tree">
   </ul>
   
   <script>
  
positive.code: <ul class="lines">
      <!-- Lines -->
      <li class="plan-label lines-label">
          <ul class="plan-list">
              <% @lines.each_pair do |name, v| %>
                  <li>
                      <input type="checkbox" id="checkbox_<%= name %>" <%= v[:show] ? 'checked' : '' %>/>
                      <%
                          style = "background-color:#{@lines_style[name]['color']};"
                          if font_color = @lines_style[name]['lineLabelFontColor']
                              style << "color:#{font_color};"
                          end
                      %>
                      <label for="checkbox_<%= name %>" style="<%= style %>" onclick='toggleLine(<%=name.to_json%>);'>
                          <%= name %>
                      </label>
                      </li>
              <% end %>
          </ul>
      </li>
  
      <!-- Plans -->
  
      <% @plans.each_pair do |name, plan| %>
          <li class="plan-label">
              <div><%= "#{name} #{plan[:year]}" %></div>
              <a href="<%= plan[:url] %>" target="_blank" + title="Link a la ley">
                  <span class="plan-link fa fa-external-link"></span>
              </a>
              <ul class="plan-list">
                  <% plan[:lines].each do |line| %>
                      <li>
                          <input type="checkbox" id="checkbox_<%= line[:id] %>" <%= line[:show] ? 'checked' : '' %>/>
                          <%
                              style = "background-color:#{@lines_style[line[:name]]['color']};"
  
negative.code:         save_params(null,null,null,plans_params);
      });
  }
  
  $(".c-tree__item").click(function(){
      var el = $(this);
      if (el.hasClass("c-tree__item--expanded")) {
            el.removeClass("c-tree__item--expanded");
            el.addClass("c-tree__item--expandable");
            el.children(".c-tree").hide(); 
      } else if (el.hasClass("c-tree__item--expandable")) {
            el.removeClass("c-tree__item--expandable");
            el.addClass("c-tree__item--expanded"); 
            el.children(".c-tree").show();
      }
  })
  </script>
  