<%= javascript_include_tag "application" %>

<div class="container delete-confirm">
  <h4><%= @classified_listing.title %></h4>
  <h1>Are you sure you want to delete this listing?</h1>

  <h2>
    You cannot undo this action, perhaps you just want to
    <a data-no-instant href="/listings/<%= @classified_listing.id %>/edit">
      <%= @classified_listing.published ? "unpublish" : "edit" %>
    </a>
    instead?
  </h2>

  <%= form_tag "/listings/#{@classified_listing.id}", method: :delete do %>
    <button class="cta">DELETE</button>
  <% end %>
</div>
