from django.contrib import admin
from .models import MeetingRoom, Meeting


@admin.register(MeetingRoom)
class MeetingRoomAdmin(admin.ModelAdmin):
    list_display = ("name", "location", "capacity", "is_active")
    list_filter = ("is_active",)
    search_fields = ("name", "location")


@admin.register(Meeting)
class MeetingAdmin(admin.ModelAdmin):
    list_display = ("title", "room", "start_time", "end_time", "status", "event", "project")
    list_filter = ("status", "room")
    search_fields = ("title",)
    raw_id_fields = ("event", "project", "organizer")
