from django.contrib import admin

from .models import HtmlBundle, HtmlDocument, HtmlExport


@admin.register(HtmlBundle)
class HtmlBundleAdmin(admin.ModelAdmin):
    list_display = ("title", "created_at")
    search_fields = ("title",)
    ordering = ("-created_at",)


@admin.register(HtmlDocument)
class HtmlDocumentAdmin(admin.ModelAdmin):
    list_display = ("original_name", "bundle", "order")
    search_fields = ("original_name",)
    list_filter = ("bundle",)


@admin.register(HtmlExport)
class HtmlExportAdmin(admin.ModelAdmin):
    list_display = ("file_name", "bundle", "created_at")
    list_filter = ("bundle",)
