{% extends "base.html" %} {% from "_macros.html" import branch_tag with context %} {% block title %}{{ t('Employees') }}{% endblock %} {% block content %}

{{ t('Employees') }}

{% if can_write %}
+ {{ t('New employee') }}
{% endif %}
{% for k, lbl in (('active', 'Active'), ('left', 'Left'), ('all', 'All')) %}{{ t(lbl) }}{% endfor %}
{% for e in rows %}{% set cur = branches[e.branch_id].currency if e.branch_id in branches else none %} {% else %}{% endfor %}
{{ t('Number') }}{{ t('Name') }}{{ t('Job title') }}{{ t('Department') }}{{ t('Branch') }} {{ t('Joined') }}{{ t('Labour law') }}{{ t('Monthly wage') }}{{ t('Status') }}
{{ e.code }}{{ nm(e) }}{% if e.is_national %} {{ t('National') }}{% endif %} {{ e.job_title or '' }}{{ e.department or '' }}{{ branch_tag(branches, e.branch_id) }} {{ e.join_date }}{{ t(laws[e.law]) }}{{ wage(e)|money(cur) }} {{ t('Active' if e.state == 'active' else 'Left') }}
{{ t('Nothing yet.') }}
{% endblock %}