{% extends "admin_frontend/base.html" %}
{% load crispy_forms_tags %}

{% block title %}Edit Category{% endblock %}

{% block content %}
  <div class="bg-white rounded shadow p-4 mb-6">
    <h1 class="text-xl font-semibold mb-4">Edit Category</h1>
    <form method="post">
      {% csrf_token %}
      {{ form|crispy }}
      <div class="mt-3 flex gap-3">
        <button class="px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700">Save</button>
        <a class="px-4 py-2 border rounded" href="{{ cancel_url }}">Cancel</a>
      </div>
    </form>
  </div>
{% endblock %}

