{# Employee Avatar Partial - JavaScript Template Reference This file documents the structure used by SchedulePanel.js to render individual employee avatars. The actual rendering happens in JavaScript using this structure as a reference. Template Variables (provided by JS): - id: Employee ID - firstName: Employee first name - lastName: Employee last name - fullName: Full display name - initials: Two-letter initials (e.g., "JD") - photoUrl: URL to employee photo (optional) - status: Clock status (clocked-in, clocked-out, on-break, late, not-started) - statusClass: CSS class for status styling - statusLabel: Human-readable status text - roleColor: Hex color for role indicator (optional) - shiftStart: Formatted shift start time (e.g., "9:00 AM") - shiftEnd: Formatted shift end time (e.g., "5:00 PM") - shiftNotes: Shift notes text (optional) Status Classes: - status-clocked-in: Currently working (green indicator) - status-clocked-out: Shift ended (gray indicator) - status-on-break: On break (yellow indicator) - status-late: Late to shift (red indicator) - status-not-started: Shift not yet started (blue indicator) #} {% raw %}
  • {# Clickable avatar button for quick actions #} {# Name label - Visible in expanded panel mode #} {{firstName}} {# Shift time - Visible in expanded panel mode #} {{shiftStart}} - {{shiftEnd}}
  • {% endraw %}