{# Header Macros ============= Reusable page header and navigation components. Usage: {% from 'shared/macros/headers.html' import page_header, section_header, breadcrumbs %} {{ page_header('User Management', action_label='Create User', action_url='/users/create') }} {{ section_header('Account Settings') }} {{ breadcrumbs([{'label': 'Home', 'url': '/'}, {'label': 'Users'}]) }} #} {# Page Header =========== A page header with title, optional subtitle, and action button. Parameters: - title: Page title - subtitle: Page subtitle (optional) - action_label: Action button text (optional) - action_url: Action button URL (optional) - action_icon: Action button icon (default: 'plus') - action_onclick: JavaScript onclick handler (optional, instead of URL) - back_url: Back button URL (optional) - back_label: Back button text (default: 'Back') #} {% macro page_header(title, subtitle=none, action_label=none, action_url=none, action_icon='plus', action_onclick=none, back_url=none, back_label='Back') %}
{{ subtitle }}
{% endif %}{{ subtitle }}
{% endif %}{{ subtitle }}
{% endif %}{{ subtitle }}
{% endif %}{{ subtitle }}
{% endif %}{{ caller() }}
{% endif %}{{ caller() }}
{% endif %}