{% extends 'admin/change_form.html' %}
{% load static %}

{% block submit_buttons_bottom %}
{% if original %}
  <div class="preview-row">
    
    <!-- <input type="submit" value="Preview Email" name="_preview_email" class="default" /> -->
     <!-- <form action="/public/emailmessage/preview_email/{{ original.pk }}/" method="post" style="display: inline;"> -->
      <a href="{% url 'preview_email' original.pk %}">Preview Email</a>
      <!-- <form action="{% url 'preview_email' pk=2 %}" method="post" style="display: inline;"></form>
      {% csrf_token %}
      <input type="submit" value="Preview Email" name="preview_email" class="default" />

     </form> -->
    

  </div>
  {% endif %}
  {{ block.super }}

{% endblock %}
