# Copyright (c) 2025, JINGROW and contributors
# For license information, please see license.txt

# import jingrow
from jingrow.model.page import Page
import jingrow


class DetailPageTemplate(Page):
	# begin: auto-generated types
	# This code is auto-generated. Do not modify anything in this block.

	from typing import TYPE_CHECKING

	if TYPE_CHECKING:
		from jingrow.types import DF

		description: DF.Data | None
		enabled: DF.Check
		template_css: DF.Code | None
		template_js: DF.Code | None
		template_name: DF.Data
	# end: auto-generated types

	def on_update(self):
		jingrow.clear_cache(pagetype=self.name)

	def on_trash(self):
		jingrow.clear_cache(pagetype=self.name)
