{% extends "ui/templates/base/layout.html" %} {% block content %} {% set is_dict = employee is mapping %} {% set is_edit = mode == 'edit' %} {% macro val(name, default='') -%} {%- if employee -%} {%- if is_dict -%}{{ employee.get(name, default) or '' }}{%- else -%}{{ employee|attr(name) or '' }}{%- endif -%} {%- else -%}{{ default }}{%- endif -%} {%- endmacro %}

{{ title }}

{% if partner_staff_mode and not is_edit %}Create a Staff employee in your assigned branch and optionally create the Staff login account.{% else %}Create or update the employee master. Attendance, leave, payroll and ESS will be added in later phases.{% endif %}

Back
{% if errors %}
{% endif %}
{% if not is_edit %}

{% if partner_staff_mode %}Staff Login Link{% else %}Employee Login Link{% endif %}

{% if partner_staff_mode %}Link an existing unlinked Staff login or create a Staff login automatically for this employee.{% else %}Either link an existing unlinked login user or create a login user automatically for this employee.{% endif %}

When selected, Login Email and Temporary Password below are required.

Minimum 8 characters. User must change password after login.

{% if partner_staff_mode %}

The user will be created for your branch as Staff or Manager.

{% else %} {% endif %}
{% else %}
Login user linkage can be changed below. The dropdown shows unlinked users from the same audit firm/branch, plus the currently linked user if any. New user creation is available only while creating an employee.
{% set uid = employee.user_id if employee and not is_dict else employee.get('user_id') if employee else None %}

Selecting “No user linked” will keep this employee as HR master only. Employee self-service will not work until linked.

{% endif %} {% if not is_edit and scope.allow_cross_tenant %}
{% else %} {% endif %}
Cancel
{% endblock %}