{% extends "admin/change_list.html" %}
{% load i18n admin_urls static %}

{% block object-tools-items %}
    {{ block.super }}
    {% if show_create_backup_button %}
    <li>
        <a href="{% url 'admin:backup_create' %}" class="addlink" style="background-color: #4CAF50; color: white; padding: 10px 15px; text-decoration: none; border-radius: 4px; display: inline-block; font-weight: bold;">
            🔄 Yeni Yedek Al
        </a>
    </li>
    {% endif %}
    {% if show_upload_backup_button %}
    <li>
        <a href="{% url 'admin:backup_upload' %}" class="addlink" style="background-color: #2196F3; color: white; padding: 10px 15px; text-decoration: none; border-radius: 4px; display: inline-block; font-weight: bold;">
            📤 Yedek Yükle
        </a>
    </li>
    {% endif %}
{% endblock %}

