from fastapi import Request
from folkugat_web.model import temes as model
from folkugat_web.templates import templates


def property_(request: Request, logged_in: bool, property: model.Property):
    return templates.TemplateResponse(
        "fragments/tema/property.html",
        {
            "request": request,
            "logged_in": logged_in,
            "property": property,
            "PropertyField": model.PropertyField,
        }
    )


def property_editor(request: Request, logged_in: bool, property: model.Property):
    return templates.TemplateResponse(
        "fragments/tema/editor/property.html",
        {
            "request": request,
            "logged_in": logged_in,
            "property": property,
            "PropertyField": model.PropertyField,
        }
    )
