{% extends "base.html" %}
{% load static %}

{% block body_class %}danger-bg{% endblock %}

{% block content %}
<div class="login-hero">
  <div class="login-card">
    <h2 class="login-title">Delete Entry #{{ entry.id }}</h2>

    <div class="small muted" style="margin:-6px 0 12px">
      <strong>Subject:</strong> {{ entry.subject|default:"(no subject)" }}
    </div>

    <div class="msg error" style="margin-bottom:14px">
      <strong>Danger:</strong> This action permanently deletes the entry.
      <br>Once you press <em>Confirm Delete</em>, it cannot be undone.
    </div>

    <form method="post" action="">
      {% csrf_token %}
      <div class="form-actions" style="justify-content:space-between;margin-top:8px">
        <a class="btn btn-secondary" href="{% url 'entry_view' entry.id %}">Cancel</a>
        <button class="btn btn-danger" type="submit">Confirm Delete</button>
      </div>
    </form>
  </div>
</div>
{% endblock %}