Runique Admin

Tera block reference — admin

Each admin template exposes {% block %} sections that developers can override in their own templates.

Layout blocks — `admin_base.html`

Defined in the global layout, available from any template that extends admin_base.

BlockDefault contentNote
titlePage title
extra_cssRunique admin CSS (7 files)Use {{ super() }} to accumulate
layoutSidebar + main areaAdvanced — replaces everything
sidebarResource navigation + history
topbarBreadcrumb + site link + logout
breadcrumbBreadcrumb trail (from admin_base)
messagesFlash messagesKeep {% messages %} inside
contentCRUD page content
extra_jsadmin.jsUse {{ super() }} to accumulate

`list.html`

BlockContent
list_headerPage header: title, count, Create button

`list_partial.html` *(HTMX-swapped)*

BlockContent
list_searchSearch bar + hidden sort/filter fields
list_group_actionGroup action bar (selection + bulk actions)
list_tableMain table + empty state
list_paginationPagination controls
list_filtersColumn filter sidebar

`create.html`

BlockContent
create_headerPage header
create_formFull card with form
create_form_fieldsField grid + M2M fields
create_form_actionsCancel / Create buttons
create_deniedAccess denied message

`edit.html`

BlockContent
edit_headerPage header
edit_formFull card with form
edit_form_fieldsField grid + M2M fields
edit_form_actionsCancel / Save buttons
edit_deniedAccess denied message

`detail.html`

BlockContent
detail_headerPage header (includes detail_actions)
detail_actionsEdit / Delete / Reset password buttons + mobile menu
detail_tableCard with key → value table

`delete.html`

BlockContent
delete_headerPage header
delete_warningWarning banner
delete_actionsCancel / Confirm deletion buttons
delete_deniedAccess denied message

`bulk_edit.html`

BlockContent
group_edit_headerPage header
group_edit_fieldsNon-boolean fields section
group_edit_permissionsBoolean permissions section (populated by JS)
group_edit_actionsCancel / Apply buttons
group_edit_deniedAccess denied message

`dashboard.html`

BlockContent
dashboard_headerPage header
dashboard_statsStat-card grid per resource
dashboard_tableResource summary table

CSS theme — custom properties

To change colors and spacing without rewriting HTML, override variables inside {% block extra_css %}:

{% block extra_css %}
{{ super() }}
<style>
  :root {
    --accent:       #e11d48;
    --accent-hover: #be123c;
    --bg-main:      #fafafa;
    --bg-card:      #ffffff;
    --bg-sidebar:   #1e1e2e;
    --text-main:    #111827;
  }
</style>
{% endblock %}
VariableRole
--bg-mainMain background
--bg-cardCard background
--bg-sidebarSidebar background
--bg-inputInput field background
--bg-hoverHover background
--bg-activeActive element background
--text-mainMain text color
--text-mutedSecondary text color
--text-sidebarSidebar text color
--accentAccent color (buttons, active links)
--accent-hoverAccent on hover
--accent-lightTranslucent accent
--borderStandard border
--border-lightLight border
--success / --danger / --warningSemantic colors
--sidebar-widthExpanded sidebar width
--sidebar-collapsedCollapsed sidebar width
--topbar-heightTopbar height
--radius / --radius-lgBorder radii
--shadowCard shadow
--transitionDuration/easing of transitions

CSS classes per block are documented in the CSS class reference. BEM renaming is planned for v2.2.