<div class="dashboard_bubble round" id="plan-widget-with-actions" >
  <h3>
    <%= plan_header plan %>
  </h3>

  <%= render :partial => 'plans/widget', :locals => {:plan => plan} %>

  <% if can? :manage, :plans -%>
    <div class="operations">
      <% if plan.customized? %>
        <%= link_to 'Edit', edit_admin_account_plan_path(plan.id), :class => 'action edit' %>
        <%= delete_button_for admin_buyers_contract_custom_plan_path(contract, plan), :label => 'Remove customization' %>
      <% else %>
        <%= fancy_link_to 'Customize', admin_buyers_contract_custom_plans_path(contract), :method => :post, :class => 'edit', :remote => true %>
      <% end %>
    </div>
  <% end %>
</div>
