{% extends "admin/base.html" %} {# A custom admin page, and the demo of the shadcn components that the generated CRUD screens have no use for: RadioGroup, Switch, and Slider. A ModelAdmin form is built from field types, so it reaches for a {{ radio_group( "urgency", "Urgency", choices=[ {"value": "normal", "label": "Normal", "help": "Queued with everything else."}, {"value": "high", "label": "High", "help": "Jumps the queue and pings on-call."}, ], selected="normal", ) }} {{ switch("also_email", "Also send by email", checked=False, help="In-app only when off.") }} {{ slider("rate", "Throttle", min=10, max=500, step=10, value=100, suffix="/min") }} {% endblock %}