{% extends "base.html" %} {% from "_macros.html" import cost_centre_field with context %} {% block title %}{{ e.name_en or t('New employee') }}{% endblock %} {% macro txt(name, label, type='text', req=False, ph='') %}
{% endmacro %} {% macro amt(name, label) %}
{% endmacro %} {% block content %}
{{ t('Employees') }}

{{ (e.code ~ ' ' ~ nm(e)) if e.id else t('New employee') }}

{{ t('Employee') }}

{{ txt('code', 'Employee number', req=True) }} {{ txt('name_en', 'Name (English)', req=True) }} {{ txt('name_ar', 'Name (Arabic)') }} {{ txt('job_title', 'Job title') }} {{ txt('department', 'Department') }}
{{ cost_centre_field(cost_centres, e.cost_centre_id, t('Salary costs of this employee are booked to it.')) }} {{ txt('join_date', 'Joining date', 'date', True) }}
{{ t('Sets the leave, end-of-service and GOSI rules.') }}
{{ txt('nationality', 'Nationality') }}
{{ txt('birth_date', 'Date of birth', 'date') }} {{ txt('email', 'Email', 'email') }} {{ txt('phone', 'Phone') }}

{{ t('Monthly salary') }}

{{ amt('basic', 'Basic salary') }} {{ amt('housing', 'Housing allowance') }} {{ amt('transport', 'Transport allowance') }} {{ amt('other_allowance', 'Other allowances') }}
{{ t('Leave empty for the law: 21 days (30 after 5 years) in Saudi Arabia, 30 in the UAE.') }}
{{ t('Days carried in from the old system, plus or minus.') }}

{{ t('Documents and bank') }}

{{ txt('id_number', 'ID / Iqama number') }} {{ txt('id_expiry', 'ID / Iqama expiry', 'date') }} {{ txt('passport_no', 'Passport number') }} {{ txt('passport_expiry', 'Passport expiry', 'date') }} {{ txt('gosi_no', 'GOSI number') }} {{ txt('bank_name', 'Bank') }} {{ txt('iban', 'IBAN', ph='SA00 0000 0000 0000 0000 0000') }}
{{ t('Cancel') }}
{% endblock %}