anchor.diff:          <h4 class="modal-title">Confirm</h4>
         </div>
         <div class="modal-body">
  -        <p>Enable &quot;<%= agent.name %>&quot;?</p>
  +        <p><% if agent.disabled? %>Enable<% else %>Disable<% end %> &quot;<%= agent.name %>&quot;?</p>
         </div>
         <div class="modal-footer">
           <%= form_for(agent, as: :agent, url: agent_path(agent, return: returnTo), method: 'PUT') do |f| %>
  -          <% if agent.can_receive_events? %>
  +          <% if agent.disabled && agent.can_receive_events? %>
               <div class="form-group">
                 <%= check_box_tag check_box_id = "agent#{agent.id}_drop_pending_events", 'true', false, name: :drop_pending_events %>
                 <%= label_tag check_box_id, 'Drop pending events' %>
               </div>
             <% end %>
  -          <%= f.hidden_field :disabled, value: 'false' %>
  +          <%= f.hidden_field :disabled, value: (!agent.disabled).to_s %>
             <%= f.button 'No', class: 'btn btn-default', 'data-dismiss' => 'modal' %>
             <%= f.submit 'Yes', class: 'btn btn-primary' %>
           <% end %>
  
positive.code:   </li>
  </ul>
  
  <% if agent.disabled? %>
  <div id="confirm-enable-agent<%= agent.id %>" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="confirmEnableAgentLabel" aria-hidden="true">
    <div class="modal-dialog modal-sm">
      <div class="modal-content">
        <div class="modal-header">
  
negative.code:     </div>
    </div>
  </div>
  
  