[UPDT] EMPLOYEE: Employeee select page is added in employee app

This commit is contained in:
Horilla
2024-10-11 12:27:55 +05:30
parent c0dc07dfcf
commit eacd64102b
2 changed files with 2 additions and 2 deletions

View File

@@ -1,3 +1,3 @@
{% for employee in employees %}
<option value="{{ employee.0 }}">{{ employee.1 }}</option>
{% endfor %}
{% endfor %}

View File

@@ -2140,7 +2140,7 @@ def get_collegues(request):
# Convert QuerySets to a list
employees = list(employees_queryset)
context = {"employees": employees}
employee_html = render_to_string("feedback/employees_select.html", context)
employee_html = render_to_string("employee/employees_select.html", context)
return HttpResponse(employee_html)
else:
return JsonResponse({"error": "Employee not found"}, status=404)