""" School Module - Template Helpers Reusable components for school pages """ # SVG Icons ICONS = { 'dashboard': '''''', 'messages': '''''', 'calendar': '''''', 'attendance': '''''', 'grades': '''''', 'book': '''''', 'users': '''''', 'parents': '''''', 'check_circle': '''''', 'warning': '''''', 'mail': '''''', 'edit': '''''', 'qr': '''''', 'check': '''''', 'plus': '''''', 'download': '''''', 'print': '''''', 'chevron_left': '''''', 'chevron_right': '''''', } def render_sidebar(active_page: str = "dashboard") -> str: """Render the navigation sidebar""" def nav_item(href: str, icon_key: str, label: str, page_id: str) -> str: active_class = "active" if active_page == page_id else "" return f''' {ICONS[icon_key]} {label} ''' return f''' ''' def render_base_page(title: str, styles: str, content: str, scripts: str = "", active_page: str = "dashboard", include_sidebar: bool = True) -> str: """Render a complete HTML page with the BreakPilot school design""" sidebar_html = render_sidebar(active_page) if include_sidebar else "" return f'''