title: Django Delete Confirmation
body: <p>I have an icon of a trash can for a delete button on a Django site.</p>
  
  <p>It's just an anchor tag with an i tag inside that has its href set to a delete view passing the id of the model element.</p>
  
  <p>It works perfectly fine, but I want to create a dialog popup that asks for confirmation before deleting it.</p>
  
  <p>I have seen a few ways to do this but they all require it to be input instead of an anchor.</p>
  
  <p>I also need to make this work on touch devices as well.</p>
  
  <p>How can I change it to an input element and keep the icon as the button rather than showing a submit button.  And how can I get the dialog to popup and when Yes is clicked, pass the correct url and id to the submit?</p>
  
  <p>Any advice would be much appreciated.</p>