Skip to content

Commit

Permalink
add new views in employee app
Browse files Browse the repository at this point in the history
  • Loading branch information
Mubashir12392 committed Mar 15, 2023
1 parent 3cb338e commit b77302a
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion employees/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
from django.shortcuts import render

from recruiters.models import JobPost
from employees.models import EmployeeProfile
# Create your views here.
def browse_jobs(request):
jobs = JobPost.objects.all()
context = {
'Jobs': jobs,
}

return render(request, "browsejobs.html", context=context)

def candidates(request):
employees = EmployeeProfile.objects.all()
context = {
'employees' : employees,
}
return render(request, "candidates.html", context=context)

def blogs(request):
return render(request, "blog.html")

def single_blog(request):
return render(request, "blog-single.html")

def want_job(request):
jobs = JobPost.objects.all()
context = {
'Jobs': jobs,
}
return render(request, 'want-job.html', context=context)

0 comments on commit b77302a

Please sign in to comment.