{# Employee Form Partial - Used in Add/Edit Employee Modal #}
{# Hidden fields for employee ID and CSRF token #} {# Photo Section #}
{% if employee.photoUrl %} {{ employee.fullName }} {% else %}
{% endif %}
{% if employee.photoUrl %} {% endif %}

{# Basic Information Section #}

Basic Information

{% if employee.source is defined and employee.source in ['wheniwork', 'homebase'] %}
Name and email are synced from {{ employee.source|capitalize }} and cannot be edited here.
{% endif %}
Format: (555) 555-5555 or 555-555-5555

{# Position & Role Section #}

Position & Role

{% if employee.source is defined and employee.source in ['wheniwork', 'homebase'] %} Position may be synced from {{ employee.source|capitalize }} {% endif %}
Role determines system permissions
$

{# Employment Dates Section #}

Employment Dates

Set this when deactivating an employee
Leave blank for indefinite leave

{# Emergency Contact Section #}

Emergency Contact


{# Settings Section #}

Settings

Link to external DRS/POS system
Inactive employees will not appear in schedules or assignments
{% if employee.id is defined %}
{# System Info Section - Only shown in edit mode #}

System Information

{% if employee.source == 'homegrown' %} Homegrown {% elseif employee.source == 'wheniwork' %} When I Work {% elseif employee.source == 'homebase' %} Homebase {% else %} {{ employee.source|capitalize }} {% endif %}

{% if employee.externalId %}

{{ employee.externalId }}

{% endif %}

{{ employee.createdAt|default('N/A') }}

{% if employee.lastSyncedAt %}

{{ employee.lastSyncedAt }}

{% endif %} {% endif %} {# Form validation messages #}