[FIX] OFFBOARDING: Design fixes

This commit is contained in:
Horilla
2024-03-04 14:36:07 +05:30
parent f3584d79bc
commit 402f1cb436
3 changed files with 2 additions and 5 deletions

View File

@@ -61,7 +61,7 @@
<div class="oh-sticky-table__th">{% trans "Stage" %}</div>
{% endif %}
<div class="oh-sticky-table__th text-center">{% trans "Task Status" %}</div>
<div class="oh-sticky-table__th" style="width: 250px;">{% trans "Actions" %}</div>
<div class="oh-sticky-table__th text-center" style="width: 250px;">{% trans "Actions" %}</div>
{% for task in stage.grouper.offboardingtask_set.all %}
<div class="oh-sticky-table__th" style="width: 200px;" >
<div class="d-flex justify-content-between align-items-center">

View File

@@ -29,7 +29,7 @@
</div>
</div>
<div class="oh-sticky-table__td">
{% if employee.notice_period_ends == today %} {% trans "today" %}{% elif employee.notice_period_ends < today %} {% trans "Notice period ended" %} {% else %}{% trans 'In' %} {{employee.notice_period_ends|sub:today}}{% endif %}
{% if employee.notice_period_ends == today %} {% trans "today" %}{% elif employee.notice_period_ends < today %} {% trans "Notice period ended" %} {% else %} {% if employee.notice_period_ends|sub:today %} {% trans 'In' %} {{employee.notice_period_ends|sub:today}}{% endif %}{% endif %}
</div>
<div class="oh-sticky-table__td dateformat_changer">{{ employee.notice_period_starts }}</div>
<div class="oh-sticky-table__td dateformat_changer">{{ employee.notice_period_ends }}</div>

View File

@@ -551,9 +551,6 @@ def task_assign(request):
task_id = request.GET["task_id"]
employees = OffboardingEmployee.objects.filter(id__in=employee_ids)
task = OffboardingTask.objects.get(id=task_id)
print("==============================")
print(employees)
print("==============================")
for employee in employees:
try:
assinged_task = EmployeeTask()