diff --git a/employee/templates/employee_personal_info/employee_card.html b/employee/templates/employee_personal_info/employee_card.html index c6cfa0caa..96c7a39f8 100644 --- a/employee/templates/employee_personal_info/employee_card.html +++ b/employee/templates/employee_personal_info/employee_card.html @@ -97,7 +97,7 @@ {% endif %} {% if perms.employee.delete_employee %} - + {% with emp.contract_set.first as contract %} {% if contract.contract_status == 'active' %}
  • @@ -108,7 +108,7 @@
  • {% else %}
  • -
    {% csrf_token %} diff --git a/employee/templates/employee_personal_info/employee_list.html b/employee/templates/employee_personal_info/employee_list.html index a945048fb..35200aa2f 100644 --- a/employee/templates/employee_personal_info/employee_list.html +++ b/employee/templates/employee_personal_info/employee_list.html @@ -271,9 +271,9 @@ {% with emp.contract_set.first as contract %} {% if contract.contract_status == 'active' %} - {% csrf_token %}