{% load basefilters %} {% load horillafilters %} {% load employee_filter %} {% load static %} {% load i18n %} {% include 'filter_tags.html' %} {% if messages %}
{% for message in messages %}
{{ message }}
{% endfor %}
{% endif %} {% if data %}
{% trans "Employee" %}
{% trans "Action Taken" %}
{% trans "Login Block" %}
{% trans "Action Date" %}
{% trans "Attachments" %}
{% trans "Description" %}
{% if perms.payroll.change_disciplinaryaction or perms.payroll.delete_disciplinaryaction %}
{% trans "Actions" %}
{% endif %}
{% for i in data %}
{{i.employee_id.all|length}} {% if i.employee_id.all|length > 1 %} {% trans "Employees" %} {% else %} {% trans "Employee" %} {% endif %}
{% for emp in i.employee_id.all %}
Baby C.
{{emp.get_full_name}}
{% endfor %}
{% if i.action.action_type == 'suspension' %}
{{ i.action }}

{% trans "Suspended for" %} {% if i.unit_in == "days" %} {{ i.days }} {% trans "days" %}. {% else %} {{ i.hours }} {% trans "hours" %}. {% endif %}

{% else %}
{{ i.action }}
{% endif %}
{% if i.action.block_option %} {% trans "Yes" %} {% else %}{% trans "No" %}{% endif %}
{% if i.action.action_type == 'suspension' and i.unit_in == "days" %}
{{ i.start_date }}   to  {{ i.start_date | add_days:i.days }}
{% else %}
{{ i.start_date }}
{% endif %} {% if i.attachment %} {% else %}
{% trans "No file has been uploaded." %}
{% endif %}
{{ i.description|truncatechars:25}}
{% if perms.payroll.change_disciplinaryaction or perms.payroll.delete_disciplinaryaction %}
{% if perms.payroll.change_disciplinaryaction %} {% endif %} {% if perms.payroll.add_disciplinaryaction %} {% endif %} {% if perms.payroll.delete_disciplinaryaction %}
{% csrf_token %}
{% endif %}
{% endif %}
{% endfor %}
{% trans "Page" %} {{ data.number }} {% trans "of" %} {{ data.paginator.num_pages }}.
{% else %}
{% trans "No search result found!" %}
{% endif %}